summaryrefslogtreecommitdiffstats
path: root/gmail-notmuch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gmail-notmuch.py')
-rwxr-xr-xgmail-notmuch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmail-notmuch.py b/gmail-notmuch.py
index 5f95040..7eaf9e2 100755
--- a/gmail-notmuch.py
+++ b/gmail-notmuch.py
@@ -52,8 +52,8 @@ def main():
imap = login(options)
- print("Collecting old messages...")
- old_messages = [os.path.basename(filename[0:filename.find(":")]) for filename in os.listdir(destination_dir + "/cur")]
+ print("Discovering local messages...")
+ old_messages = [os.path.basename(filename[0:filename.rfind(":")]) for filename in os.listdir(destination_dir + "/cur")]
new_messages = discover_new_messages(imap, old_messages)
if len(new_messages) == 0: