lj2mail

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

Continue reading lj2mail

Taking care of mailing labels

Via this discussion at Perlmonks, I found an interesting module PostScript::MailLabels, which helps a lot when there is a need for generating a mass mailing. Sample image of a label is here. Instead of using MS Word or other heavy-weights one can easily manage everything from a simple Perl script.

Website of Class::DBI module

Via comments to this note at PerlMonks, I’ve learned that Class:: DBI actually has its own website. There you can find all sorts of useful stuff from links to plugins (!!!) for this module, to links to articles about the module, and even a cookbook. Now this is one proper way to maintain a module!