diff --git a/head/offlineimap.py b/head/offlineimap.py index 1c22aa7..6122088 100644 --- a/head/offlineimap.py +++ b/head/offlineimap.py @@ -43,9 +43,9 @@ accounts = accounts.split(",") server = None remoterepos = None localrepos = None -mailboxes = [] def syncitall(): + mailboxes = [] for accountname in accounts: ui.acct(accountname) accountmetadata = os.path.join(metadatadir, accountname) diff --git a/head/offlineimap/folder/Maildir.py b/head/offlineimap/folder/Maildir.py index d4f4a14..1409ada 100644 --- a/head/offlineimap/folder/Maildir.py +++ b/head/offlineimap/folder/Maildir.py @@ -24,6 +24,7 @@ timeseq = 0 lasttime = long(0) def gettimeseq(): + global lasttime, timeseq thistime = long(time.time()) if thistime == lasttime: timeseq += 1 @@ -91,7 +92,7 @@ class MaildirFolder(BaseFolder): # assume it is a foreign (new) message and generate a # negative uid for it uid = nouidcounter - nouidcountr -= 1 + nouidcounter -= 1 else: # It comes from our folder. uidmatch = re.search(',U=(\d+)', messagename) uid = None