summaryrefslogtreecommitdiffstats
path: root/gmail-notmuch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gmail-notmuch.py')
-rwxr-xr-xgmail-notmuch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmail-notmuch.py b/gmail-notmuch.py
index f3ecc91..ef5b5a7 100755
--- a/gmail-notmuch.py
+++ b/gmail-notmuch.py
@@ -171,7 +171,7 @@ def retag_old_messages(database, messages, destination):
print("Searching for local messages...")
old_messages = { os.path.basename(filename[0:filename.rfind(".gmail")]): destination + "/cur/" + filename for filename in os.listdir(destination + "/cur/") if ".gmail" in filename }
if len(old_messages) == 0:
- return
+ return messages
new_messages = []
i = 1
progressbar = create_progressbar("Retagging local messages", len(old_messages))