[Gllug] Procmail recipe problem
Tethys
tet at createservices.com
Mon Apr 4 15:08:02 UTC 2005
Adrian McMenamin writes:
>I am trying to filter on From: but I am having problems (ie it doesn't
>work!). Are there any foibles with From: ?
>
>I have lines like this
>
>:0
>* ^From:.*@sender\.domain\.org\.uk
>{
> :0
> | /usr/bin/sendmail -fadrian at mcmen.demon.co.uk
>otheraddress at otherdomain.com
>}
Why use the nested block? Why not just do it all with a single recipe:
:0
* ^From:.*@sender\.domain\.org\.uk
| /usr/bin/sendmail -fadrian at mcmen.demon.co.uk otheraddress at otherdomain.com
If you're not bothered about setting the from address, then just forward it
directly with procmail:
:0
* ^From:.*@sender\.domain\.org\.uk
! otheraddress at otherdomain.com
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list