Here's what I'll use from my filtmail script.
Blosxom is a no brains needed weblogging tool that's very simple but
effective.
use lib "$ENV{HOME}/lib/perl5/site_perl";
use File::Path;
$blogpath = "$ENV{HOME}/www/htdocs/blosxom";
if ( $Header{To} =~ /blog\(_at_)elastica(_dot_)com/ ) {
# strip path and filename
#$Header{Subject} = "path/subdir/subdir2/filename(_dot_)txt(_at_)this is the
title";
$Header{Subject} =~ /(.*)@(.*)/;
$fullpathname = $1;
$title = $2;
$fullpathname =~ m!(.*)/(.*)!;
$path = $1;
$file = $2;
#(_at_)dest = split /\//, $path;
$finalpath = $blogpath . '/' . $path;
if (!-d $finalpath) {
mkpath($finalpath, 755) || die("Cannot make path $finalpath");
}
# output to file make sure title is the first line
if (!-f "$finalpath/$file") {
open(BLOG,">$finalpath/$file");
print BLOG $title;
# output body to rest of file
print BLOG "\n";
print BLOG $Body;
close(BLOG);
}
exit 0;
}
On Monday, December 23, 2002, at 06:57 PM, dman(_at_)nomotek(_dot_)com wrote:
Robert Nicholson <robert(_at_)elastica(_dot_)com> crypted:
Anybody written a rule that allows you to blog to Bloxsom?
Dude, would you try again, please, but in English this time?
I confess I just looked up "blog" and found the entry -- hadn't
known about that one before. (Try it out via atomica.com's
"Slingshot" client for Windows.) I still don't quite grok
the concept, but okay, the word exists and seems to be
known among a chosen few. But "Bloxsom"? And "blog" as a
verb? No, I don't get this at all.
I'm afraid this isn't the hep-cats list.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail