changeset 1288:7a7c7da7af90

mailimport: use (...) for content column link text if there is no subject
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 15 Aug 2006 17:31:41 +0200
parents 210f96eeda09
children 01d6d28d5039
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Tue Aug 15 13:46:52 2006 +0200
+++ b/MoinMoin/mail/mailimport.py	Tue Aug 15 17:31:41 2006 +0200
@@ -272,7 +272,7 @@
         from_col = email_to_markup(request, msg['from_addr'])
         to_col = ' '.join([email_to_markup(request, (realname, mailaddr))
                            for realname, mailaddr in msg['target_addrs'] if mailaddr != wiki_address])
-        subj_col = '["%s" %s]' % (pagename, msg['subject'])
+        subj_col = '["%s" %s]' % (pagename, msg['subject'] or '(...)')
         date_col = msg['date']
         attach_col = " ".join(attachment_links)
         new_line = u'|| %s || %s || %s || [[DateTime(%s)]] || %s ||' % (from_col, to_col, subj_col, date_col, attach_col)