From f66d9ca3ca3576ce56148a707c77de1a57af011b Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 10 May 2012 11:36:42 +0200 Subject: [PATCH] fix typo --- docbow_project/docbow/management/commands/sendmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docbow_project/docbow/management/commands/sendmail.py b/docbow_project/docbow/management/commands/sendmail.py index 25b1977..c530476 100644 --- a/docbow_project/docbow/management/commands/sendmail.py +++ b/docbow_project/docbow/management/commands/sendmail.py @@ -71,7 +71,7 @@ In case of failure the following return value is returned: def decode_filename(self, filename): '''See if the filename contains encoded-word work around bugs in FileMakerPro''' - m = re.match(r'=\?(.*)\?(.*)\?(.*)\?=', s) + m = re.match(r'=\?(.*)\?(.*)\?(.*)\?=', filename) if m: result = [] for content, encoding in email.header.decode_header(filename):