procmail
[Top] [All Lists]

Re: Filter and Resend Message

2007-05-03 10:00:29
On Thu, May 03, 2007 at 07:21:26PM +0300, Udi Mottelo wrote:

On Thu, 3 May 2007, Dallman Ross wrote:

MY_TO = `formail -zx To: -zx Cc: | fmt -1 |

      fmt -1   Beautiful idea!


Thanks.  Been using it for at least a dozen years in this guise.


         grep @ourdomain\. | uniq -c | tr -d '[[]()<>,      ]'`

      To be precise:

grep @ourdomain\. | tr -d '[[]()<>,   ]' | sort -i | uniq -c -i`

Well, no.  I did err in that I didn't want "uniq -c" -- I wanted
"sort -u".  Then we don't need uniq at all.  I tested the rest,
but I didn't test that one command because it was an afterthought
and it didn't occur to me that I might have misremembered.  :-)
Actually, I see from my command history in my shell the I did it
right.  But then I wrote the wrong thing in the email I was in
the middle of composing when I'd shelled out to test.  Oh, well.
This is what I wanted there:

   grep @notnetcom\. | sort -u | tr -d '[[]()<>,        ]'

(That was a tab after the comma in the final brackets.)

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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