procmail
[Top] [All Lists]

Re: Forwarding mail to external account.

2000-12-01 16:14:07
On Fri, Dec 01, 2000 at 11:28:04PM +0200, Tomer Okavi wrote:
hey all.

Heyas ;)

I created a .procmailrc file in the second user home dir such as:
:0
* ^From: someone(_at_)domain\(_dot_)com
! user(_at_)yahoo(_dot_)com

And .. it doesn't work.

Try

* ^From:(_dot_)*someone(_at_)domain\(_dot_)com(_dot_)*
! user(_at_)yahoo(_dot_)com

I know I can call procmail from a .forward file but don't know how.

Put this in your .forward:

| /usr/bin/procmail 

My main problem is I have to keep all mail on the user mailbox and forward
those specified "From" e-mails.

You should try making a copy and delivering that to the other user, while
leaving the original message intact:

:0
* ^From:(_dot_)*someone(_at_)domain\(_dot_)com(_dot_)*
{
        :0 c
        ! user(_at_)yahoo(_dot_)com

        ... rest of your rule ..
        
}

will my recipe work for this.

Sometimes ;)

-- 
It's better to burn out than to fade away --Kurgan
_______________________________________________
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>