procmail
[Top] [All Lists]

Depositing instead of sending mail

2005-02-07 14:31:40
I have been looking at the script for Small Mailing Lists that Sean 
posted in 2002. In the section on processing mail to the listowner, 
he puts adds an X-Loop header, then uses sendmail to forward the 
email to the listowner. He suggests simply depositing the mail in a 
mailbox if the user is local. I'm local and I want to deposit the 
mail instead of sending it. I'd appreciate a check on the recipe 
modification to do this.

The original snippet was:

---begin snippet---
:0
* ! ^X-Loop:.*$listowner
| (formail -a"X-Loop: $listowner") | $SENDMAIL $listadmin
---end snippet---

To deposit instead of sending, I've come up with this modification:

---begin snippet---
{
:0 c:
* !^X-Loop:.*$listowner
| formail -a"X-Loop: $listowner"

:0
.$listname/
}
---end snippet---

Am I anywhere near correct?

Doug

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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