Blog of Leonid Mamchenkov

You just stepped in a pile of posts.

lj2mail

Posted in All on December 28th, 2004 · 2 Comments

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

lj2mail.pl - Original version (20041227)

Tags: , , , , ,

2 responses so far ↓

  • 1 levz // Dec 28, 2004 at 6:18 pm

    :) I can feel how it’s work

  • 2 Leonid Mamchenkov // Dec 28, 2004 at 10:09 pm

    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. :)

Leave a Comment

Note: This post is over 3 years old. You may want to check later in this blog to see if there is new information relevant to your comment.