On Fri, Aug 20, 1999 at 11:10:38AM -0400, Mark E. Drummond wrote:
> I would like to change my setup a bit so that I have say ~/Mail/ which
> would contain Maildir style mailboxes under it like so:
>       ~/Mail/inbox
>       ~/Mail/mutt
>       ~/Mail/qmail
> So everything is set up except for the mail filter and I am wondering
> which I should use. I have some experience with procmail but have not
> managed to get it to work with qmail. Is there a filter that I can stick
> in the pipe that will deliver to Maildir style folders?

Maildir is the one where each message is in a separate unique file inside
the "directory" which is the folder, no?

Should be easy with procmail.  You just need to do a variable substitution
from an execution at the top of the .procmailrc to a small script of your
choice that assembles a random filename from the PID ($$ in most shells)
and the mm-dd-hh-mm of the `date` command and stick them together like:
$$-mm-dd-hh-mm  

So say you have a script "maildirdate" in procmail's path somewhere, you'd
do:  fixedfile=`maildirdate`

Then when you save out to your mailing lists, you could use the variable as
the last part of the filename in your specific recipes:  
/home/mark/Mail/mutt/$fixedfile

I -think- that works the way you want it, maintaining procmail usage for
you.  :)  I glanced over the procmailrc man page quickly and it looks like
it's acceptable.

(another) mark->
-- 
Fairlight->   |||        [EMAIL PROTECTED]          | Fairlight Consulting
  __/\__      ||| "I'm talking for free...           | http://www.fairlite.com
 <__<>__>     |||   It's a New Religion..."          | [EMAIL PROTECTED]
    \/        ||| PGP Public Key available via finger @iglou, or Key servers

Reply via email to