From a3d041d259756dc609b40e5244965fb36b05b8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 2 Jan 2022 21:07:04 +0100 Subject: Sun Jan 2 09:07:04 PM CET 2022 --- .bin/get-mailbox-imap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.bin/get-mailbox-imap') 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__": -- cgit v1.2.3