With this script I will terrorize my friends from today onwards. What it does is get all the recent posts from some LiveJournal blog and email them as separate messages to a list of recepients. Subject of the blog entry is used as a subject of the email. Body of the message contains of text and the permalink.
In order to use, first configure few simple variables at the beginning of the script, providing LJ credentials, list of recepients, address to use in the From: field and a file to keep the timestamp of the last syncronization.
Changes: in this version I have fixed encoding fo the body and subject. Body can now be recoded with Text::Iconv module to any encoding from the default UTF-8. Subjects are additionally fixed to be base64-encoded.
lj2mail.pl – Original version (20041227)
:) I can feel how it’s work
There are still a few minor issues with this at the moment. For example, it does not support any tags in the posts, neither HTML, nor LiveJournal specific ones. Will be fixed soon, if I will be annoyed by these a lot. :)