nmh-workers
[Top] [All Lists]

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

2013-02-15 16:22:49

In message 
<20130215220249(_dot_)20DEC36097B(_at_)charybdis(_dot_)ellipsis(_dot_)cx>, 
Joel Uckelman <uckelman(_at_)nomic(_dot_)net> wrote:

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?

I don't know.  Can I?

This (rcvstore) is yet one more thing that I never even knew about until
today.

(It would have been Nice, I think, if the SEE ALSO section of the man
page for inc had mentioned this one.)

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


Can you help me to understand the first line of that?

Obviously, based on what I already posted, I _do_ understand the initial
":0" part of that, and I just looked man the procmailrc man page and now
I have learned about the 'w" part.  But what's that other colon doing in
there?  And what is the significance of "Mail/sp/$LOCKEXT" ?

Sorry to be so helpless, but as all can see now, I'm actually rather
seriously ignorant, both about anything but the most rudimentary features
of procmail and also, apparently, about all but the most fundamental
commands provided by nmh.

But this is all proving to be very educational, and I'm grateful.


Regards,
rfg


P.S.  Does rcvstore diddle the user's $HOME/Mail/context file?

For my purposes, it would be Nice if it didn't.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>