aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <gideonstar@thehappy.de>2009-07-24 14:33:21 +0200
committerStefan Ritter <gideonstar@thehappy.de>2009-07-24 14:33:21 +0200
commit8d77719ceec40ca02b45a571f6286ce7c65c77e5 (patch)
treee30dc37fe111a0831e460809349c6c982180a119 /blogthon.cgi
parent57b8c5aacae395f16af7cf56bc44d4239cbc1b3a (diff)
Link to entry in new-comment-mail parsed through re.sub
Diffstat (limited to '')
-rwxr-xr-xblogthon.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index bbb0131..6e32476 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -198,7 +198,7 @@ if cname and ctext and ctitle:
content.close()
# Send mail?
if new_comment_mail:
- msg = 'From: Blogthon\nSubject: New comment on ' + blog_title + '\n\nSomeone wrote a comment to this entry: ' + blog_url + '?p=' + ctitle
+ msg = 'From: Blogthon\nSubject: New comment on ' + blog_title + '\n\nSomeone wrote a comment to this entry: ' + blog_url + '?p=' + re.sub(' ', '-', ctitle)
smtp = smtplib.SMTP(smtp_host)
smtp.sendmail(blog_title, mail_to, msg)
smtp.quit()