l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Sep 26 21:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] How to apply procmail filters to existing mailbox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] How to apply procmail filters to existing mailbox?

On Thu, Sep 26, 2002 at 03:27:37PM -0700, Peter Jay Salzman wrote:
> harry,
> why this doesn't create an infinite loop when it processes an email that
> doesn't match any rules in .procmailrc?

Depending on the procmail_rc file you could potentially have duplicates.

> don't these emails go right back into /var/mail/graham?

Not necessarily. (but by default yes)

> > cat /var/mail/graham | procmail -m procmail_rc_file 

In the example above I filtered all the incoming mail waiting in
/var/mail/graham through procmail. I did NOT use my regular procmail_rc
file, but an altered rc file that moved mail into folders depending on
mailing list rules, spam rules, etc. Mail that didn't match anything was
put in a different file -- thus preventing getting a duplicate.

> > Be careful of your directories and file names that are in the
> > procmail_rc_file. You could get email placed where you don't want it.


So, potentially you could get mail in funky places if your rc file is
not altered appropriately and possibly duplicates in /var/mail/graham. I
don't believe you will get an endless loop though.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.