changeset 1614:f89eb93324e2

mailimport: generate header above mail content in any case
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 09 Oct 2006 17:41:13 +0200
parents 5ed53bd2b3f8
children 9fa2ec252d1f
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Sun Oct 08 21:30:06 2006 +0200
+++ b/MoinMoin/mail/mailimport.py	Mon Oct 09 17:41:13 2006 +0200
@@ -247,8 +247,9 @@
     else:
         new_content = ''
 
-    if not (generate_summary and "/" in pagename):
-        new_content += u"'''Mail: %s (%s, [[DateTime(%s)]])'''\n\n" % (msg['subject'], email_to_markup(request, msg['from_addr']), msg['date'])
+    #if not (generate_summary and "/" in pagename):
+    #generate header in any case:
+    new_content += u"'''Mail: %s (%s, [[DateTime(%s)]])'''\n\n" % (msg['subject'], email_to_markup(request, msg['from_addr']), msg['date'])
 
     new_content += d['content']
     new_content += "\n" + u"\n * ".join(attachment_links)