procmail
[Top] [All Lists]

Re: formail error 74 ??

2004-10-22 10:03:11
On Fri, Oct 22, 2004 at 09:48:38AM -0700, Bart Schaefer wrote:
Dallman is correct about needing only one formail, but he's got the -s
in the wrong place; it has to come last.

    formail -cf -X "X-Spam-Status" -s < mailbox ; echo $?

Thanks; that's what I meant to type.  I screwed up and didn't
copy-and-paste from the working version I'd tried on my command line.
Insted, I cloned the original and edited it, badly.  _Mea culpa_.

Here, still in my shell history for recall with one "f" and the
up-arrow:

[217.86.14.114 -> panix5] {dman} [0.62]
 6:55pm [~/Mail] 505[1]> formail < spam -s formail -cf -X 'X-Spam-Status' ; 
echo $?
X-Spam-Status: yes
X-Spam-Status: no
74

[217.86.14.114 -> panix5] {dman} [0.77]
 6:55pm [~/Mail] 506[0]> formail -cf -X 'X-Spam-Status' -s < spam ; echo $?     
             
X-Spam-Status: yes
X-Spam-Status: no
0


Thanks for the other info on redireciton pliancy.

-- 
dman

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