[PATCH] Maildir relative paths change was not complete
Sebastian Spaeth
Sebastian at SSpaeth.de
Wed Aug 17 13:30:39 BST 2011
From: Vladimir Marek <vlmarek at volny.cz>
Commit e023f190b0eed84fefc10e28bfe5e4e0467ff257 changed the storing of
file paths in the messagelist variable to be relative paths, but we were
using the full absolute path anyway as we missed one spot.
Adapt this and construct the full file path in the one place where we
need it.
Signed-off-by: Vladimir Marek <vlmarek at volny.cz>
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
offlineimap/folder/Maildir.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py
index 3b53156..2646205 100644
--- a/offlineimap/folder/Maildir.py
+++ b/offlineimap/folder/Maildir.py
@@ -128,7 +128,7 @@ class MaildirFolder(BaseFolder):
folderstr = ',FMD5=' + foldermd5
for dirannex in ['new', 'cur']:
fulldirname = os.path.join(self.getfullname(), dirannex)
- files.extend(os.path.join(fulldirname, filename) for
+ files.extend(os.path.join(dirannex, filename) for
filename in os.listdir(fulldirname))
for file in files:
messagename = os.path.basename(file)
--
1.7.4.1
More information about the OfflineIMAP-project
mailing list