procmail
[Top] [All Lists]

Re: double command

2000-07-28 10:09:05
On Thu, Jul 27, 2000 at 01:52:32PM -0500, David W. Tamkin wrote:
Rob Bringman asked,

| How do I do the following without running my external command twice?

| LIST=`formail -x Subject: -x To: -x Cc: -x Sender: -x From: | 
$HOME/bin/mygrep.plx`
| :0:
| * ? (formail -x Subject: -x To: -x Cc: -x Sender: -x From: | 
$HOME/bin/mygrep.plx)
| Lists/$LIST

This might do it:

 :0hw
 LIST=|formail -xSubject: -xTo: -xCc: -xSender: -xFrom: | $HOME/bin/mygrep.plx

  :0a:
  Lists/$LIST

Worked like a charm!

Thanks.  (Why couldn't I think of that?)

-- 
Rob Bringman

The views expressed are their own and do 
not necessarily reflect those of the author.


_______________________________________________
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>