Better Living Through Thinking

blog_post: post to blosxom via email

Mon, 03 Oct 2005

Yes, I wrote it myself. ;-)

If you use blosxom, this might make posting to your blog more convenient or more fun. Here is a sample of the ample documentation:

SYNOPSIS

  :0 bi
  * ^TO_blog@mydomain\.tld
  * ^Subject: blog post\/.*
  | $HOME/bin/blog_post -c -r /www/blosxom -t "$MATCH"

DESCRIPTION

<b>blog_post</b> takes a plain text email and creates a blosxom blog
entry. <b>blog_post</b> is invoked usually from a procmail recipe, but
any pipe will work.

To run <b>blog_post</b>, you must be vaguely familiar with
<b>procmail</b>.  Some links to good resources may be found below in
the L<SEE ALSO> section.

...

Running blog_post

<b>blog_post</b> is most often run from a procmail recipe, like this:

  :0 bi
  * H ?? ^TO_blog@domain\.tld
  * H ?? ^Subject: blog post\/.*
  | /path/to/blog_post -c -r /htdocs/blog -t "$MATCH"

This means that if you send an email to 'blog@domain.tld' with a
subject line containing 'blog post', a new blog entry will be created
for you.

Your email account should be setup to accept mail from
'blog@domain.tld'. If you don't have those kinds of privileges, you
can either remove that recipe line completely or change it to your own
email address.

If you never want to have your title specified via the command-line
(i.e., you'll always write it in the body of the message), you should
omit the <b>-t</b> option:

  :0 bi
  * H ?? ^TO_blog@domain\.tld
  * H ?? ^Subject: blog post\/.*
  | /path/to/blog_post -c -r /htdocs/blog

This posting was posted using blog_post, btw. What fun! ;-)

[ category: /blosxom | link: blog_post ]

Audio Broadcast

(standby)

Moon Status

Phase: 99.95%
Illuminated: 0.00%
Age (days): 29.52
moon phase 0.999529824913003 Sun May 20 17:26:48 MDT 2012