procmail
[Top] [All Lists]

Re: Can I forward multiple emails in procmail???

1998-03-05 11:18:16
On Thu, 5 Mar 1998, Webmarquee Newslists wrote:

      I have a virtual domain and a bunch of parked domains on top. Can
I use procmail recipes (low fat of course) to redirect email? Please
forgive my newbieness in this area.

There are a lot of idioms in your language which will be difficult
for many on this list.  For example, what means "parked?"

try:

:0:
* ^TOinfo(_at_)webmarquee(_dot_)com
! sales(_at_)webmarquee(_dot_)com

To do exactly what you said you want.
As long as info(_at_)webmarquee is actually in the header:
There is NO colon after ^TO

From man procmailrc
MISCELLANEOUS
       If the regular expression contains `^TO' it will  be  sub-
       stituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-
       Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)', which
       should catch all destination specifications.

Recipe action line...
...
       !      Forwards to all the specified mail addresses.
...



--
g-r-a-t-e-f-u-l-l-y---[   email:<fishbowl(_at_)conservatory(_dot_)com>   
]---l-i-v-i-n-g
d-e-a-d-i-c-a-t-e-d---[     http://www.conservatory.com/      ]-----l-i-g-h-t
There are more dead people than living, and their numbers are
increasing.  -- Eugene Ionesco


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