On Tue, Apr 04, 2006 at 07:10:36PM -0400, fleet(_at_)teachout(_dot_)org wrote:
On Tue, 4 Apr 2006, Dallman Ross wrote:
* ^Return-Path:(_dot_)*(_at_)hotmail
* $ ^Subject:$WS\/.*$
Remember that if the Subject is whitespace-only or empty or nonexistent,
this algorithm will barf.
The one above or the one you suggested " ^Subject:.*\/[^ ].* ";
which is what I'm using? Or both?
Well, both, to varying degrees. Realize: we have a condition saying,
"Subject-line must contain . . ." So if there's no Subject-line, well,
the condition just failed, didn't it?
The one above, which is similar to what you had in the first place,
then requires a space. So if there's none, or a tab, the recipe will
fail.
The one I suggested requires a non-blank character. So if there's
only whitespace, or nothing but an empty header-line, it will fail.
But the solution is what I said a few posts ago: capture the Subject
(if there is one) unconditionally in a prior recipe. That's all you
need to do.
All three of those conditions are possible, of course. In those cases, I
would expect the message dribble through the rest of the recipes and fall
gracefully (or not) into my "spam" folder - the last recipe in my
.procmailrc.
Maybe so, but you want your algorithms to be bug-free, as opposed to bug-
ridden. :-)
Dallman
____________________________________________________________
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