Code

duh
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 23:14:52 +0000 (23:14 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 23:14:52 +0000 (23:14 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2196 57a73879-2fb5-44c3-a270-3262357dd7e2

detectors/emailauditor.py

index 30f963604bf3ab01b867c56345c1de1c78464334..2f1c290ea333ca2281bc447352219993826420d2 100644 (file)
@@ -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]