procmail
[Top] [All Lists]

Variable are not more expanded...

2008-03-26 09:47:40
Hello,

while working on my "BUSINESS_firms" filter of

----[ '~/.procmail/BUSINESS_firms' ]------------------------------------
<snip>
  TMPVAR="`cat ${USETLIST} | while read LINE ; do echo \"${FROM}\" |egrep 
--regexp=\"\`echo \"${LINE}\" |cut -d : -f1\`\" --ignore-case >/dev/null && 
echo \"${LINE}\" ; done`"
  :0
  * ? test -n "${TMPVAR}"
  {
VERBOSE=on
    TMPVAR2=`echo "${TMPVAR}" |cut -d ':' -f2`
    TMPVAR3=`echo "${TMPVAR}" |cut -d ':' -f3`
    TMPVAR4=`echo "${TMPVAR}" |cut -d ':' -f4`
    
#    DUMMY_EXEC=`which tdnetsound && tdnetsound ${TMPVAR4}`
    DUMMY_EXEC=`which tdnetsound && tdnetsound 
${HOME}/.procmail/Sounds/WAVE_incoming_mail.wav`
VERBOSE=off
    
    :0
    * ? test "${TDTP_SHOW_FILTERS}" = "true"
    { LOG="${TMPVAR3}${NL}" }
    :0
    ${TMPVAR2}/
  }
<snip>
------------------------------------------------------------------------

I have hit the next error with DUMMY_EXEC where the first version is NOT
working but the second.  The logfile say

----[ '~/log/procmail/2008-03-25.log' ]---------------------------------
######################  Tue, 25 Mar 2008 16:38:04 +0100  ######################
From:        paservices2(_at_)globalsources(_dot_)com
To:          michelle(_dot_)konzack(_at_)freenet(_dot_)de
Envelope-To: michelle(_dot_)konzack(_at_)freenet(_dot_)de
Size:        81415 Bytes
Date:        Sat, 22 Mar 2008 01:00:50 +0800 (SGT)
Date (Recv): Fri, 21 Mar 2008 18:01:06 +0100
#==============================================================================
             TOOL_tdmailserial: Serialnumber already assigned.
(8078597)    FLT_whitelist    : Whitelisted [whitelist]
(8078597)    FLT_anzeigen     : Entered
(8078597)    BUSINESS_firms   : procmail: [23006] Tue Mar 25 16:38:08 2008
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f2"
procmail: [23006] Tue Mar 25 16:38:08 2008
procmail: Assigning "TMPVAR2=.Business.GlobalSources/"
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f3"
procmail: Assigning "TMPVAR3=Global Sources China"
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f4"
procmail: Assigning "TMPVAR4=${HOME}/.procmail/Sounds/WAVE_incoming_mail.wav"
procmail: Executing "which tdnetsound && tdnetsound ${TMPVAR4}"
procmail: Assigning "DUMMY_EXEC=/home/michelle.konzack/bin/tdnetsound"
procmail: Assigning "VERBOSE=off"
Global Sources China
From pabouncedoi2(_at_)gsol(_dot_)globalsources(_dot_)com  Tue Mar 25 16:38:04 
2008
 Subject: PART 4: Uninterruptible power supplies...
  Folder: .Business.GlobalSources/new/1206459484.23006_1.tp570.private    81402
######################  Tue, 25 Mar 2008 16:38:59 +0100  ######################
From:        paservices2(_at_)globalsources(_dot_)com
To:          michelle(_dot_)konzack(_at_)freenet(_dot_)de
Envelope-To: michelle(_dot_)konzack(_at_)freenet(_dot_)de
Size:        32774 Bytes
Date:        Sat, 22 Mar 2008 01:00:51 +0800 (SGT)
Date (Recv): Fri, 21 Mar 2008 18:01:06 +0100
#==============================================================================
             TOOL_tdmailserial: Serialnumber already assigned.
(8078598)    FLT_whitelist    : Whitelisted [whitelist]
(8078598)    FLT_anzeigen     : Entered
(8078598)    BUSINESS_firms   : procmail: [23939] Tue Mar 25 16:39:03 2008
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f2"
procmail: [23939] Tue Mar 25 16:39:03 2008
procmail: Assigning "TMPVAR2=.Business.GlobalSources/"
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f3"
procmail: Assigning "TMPVAR3=Global Sources China"
procmail: Executing "echo "${TMPVAR}" |cut -d ':' -f4"
procmail: Assigning "TMPVAR4=${HOME}/.procmail/Sounds/WAVE_incoming_mail.wav"
procmail: Executing "which tdnetsound && tdnetsound 
${HOME}/.procmail/Sounds/WAVE_incoming_mail.wav"
procmail: Assigning "DUMMY_EXEC=/home/michelle.konzack/bin/tdnetsound"
procmail: Assigning "VERBOSE=off"
Global Sources China
From pabouncedoi2(_at_)gsol(_dot_)globalsources(_dot_)com  Tue Mar 25 16:38:59 
2008
 Subject: PART 5: Uninterruptible power supplies...
  Folder: .Business.GlobalSources/new/1206459539.23939_1.tp570.private    32761
------------------------------------------------------------------------

I have already done this several times but not ${TMPVAR4} is not more
expanded...

And there is another weird thing: Why does it show all two times only

procmail: Assigning "DUMMY_EXEC=/home/michelle.konzack/bin/tdnetsound"

and NOT

procmail: Assigning "DUMMY_EXEC=/home/michelle.konzack/bin/tdnetsound 
${HOME}/.procmail/Sounds/WAVE_incoming_mail.wav"

since in the second run, where I have put in the wave file directly it
was working

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>