Re: Procmail Regex



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@domain\.com
! a@xxxxxxxxxx

:0

* ^Received:.+a@domain\.com
! a@xxxxxxxxxx


====================

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@domain\.com
! a@xxxxxxxxxx

This may be a mixture of methods, so may not work. I use structures like

${MAILDIR}.INBOX.Design/

in the destination line.

Anne

Attachment: pgppWP6Ea2Y2e.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: Procmail Regex
    ... Right now I have a global account which reside in my ISP's server, ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (Fedora)
  • Re: Procmail Regex
    ... Right now I have a global account which reside in my ISP's server, ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (comp.mail.misc)
  • Re: Duplicate Messages?
    ... the distribution groups are expanded on different servers, ... in message tracking it shows them being sent twice? ... Any AV on the Exch Server? ...
    (microsoft.public.exchange.admin)
  • Re: Duplicate Messages?
    ... the distribution groups are expanded on different servers, ... in message tracking it shows them being sent twice? ... Any AV on the Exch Server? ...
    (microsoft.public.exchange.admin)
  • Re: Crazy queue times
    ... will handle hasn't been upped since the game went live 3 years ago. ... They should be able to handle twice as many on a server now. ... higher-end machines to get more out of it. ...
    (alt.games.warcraft)