Procmail Regex

Anne Wilson cannewilson at googlemail.com
Fri May 11 09:15:10 UTC 2007


On Friday 11 May 2007, Linux Geeks wrote:
> Hi All,
>
> Right now I have a global account which reside in my ISP's server, and
> I twice a day get all my emails using fetchmail + cron and delivered
> them to each mailbox using procmail.
>
> Right now I'm using an abundant rules to check agains 'To' and
> 'Received' header from incoming mails as shown below
>
> ====================
>
> :0
>
> * ^To:.+a at domain\.com
> ! a at domain.com
>
> :0
>
> * ^Received:.+a at domain\.com
> ! a at domain.com
>

> ====================
>
> This rule is very inefficient. As I create new user, I have to add two
> additional rule entry. Is there any regex alternative to my problem  ?
>


Try

:0
* (^To|^Received):.+a at domain\.com
 ! a at domain.com

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070511/3cde6986/attachment-0001.sig>


More information about the fedora-list mailing list