On Mon, May 28, 2007 at 10:14:10AM +0200,
bernard(_dot_)schoenacker(_at_)free(_dot_)fr wrote:
Selon Dallman Ross <dman(_at_)nomotek(_dot_)com>:
[53 unnecessary lines of my earlier post deleted here. Bernard,
please trim your articles appropriately!]
Basically, we ought to be abstractifying the "RE" strings,
like so:
SPACE = ' '
TAB = ' '
WS = $SPACE$TAB
RE = (Re|Fwd|Aw |Tr)
RESTRING = ([$WS]*$RE([(][0-9]+[)])*:)+
:0 h fw
* $ ^Subject:\/$RESTRING
* $ MATCH ?? $RE.*$RE
* $ ^Subject:$\MATCH\/.*
| formail -I "Subject: Re:$MATCH"
Now you can put whatever you want in the definition for $RE.
[My signing of my name[1] also trimmed, and the blank line before that]
[[1] Not a traditional .sig, so I didn't call it that]
tanks for this recipe, but it's possible to mind a modificacation form
"lower cases" and "uper cases" ( capital letters and tiny letters ) with the
same rules ....
Bernard: procmail conditions by default are not case-sensitive. We
have to use the D flag to make them so. Have you reviewed "man procmailrc"?
Also, I see you have altered my text yet are quoting it as "mine." PLEASE
do not do that! It is bad, bad, bad netiquette and can also lead to
massive confusion. You are quoting above as if I said it:
RE = (Re|Fwd|Aw |Tr)
That is NOT what I wrote. In any case, we do not want any whitespace
in those phrases, and you have introduced one. That will cause the
recipe to fail some of the time.
What I wrote was:
RE = (Re|Fwd|Aw)
You are free to add "Tr" or whatever else you want, but don't quote
it back to the list as *mine*. And don't put a space in there!!!
Thank you.
A final thing: you ought to be able to test recipes for basic
functionality. You need to be using what I call a test harness
(because it controls the flow in the manner that a harness controls
a beast of burden) and Sean and many others call a sandbox. (Same
concept.) We've discussed how many times, so please look up
how in the archives. Sean has a link to a sandbox set on his
web pages. The link is in his .sig. More simply, you can just
do:
procmail -m DEFAULT=/dev/null VERBOSE=y rcfile < message
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