comparison detectors/emailauditor.py @ 3345:81cb4860ca75

fix nameerror. backport candidate
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Wed, 08 Jun 2005 03:37:37 +0000
parents a6588f4b841a
children
comparison
equal deleted inserted replaced
3344:2551a6f4cb78 3345:81cb4860ca75
26 extension, and then press ENTER. 26 extension, and then press ENTER.
27 4. Updated the URL that links to the file to reflect the new file 27 4. Updated the URL that links to the file to reflect the new file
28 name extension. 28 name extension.
29 29
30 So... we do that. :)''' 30 So... we do that. :)'''
31 if newalues.get('type', '').lower() == "message/rfc822": 31 if newvalues.get('type', '').lower() == "message/rfc822":
32 if not newvalues.has_key('name'): 32 if not newvalues.has_key('name'):
33 newvalues['name'] = 'email.mht' 33 newvalues['name'] = 'email.mht'
34 return 34 return
35 name = newvalues['name'] 35 name = newvalues['name']
36 if name.endswith('.eml'): 36 if name.endswith('.eml'):

Roundup Issue Tracker: http://roundup-tracker.org/