Procmail Regex
Anne Wilson
cannewilson at googlemail.com
Fri May 11 09:27:47 UTC 2007
On Friday 11 May 2007, Anne Wilson wrote:
> 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
>
This may be a mixture of methods, so may not work. I use structures like
${MAILDIR}.INBOX.Design/
in the destination line.
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/4ad390a7/attachment-0001.sig>
More information about the fedora-list
mailing list