betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

24 March 2006

Beefed Up Trackback Notification

Looking at Zope sending email
 

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      : %s
I include this line:
https://www.betabug.ch/zope/ch-athens/%s/manage_trackbacks
and 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

Posted by betabug at 10:25 | Comments (0) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< Evening Sky After Rainstorm | Main | COREBlog Existences >>
Comments
There are no comments.
Trackbacks
You can trackback to: http://betabug.ch/blogs/ch-athens/326/tbping
There are no trackbacks.
Leave a comment