[EMAIL PROTECTED] writes:
> Are there any filters like procmail available that can deliver to
> mailboxes in maildir format? The most important purpose is to
> redirect some mails, as from this list, for example, to appropriate
> directories.
I posted one solution earlier today: safecat. It's a small program
which duplicates the standard input to a file in a maildir. I wrote it
as an exercise in understanding DJB code, and worked very hard to make
it as reliable as qmail's own delivery. You can get it at the URL:
<http://www.pobox.com/~lbudney/linux/software/safecat.html>.
It can be used under an unpatched procmail, using a recipe like the
following:
:0w
|safecat $HOME/Maildir/tmp $HOME/Maildir/new
Your example, filtering mailing lists, is also pretty easy--especially
if you use qmail extensions. For example, I'm subscribed under the
address "[EMAIL PROTECTED]". To deliver to a
maildir called "$HOME/Mail/qmail", I just put the following in
.qmail-lists-default:
|safecat $HOME/Mail/$EXT2/tmp $HOME/Mail/$EXT2/new
As you can see, I can subscribe to as many mailing lists as I want,
and qmail+safecat will deliver each list's traffic to the right place.
The reason safecat takes two arguments, is so that you can (for
example) make the first argument "$HOME/tmp". It's a minor violation
of the maildir algorithm, but makes no difference as long as both
directories are on the same filesystem.
Len.
--
40. Strive not with your Superiers in argument, but always Submit your
Judgment to others with Modesty.
-- George Washington, "Rules of Civility & Decent Behaviour"