aboutsummaryrefslogtreecommitdiff
path: root/ctec/__main__.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-05-01 04:13:08 -0600
committerMelody Horn <melody@boringcactus.com>2021-05-01 04:13:08 -0600
commite824ee1564806359b580cb7f9975dc8f0aaa2e73 (patch)
treeff0c76a300c976a1520779fa180ecf5f573a393e /ctec/__main__.py
parent2ef831feb8cd1b2393196877b7b7c93ac49093d7 (diff)
downloadctec-e824ee1564806359b580cb7f9975dc8f0aaa2e73.tar.gz
ctec-e824ee1564806359b580cb7f9975dc8f0aaa2e73.zip
fetch message contents
this still has some duplicates and breaks on MIME Content-Transfer-Encoding: 8bit but like. that's life
Diffstat (limited to 'ctec/__main__.py')
-rw-r--r--ctec/__main__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctec/__main__.py b/ctec/__main__.py
index 84f1215..0ac158b 100644
--- a/ctec/__main__.py
+++ b/ctec/__main__.py
@@ -49,6 +49,9 @@ class CtecFrame:
# so setting a default argument value lets us close over the value instead of just using the most recent value in that name
def fetch_account_folders(account=account):
account.fetch_folders()
+ # TODO do this separately maybe?
+ for folder_name, _ in account.folders():
+ account.fetch_folder(folder_name)
self.update_accounts_tree(updated_account=account)
threading.Thread(target=fetch_account_folders).start()