procmail
[Top] [All Lists]

Weird problem with shell execution

2008-03-22 11:54:41
Hello,

I have:

----[ '/usr/share/tdtools-procmail/INC_tdmailserialnumber' ]------------
<snip>
:0
* ^X-TDMailSerialnumber: \/.*[0-9]
{
  NUMBER=${MATCH}

  :0
  * ? test -z "${NUMBER}"
  { LOG="Weird problem with the serialnumber${NL}"
    :0
    .TDMailSerialnumber/
  }

  LENGHT=`echo ${#NUMBER}`
}
------------------------------------------------------------------------

and I get this weird error:

----[ '~/Maildir_sandbox/.sandbox.log' ]--------------------------------
procmail: [16338] Tue Mar 18 19:54:32 2008
procmail: Assigning "SHELL=/bin/bash"
procmail: Assigning 
"PATH=/home/michelle.konzack/bin:/bin::/usr/bin:/sbin::/usr/sbin"
procmail: Assigning "MAILDIR=/home/michelle.konzack/Maildir_sandbox"
procmail: Assigning "DEFAULT=/home/michelle.konzack/Maildir_sandbox/"
procmail: Assigning "NL=
"
procmail: Assigning "STN=       
"
procmail: Assigning "COMSAT=no"
procmail: Assigning "COMSAT=no"
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "LINEBUF=65536"
procmail: Assigning 
"FLT_DIR=/home/michelle.konzack/.tddebdevel/projects/tdtools-procmail/tdtools-procmail-1.0.0/src"
procmail: Assigning "PROCMAIL_DIR=/home/michelle.konzack/.procmail"
procmail: Assigning 
"INCLUDERC=/home/michelle.konzack/.tddebdevel/projects/tdtools-procmail/tdtools-procmail-1.0.0/src/INC_tdmailserialnumber"
<snip>
procmail: Assigning "MATCH="
procmail: Matched "8068632"
procmail: Match on "^X-TDMailSerialnumber: \/.*[0-9]"
procmail: Assigning "NUMBER=8068632"
procmail: Executing " test -z "${NUMBER}""
procmail: Non-zero exitcode (1) from " test -z "${NUMBER}""
procmail: No match on " test -z "${NUMBER}""
procmail: Bad substitution of ""
procmail: Executing "echo,NUMBER}"
procmail: Assigning "LENGHT=NUMBER}"
procmail: Assigning 
"LASTFOLDER=/home/michelle.konzack/Maildir_sandbox/new/1205866472.16338_0.tp570.private"
 Subject: SINCERE APPEAL TO YOU
  Folder: /home/michelle.konzack/Maildir_sandbox/new/1205866472.16338_     4742
------------------------------------------------------------------------

OK the error

    procmail: Bad substitution of ""

is in this line:

    LENGHT=`echo ${#NUMBER}`

and procmail try to execute:

    procmail: Executing "echo,NUMBER}"

which mean, even if I have  declared  "SHELL=/bin/bash"  the  procmailrc
is not correctly parsed.

The version on my Laptop (Sarge) is :

    procmail v3.22 2001/09/10

and on my new VIA EPIA Workstation:

----[ command 'apt-cache policy procmail' ]-----------------
procmail:
  Installiert:3.22-16
  Mögliche Pakete:3.22-16
  Versions-Tabelle:
 *** 3.22-16 0
       1000 ftp://ftp2.de.debian.org sid/main Packages
        500 ftp://ftp2.de.debian.org lenny/main Packages
        500 ftp://ftp2.de.debian.org etch/main Packages
        100 /var/lib/dpkg/status
     3.22-11 0
        500 ftp://ftp2.de.debian.org sarge/main Packages
------------------------------------------------------------

so, from Sarge over Etch and Lenny to Sid, the same version.

I think, this parse error should be solved.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

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