procmail
[Top] [All Lists]

Re: formail but WITHOUT updating unseen sequences?

1997-12-15 14:48:50
On Mon, 15 Dec 1997 18:22:54 +0000 "J.Sigbrandt" wrote
# Filtering for the HVML  Digests
:0: HVMLIn/.lock
* ^From:(_dot_)*HVML(_at_)somewhere(_dot_)net
| formail +1 -I "Reply-to: HVML(_at_)somewhere(_dot_)net" \
         -ds /usr/lib/mh/rcvstore +HVMLIn
...
What I am looking for, is a method to do the above but
WITHOUT updating the unseen sequences ... i.e. I want formail
to simply add the individual messages straight into the 
IxionIn folder with no further fuss.

Another, more hackish way of doing this would be to
keep track of the 'rcvstore'd messages in the action
line, and remove them from the Unseen-sequence.

:0: HVMLIn/.lock
* ^From:(_dot_)*HVML(_at_)somewhere(_dot_)net
| (formail +1 -I "Reply-to: HVML(_at_)somewhere(_dot_)net" \
        -ds /usr/lib/mh/rcvstore +HVMLIn -sequence rcvd ;\
        mark -sequence `mhparam Unseen-sequence` -delete rcvd )

It's nasty, but it works.

Or, as they say in PERL country: TMTOWTDI

-- 
Chris Mikkelson                 
mikk0022(_at_)maroon(_dot_)tc(_dot_)umn(_dot_)edu
U of M Tuba and Student    "Life is too short for windows..."
'94-present