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):