nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Pasing stdin to "inc -file" ?


From: Joel Uckelman
Subject: Re: [Nmh-workers] Pasing stdin to "inc -file" ?
Date: Fri, 15 Feb 2013 15:02:48 -0700

Thus spake "Ronald F. Guilmette":
> 
> I am signed up for many mailing lists, including this one, which
> I do not actually read on a routine basis, but which I like to
> archive locally using appropriately named MH folders that reside
> underneath my own ~/Mail directory.
> 
> Of course, as far as the MH system is concerned, the proper way to
> place a new message into a folder is the "inc" command.  But "inc"
> requires that the message be grabbed either after it has already
> been delivered to the user's onw local maildrop file or else that
> it come from a named file.  This creates a sort-of impeadance
> mismatch with the way that procmail wants to do things.  It just
> wants to pass the message file to some other command via stdin.
> Also, of course, each time "inc" runs it diddles the user's
> $HOME/Mail/context file to point to the folder/directory where the
> nes message is being refiled, regardless of whether the user desires
> this behavior or not.

Can't you use rcvstore for this?

For example, I've had this spam-filing recipe in my .procmailrc for ages:

:0w: Mail/sp/$LOCKEXT
* ^X-Bogosity: Spam, tests=bogofilter
| /usr/libexec/nmh/rcvstore +sp

-- 
J.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]