According to the man page the second ":" is optional, i.e. :0: but, as a sample of something known to work (from the SpamAssassin sample .procmailrc) it does use the above syntax. Here's the example: # Mails with a score of 15 or higher are almost certainly spam (with 0.05% # false positives according to rules/STATISTICS.txt). Let's put them in a # different mbox. (This one is optional.) :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* mail/almost-certainly-spam The above *does* work on my system (RHL8.0). So maybe the second ":" is not optional all the time? HTH, Peter On Friday, November 8, 2002 8:45 AM, Marc Hughes <HughesM@tomsnyder.com> wrote:
I have a procmail question.... I have this rule:
:0 * ^From:.*hughesm@tomsnyder.com test
That doesn't seem to work. But this rule...
:0c * ^From:.*hughesm@tomsnyder.com test
... Works just fine ... But I want the first rule, I don't want it to copy (what the :0c does) I want it to move (:0) Am I doing something wrong?
Thanks! -Marc
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- Peter Gutowski <peter@linuxchamps.com> // tel.: (413) 531-0123 "When in company, put not your hands to any part of the body not usually discovered." --George Washington, _Rules for Civility and Decent Behavior_
On Fri, Nov 08, 2002 at 09:13:18AM -0500, Peter Gutowski wrote:
According to the man page the second ":" is optional, i.e.
:0:
but, as a sample of something known to work (from the SpamAssassin sample .procmailrc) it does use the above syntax. Here's the example:
So maybe the second ":" is not optional all the time?
Just so we're all clear, the second ":" tells procmail that is needs to lock the file before writing to avoid corrupted mailboxes. So it's a good idea if you're writing to a mailbox, but isn't actually required, especially if you're writing to /dev/null or something. I didn't see anything wrong offhand with the procmail rules shown. Can we see the header of an example mail which doesn't work with the original but works with the carbon copy method? (and by work, just to double check, we're talking about the message going into the "test" folder). -- Randomly Generated Tagline: "When it is not necessary to make a decision, it is necessary not to make a decision." - From www.slashdot.org
participants (2)
-
Peter Gutowski
-
Theo Van Dinter