Blog from Email

By Deane Barker on December 2, 2003

pop2blog: Speaking of Movable Type plugins, here’s a great one.

pop2blog, when executed, checks a given pop3 email account for email from a particular list of allowed senders. When email is found, pop2blog parses the email for text and embedded jpegs, and performs one of three tasks, depending on the content type discovered:

If text is discovered, pop2blog uses the subject line as the entry title, and the text as the entry body. […] If text and an image is discovered, uses the subject line as the entry title, and the text as the entry body, copies the image into an images directory with a unique name and a “now.jpg” name. […] If an image is discovered, copies the image into an images directory with a unique name and a “now.jpg” name.

Lastly, pop2blog deletes emails it successfully posts to the webpage, and reports the subject of messages that were not blogged.

When you combine an easy-to-use plugin API and the duct tape-like power of Perl, you really get some amazing things.

Gadgetopia