Beefed Up Trackback Notification
This morning I needed an example of how to send a simple plaintext mail notification from Zope. So... [think, think], COREBlog has a notification example, which I had beefed up a bit sometime. I used that one as my example and went on to augment the corresponding Trackback-Notification script....
My problem with the Trackback-Notification method out of the box is that it doesn't show to which post the trackback is attached. With more than 300 posts so far, searching is a bit of a drag, especially since trackback spam arrives for any random post. I changed the script to include the URL of the posts trackback list in the ZMI. Saves a lot of time. So, in front of the line:
Title : %sI include this line:
https://www.betabug.ch/zope/ch-athens/%s/manage_trackbacksand then change the substitution line to add me another substitution in the right place, like this:
%s""" % (to_addr,from_addr,d['parent_id'],d["title"],d["url"],\
d["blog_name"],d["excerpt"])
A long time ago, in order to get mails with Greek content to work properly, I also changed the headers of the mail to look like this:
Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bi