diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-01-02 21:07:04 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-01-02 21:07:04 +0100 |
commit | a3d041d259756dc609b40e5244965fb36b05b8a3 (patch) | |
tree | 8f0890cf1dc48ef35ca6d0d5e572c2325aa09288 /.bin/get-mailbox-imap | |
parent | 0f08d04698c814955116b6bae50752e64b774d8f (diff) | |
download | dots-a3d041d259756dc609b40e5244965fb36b05b8a3.tar.gz |
Sun Jan 2 09:07:04 PM CET 2022
Diffstat (limited to '.bin/get-mailbox-imap')
-rwxr-xr-x | .bin/get-mailbox-imap | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.bin/get-mailbox-imap b/.bin/get-mailbox-imap index fad7e21..713873e 100755 --- a/.bin/get-mailbox-imap +++ b/.bin/get-mailbox-imap @@ -16,7 +16,7 @@ def flatten_output(list): Print all boxes with a flattened output, primarily for neomutt usage. """ - print(''.join([f"+'{box}' " for box in list]), end=' ') + return ''.join([f"+'{box}' " for box in list]) def sort_boxes(bxs): @@ -70,7 +70,7 @@ def main(): bxs = sort_boxes(get_boxes(mail.list()[1])) # oneline pretty-print for neomutt - flatten_output(bxs) + print(flatten_output(bxs), end=' ') if __name__ == "__main__": |