Procmail Regex



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

: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 ?

Thanks,

Dino

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



Relevant Pages

  • Procmail Regex (revised question)
    ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (Fedora)
  • Procmail Regex
    ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (comp.mail.sendmail)
  • procmail regex
    ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (comp.mail.sendmail)
  • Procmail Regex
    ... I twice a day get all my emails using fetchmail + cron and delivered ...
    (comp.mail.misc)
  • Re: Cron Not Sending Mail
    ... Cron is not sending output as emails. ... seeing the output of a backup script in my daily email. ... It looks like you're using user: www for your crontab. ...
    (freebsd-questions)