from ConfigParser import SafeConfigParser
from base64 import b64encode
-import md5
+
+if sys.version_info[0] == 2 and sys.version_info[1] >= 6:
+ import hashlib as md5
+else:
+ import md5
import cgi
import dbm
pass
msg.add_header("Date", createddate)
msg.add_header("X-rss2maildir-rundate", datetime.datetime.now() \
- .strftime("%a, %e %b %Y %T -0000")
+ .strftime("%a, %e %b %Y %T -0000"))
subj_gen = HTML2Text()
title = item["title"]
title = re.sub(u'<', u'<', title)