procmail
[Top] [All Lists]

Re: extracting the TO username

2000-05-16 20:52:44
On 16 May, Rav Ahuja wrote:

Since I don't want to pipe the message to the program I tried the following
instead but it didn't work:

:0
* ^TO_\/
! `myscript "$MATCH"`

I also saw some related hints in the mailing list archive and tried the
following, which also did not work:

:0
* ^To:[ ]*\/[^  ].*
! `myscript "$MATCH"`

Any other suggestions?


Try | instead of !

But remember that $MATCH will contain the whole match and not
necessarily just the e-mail address, as I believe it is what you
intend...

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