procmail
[Top] [All Lists]

Re: formail tricks

2004-04-14 13:29:48
I asked my friend Mike Peeler for help with the magic of the alias.

Cool beans, but this does work:

Using -m2 for a formail no-op, our new trick definition of headers is:

  a headers 'h2 -m2'

Note the idea is to supply a \!^ to h2 that isn't the same as \!$.  We
thus move the filename you give to headers to be h2's \!:2, which then
separates \!$ from \!:1-, now guaranteed to be non-overlapping.  Thus:

  a h2 'zmore \!$ | formail \!:1- -I =:::::::= -X "" -20 -s'


I also tried it with "-q" as the "formail no-op"; that works, as well.
Both settings (-m2 or -q) are the default according to the man page.


Sheesh.  If this thing could take multiple filename args, I'd be
ecstatic!  (But make no mistake, it's very cool.)

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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