From 65b69b331cb671b2436dcf2a832300e2ef841c95 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 25 Mar 2004 23:14:52 +0000 Subject: [PATCH] duh git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2196 57a73879-2fb5-44c3-a270-3262357dd7e2 --- detectors/emailauditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detectors/emailauditor.py b/detectors/emailauditor.py index 30f9636..2f1c290 100644 --- a/detectors/emailauditor.py +++ b/detectors/emailauditor.py @@ -29,8 +29,9 @@ def eml_to_mht(db, cl, nodeid, newvalues): So... we do that. :)''' if newalues.get('type', '').lower() == "message/rfc822": - if newvalues.has_key('name'): + if not newvalues.has_key('name'): newvalues['name'] = 'email.mht' + return name = newvalues['name'] if name.endswith('.eml'): name = name[:-4] -- 2.30.2