PDA

View Full Version : [ubuntu] Procmail


Mailme
July 12th, 2009, 12:34 PM
Procmail question

Why doesn't this work?

MYEMAIL=joe@example.com

:0
* ^To: $MYEMAIL
{

do some action

}

I send the email to joe@example.com & it always fails !!!!

Driving me up the wall!!!!!

HermanAB
July 12th, 2009, 03:05 PM
:0:
* ^To:.*joe@example.com

Mailme
July 12th, 2009, 04:58 PM
Thank you for this, but what I was after was setting a VARIABLE wich I can put at the start of my script & not need to type out the email each and every time.

HermanAB
July 12th, 2009, 09:55 PM
Procmail is very primitive. Use Search and Replace in an editor.

Mailme
July 13th, 2009, 01:45 PM
Many thanks for your help.