procmail
[Top] [All Lists]

Re: digest messages

2000-03-07 21:59:13
On Tue, 7 Mar 2000, Philip Guenther wrote:

pg> "S.Toms" <tomas(_at_)primenet(_dot_)com> writes:
pg> >
pg> >  I've tried the following, which works, but seems kinda clunky and slow
pg> >to me.
pg> >
pg> >:0f
pg> >| formail +1 -ds formail -bfi "Reply-To: blah(_at_)blah(_dot_)com" >> 
mailfolder
pg> >
pg> >  is there a better way?
pg> 
pg> You almost certainly don't want the 'f' flag on that recipe.  It'll cause
pg> an empty message to be processed by the rest of your rcfile.  You should
pg> instead use the 'w' flag to catch the return code of the formail command.
pg> As for making this nicer, you can give formail header alteration flags
pg> (-i, -a, etc) when splitting and they will be applied to each message
pg> that is split out.
pg> 
pg>     :0 w:
pg>     | formail +1 -bfi "Reply-To: blah(_at_)blah(_dot_)com" -ds >> mailfolder
pg> 

  Tried it out and it appeared to work as I was thinking, but upon
implementing it, I discovered it actually makes one large message with all
the individual messages within it. So I'm back to my original one, except
now I'm using it with the 'w' and the : lock.
  Any other thoughts?

pg> The second colon tells procmail to put a locallockfile on the file
pg> specified after the >> in the action.
pg> 
pg> 
pg> Philip Guenther
pg> 

-- 
        S.Toms - tomas(_at_)primenet(_dot_)com - www.primenet.com/~tomas
                   SuSE Linux v6.3+ - Kernel 2.2.14

Get Revenge!  Live long enough to be a problem for your children!

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