hopefully i haven’t annoyed anyone with the appearing-and-disappearing moblog entries this afternoon, as i worked on customizing Brandt Kurowski’s moblog.pl
a little. it worked fine out of the box, but there were some tweaks to make it do things the way i wanted.
- It can optionally strip a string from the Subject: line of incoming messages — so that one may do something such as mail oneself blog entries, identifying them with a Subject: line tag, which forces
procmail
to send it off tomoblog.pl
, - It allows you to change what end-of-line tag you use, so if you are picky like me you can use
instead of
, for example, - It allows you to trivially change the order of message body and image in the published story,
- It supplies an entry-specific
ALT
attribute for theIMG
tag, using the text of the entry title, and - It allows you to specify the blosxom story filename suffix, in case you use something other than
txt
.
nothing was particularly interesting or complex really, but i thought it was possibly worth sharing.
diffs are at http://ziggurat.org/sabrina/perl/moblog.pl.diff; the full script is at http://ziggurat.org/sabrina/perl/moblog.pl.