procmail
[Top] [All Lists]

Re: Mailstat "Folders" Not Always Folders?

2002-01-24 21:03:03
At 22:16 2002-01-24 -0500, Kenneth Blackwell did say:
| formail -rf -I "X-Mailer: Bob's Spam Canceller" -I "From: \
     Kenneth Blackwell" -i "Subject: Your message has been deleted" \
     | cat - $HOME/.procmail/spam-msg \
     | /usr/lib/sendmail -t

I believe this (slightly different) syntax is how most people here perform this sort of task:

| ( formail -rf -I "X-Mailer: Bob's Spam Canceller" -I "From: \
     Kenneth Blackwell" -i "Subject: Your message has been deleted" ; \
    cat $HOME/.procmail/spam-msg ) \
     | /usr/lib/sendmail -t

Note that you could have echos or other cats in there, to "build" a message, without need to grab stdin and echo it back out to stdout before doing so.

I doubt it is any more efficient (dunno if it really involves an extra shell, though it might), but it can be more versatile.

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