procmail
[Top] [All Lists]

Re: variable in save file

2008-02-10 14:39:47
Hallo Professional Software Engineering 
<PSE-L(_at_)mail(_dot_)professional(_dot_)org>,
du schriebst am Sonntag, 10.02.2008 um 11:50:34 (-0800):
procmail: [21224] Sun Feb 10 19:27:56 2008
procmail: Assigning "MAILLANG="
procmail: Match on "."

And there you cut it off - WHAT happens with the message?  Surely it gets 
delivered to kill.sbd/spam-  because $MAILLANG is empty, which would 
indicate that the delivery part of the recipe is functioning properly, and 
thus, it's your variable definition which is problematic.

Yes:
procmail: Assigning "LASTFOLDER=kill.sbd/spam-"
procmail: Opening "kill.sbd/spam-"

cat testmail.txt | formail -xX-Spam-Possible-Language: | sed -e 's/ 
\([a-zA-Z0-9.]\{2,10\}\) .*/\1/g'
results in the desired result ...

... when invoked at a shell prompt, with a properly defined TERM.

What is your shell?  Why not set:

SHELL=/bin/sh

Only set the shell doesn't work.
 
near the top of your procmailrc and see if that has a 
difference.  Otherwise, you're going to need to tinker with TERM setting.
 
I set TERM=vt100 but it's useless.

MAILLANG2=`formail -xX-Spam-Possible-Language:`

assings the variable:

procmail: Executing "formail -xX-Spam-Possible-Language: | sed -e 's/ 
\([a-zA-Z0-9.]\{2,10\}\) .*/\1/g'"
procmail: Assigning "MAILLANG="
procmail: Executing "formail,-xX-Spam-Possible-Language:"
procmail: Assigning "MAILLANG2= zh.big5 ja.euc-jp zh.gb2312"

I will try tomorrow more ... and thanks for the hints.

mfg Thomas Richter

-- 
ss7://49.431.801306       Wot're we going to do tonight, Brain ?
gsm://49.179.5192431   The same thing we do every night, Pinky .
icq://124849926                     Try to TAKE OVER THE WORLD !
mailto:richter(_at_)thomas-richter(_dot_)de    http://www.thomas-richter.de
____________________________________________________________
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>