From 1300f2289b2a8a32fb2b73375e2ff580340021d2 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Wed, 7 May 2014 00:05:55 +0200 Subject: [PATCH] deletemessageheaders(): use passed list of headers to remove ... and not self.filterheaders. With the current code this change is no-op (since self.filterheaders is always passed as header_list), but it is a bug in general. Signed-off-by: Eygene Ryabinkin --- offlineimap/folder/Base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index 8584cf8..cf9379a 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -506,7 +506,7 @@ next line\n new_headers = [] for h in headers.split('\n'): keep_it = True - for trim_h in self.filterheaders: + for trim_h in header_list: if len(h) > len(trim_h) and h[0:len(trim_h)+1] == (trim_h + ":"): keep_it = False break