From 6e50d78e72696d464c9e328800304fa2476a83b7 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Sat, 22 Jun 2002 05:39:02 +0100 Subject: [PATCH] /head: changeset 42 Fixed MD5 processing. --- head/offlineimap.py | 2 +- head/offlineimap/folder/Maildir.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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