summaryrefslogtreecommitdiffstats
path: root/gmail-notmuch.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-12-07 00:50:22 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-12-07 00:50:22 +0100
commit7b24ed21cacf78aa5a1ed9a2a3c525c3ea705eea (patch)
tree125f764f2f19566046b1592f94d606bee8cc2e43 /gmail-notmuch.py
parentAdd license. (diff)
downloadgmail-notmuch-7b24ed21cacf78aa5a1ed9a2a3c525c3ea705eea.tar.xz
gmail-notmuch-7b24ed21cacf78aa5a1ed9a2a3c525c3ea705eea.zip
Improve strings.
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: