Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #12 from fmpfeifer/master

Make script word with empty IMAP folders
  • Loading branch information...
commit 154dbf7976b1789c24dfde3c26f4e8ae92f8a92e 2 parents efb5d81 + 545b6ad
@RaymiiOrg authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 nopriv.py
View
6 nopriv.py
@@ -215,7 +215,11 @@ def get_messages_to_local_maildir(mailFolder, mail, startid = 1):
exit()
total_messages_in_mailbox = len(mdata[0].split())
- last_mail_id = mdata[0].split()[-1]
+ last_mail_id = 0
+ try:
+ last_mail_id = mdata[0].split()[-1]
+ except Exception:
+ pass
folder_most_recent_id = getLastMailID(mailFolder, IMAPLOGIN)
if folder_most_recent_id > 2 and incremental_backup == True:
Please sign in to comment.
Something went wrong with that request. Please try again.