procmail
[Top] [All Lists]

Re: Using procmail to manage sendmails mqueue

2003-04-03 18:04:07
At 23:40 2003-04-03 +0000, Kevin Alford did say:
Can I use procmail to comb thought sendmail's mqueue and delete queued
emails with specific subject: or from: lines?

I think you should examing your mail queue and note the file syntax.

You _could_ externally process the mail queue with a script, but that won't have procmail invoked as the messages are submitted to the queue (and thus, cannot delete the messages as they arrive - you could only scan the contents periodically via a cron-invoked process, or manually). You'd need a wrapper script for procmail to glob the directory and invoke procmail with each mail queue file in turn.

Sendmail has MILTER support, you could investigate that (that wouldn't have the same overhead of launching an external program). Otherwise, if you sort out how to invoke procmail from within the queue submission, please do share.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>