So I got my blogpost perl script working so that I can use it as part of the system that accepts an email from the hiptop and posts it to my main blog and also hiptop nation.
There's actually several parts of the system:
- procmail accepts the email and calls the other scripts
- blogpost.pl posts to my moveable type blog using XMLRPC, according to the blogpostrc configuration specified in the procmailrc recipe (or the default in $HOME)
- munge_hiptop_nation_post.pl does some tweaking to the message body and subject to prepare it for forwarding off to hiptop nation. This piece is hella buggy :) ...I'll get around to cleaning it up someday....
There's also another part I hacked out that decodes japanese characters in the message into html unicode entities (that's for handling email from Mie's cell phone).
Warning: this is a total kludge that I've been piecing this together in my scant spare time. YMMV.
I'm wondering if you'd know how to remove the stuff for decoding the japanese characters from this... I've been trying to get the script to work for me, but my host won't install the perl module for that.
Posted by: David Calvarese | 2003.05.06 at 04:29 PM