changeset 1287:210f96eeda09

mailimport: strip blanks from pagename_tpl, add TODO
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 15 Aug 2006 13:46:52 +0200
parents 2c27897f5c98
children 7a7c7da7af90
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Tue Aug 15 13:15:59 2006 +0200
+++ b/MoinMoin/mail/mailimport.py	Tue Aug 15 13:46:52 2006 +0200
@@ -4,6 +4,11 @@
     Just call this script with the URL of the wiki as a single argument
     and feed the mail into stdin.
 
+    TODO:
+     * sanitize pagename in the same way as when we get it from url
+     * add from/to/subj infos when attaching to main page (without +)
+     * check + usage when not using subpages
+
     @copyright: 2006 by MoinMoin:AlexanderSchremmer,
                 2006 by MoinMoin:ThomasWaldmann
     @license: GNU GPL, see COPYING for details.
@@ -147,6 +152,7 @@
         if pagename_tpl[-1] == pagename_tpl[0] == "'":
             pagename_tpl = pagename_tpl[1:-1]
 
+    pagename_tpl = pagename_tpl.strip()
     if pagename_tpl.endswith("/"):
         pagename_tpl += email_subpage_template