diff options
| author | Paul Iannetta <paul.iannetta@ens-lyon.fr> | 2022-04-21 23:53:31 +0200 |
|---|---|---|
| committer | Paul Iannetta <paul.iannetta@ens-lyon.fr> | 2022-04-22 08:24:15 +0200 |
| commit | e83c4515e0179221e7315abb606452ab2f7b561d (patch) | |
| tree | 355f7c3fd0e9e05c5d8d7ddc2786521eb8bd8b5c /.config/mutt/mailboxes.py | |
| parent | e5cb4057fda66962ccb710b460a363bd8aab7414 (diff) | |
add partial mutt config
Diffstat (limited to '.config/mutt/mailboxes.py')
| -rwxr-xr-x | .config/mutt/mailboxes.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/mutt/mailboxes.py b/.config/mutt/mailboxes.py new file mode 100755 index 0000000..1538122 --- /dev/null +++ b/.config/mutt/mailboxes.py @@ -0,0 +1,12 @@ +import sys +import json + +account = str(sys.argv[1]) + +mailboxes = [] +with open('/home/lys/.offlineimap/mbnames/{}.json'.format(account), 'r') as f: + data = json.load(f) + for folder in data: + mailboxes.append('"+{}/{}"'.format(account,folder['foldername'])) + +print('{}'.format(' '.join(mailboxes))) |
