procmail
[Top] [All Lists]

Re: How to let procmail use mre memory?

2010-01-30 10:38:27
OK, the LIMIT is NOT 64kByte but 128 kByte and the error is here:

----[ '~/.tdtools-procmail/BUSINESS_firms_maxim' ]----------------------
    # Download the AppNote
    TMPVAR3=`wget --user-agent="tdtools-procmail v${TDTP_VERSION}" --quiet -O - 
${TMPVAR1} ; :`
    :0
    * ? test -n "${TMPVAR3}"
    {
      # Get the link to the PDF
      TMPVAR4=`echo -e "${TMPVAR3}" |grep 'pdfserv' |head -n1 |sed 
's|.*http://pdfserv|http://pdfserv|' |sed 's|\.pdf.*|.pdf|' ; :`

LOG="####  5 ####${NL}"
      # Eleminate the unused HEADER and attach a new HEAD
      # if it fails, use to original and continue
VERBOSE=on
      TMPVAR5=`echo -e "${TMPVAR3}" |sed -n '/APPLICATION NOTE /,$p' |sed 
's|.*APPLICATION NOTE&nbsp;|<html><head></head><body><table><tr><td>APPLICATION 
NOTE |' ; :`
      :0
      * ? test -z "${TMPVAR5}"
      {
LOG="####  6 ####${NL}"
        TMPVAR5=`echo -e "${TMPVAR3}" |sed -n '/REFERENCE DESIGN&nbsp;/,$p' 
|sed 's|.*REFERENCE 
DESIGN&nbsp;|<html><head></head><body><table><tr><td>REFERENCE DESIGN |' ; :`
      }
      :0
      * ? test -z "${TMPVAR5}"
      {
LOG="####  7 ####${NL}"
        TMPVAR5="${TMPVAR3}"
      }
<snip>
------------------------------------------------------------------------

----[ '~/.log/procmail/2010-02-30.log' ]--------------------------------

######################  Sat, 30 Jan 2010 17:22:46 +0100  ######################
Diskspace:   1250964 kByte
-------------------------------------------------------------------------------
From:        info2(_at_)maxim-ic(_dot_)com
To:          
michelle(_dot_)konzack(_at_)mail(_dot_)private(_dot_)tamay-dogan(_dot_)net
Delivered-To: 
michelle(_dot_)konzack(_at_)mail(_dot_)private(_dot_)tamay-dogan(_dot_)net
Size:        1403 Bytes
Date:        Thu, 07 Jan 2010 12:50:29 -0000
Date (Recv): Thu, 07 Jan 2010 13:50:29 +0100
===============================================================================
            FLT_anzeigen           : Entered
            TOOL_nonet             : Pass [www.o2online.de]
            FLT_whitelist          : Pass [FLT_whitelist.DebianStaff]
            FLT_whitelist          : Whitelisted [FLT_whitelist.Global]
            BUSINESS_firms         : Pass
            BUSINESS_firms         : Maxim Integrated Products
####  5 ####
procmail: [25292] Sat Jan 30 17:22:57 2010
procmail: Executing "echo -e "${TMPVAR3}" |sed -n '/APPLICATION NOTE&nbsp;/,$p' 
|sed 's|.*APPLICATION 
NOTE&nbsp;|<html><head></head><body><table><tr><td>APPLICATION NOTE |' ; :"
procmail: [25292] Sat Jan 30 17:22:58 2010
procmail: Assigning 
"TMPVAR5=<html><head></head><body><table><tr><td>APPLICATION NOTE 178</td>

<td style="color:#a5a5a5;font-weight:bold;" nowrap>

<snip>

</body>
</html>"
procmail: Executing " test -z "${TMPVAR5}""
procmail: Failed to execute ""
procmail: Non-zero exitcode (69) from " test -z "${TMPVAR5}""
procmail: No match on " test -z "${TMPVAR5}""
procmail: Executing " test -z "${TMPVAR5}""
procmail: Failed to execute ""
procmail: Non-zero exitcode (69) from " test -z "${TMPVAR5}""
procmail: No match on " test -z "${TMPVAR5}""
procmail: Assigning "LOG=####  8 ####
"
####  8 ####
procmail: Executing "echo -e "${TMPVAR5}" |sed '/<!-- BEGIN: EE-MAIL -->/,//d' 
; :"
procmail: Failed to execute "echo -e "${TMPVAR5}" |sed '/<!-- BEGIN: EE-MAIL 
-->/,//d' ; :"
procmail: Assigning "TMPVAR9="
procmail: Executing " test -z "${TMPVAR9}""
procmail: Failed to execute ""
procmail: Non-zero exitcode (69) from " test -z "${TMPVAR9}""
procmail: No match on " test -z "${TMPVAR9}""
procmail: Skipped "/html>"
procmail: Match on ! "</html>"
procmail: Assigning "LOG=#### 10 ####
"
#### 10 ####
procmail: Assigning "TMPVAR9=
</table></body></html>"
procmail: Assigning "LOG=#### 11 ####
"
#### 11 ####
procmail: Executing "echo "${TMPVAR9}" |html2text -width 72 -nobs -style pretty 
; :"
procmail: Failed to execute "echo "${TMPVAR9}" |html2text -width 72 -nobs 
-style pretty ; :"
procmail: Assigning "TMPVAR9="
procmail: Executing " test -n "${TMPVAR9}""
procmail: Failed to execute ""
procmail: Non-zero exitcode (69) from " test -n "${TMPVAR9}""
procmail: No match on " test -n "${TMPVAR9}""
procmail: Assigning "VERBOSE=off"
From 
michelle(_dot_)konzack(_at_)mail(_dot_)private(_dot_)tamay-dogan(_dot_)net  
Sat Jan 30 17:22:46 2010
 Subject: =?iso-8859-1?q?Printed_Circuit_Board_Identification_Using_1-Wire=AE_P
  Folder: .Business.USA.Maxim.App_Notes/new/1264868566.25292_1.samba3      1391
------------------------ END OF REPLIED MESSAGE ------------------------

OK, the file I sucked had 87 kByte and procmail failed to check, whether
TMPVAR5 was empty because it tried to use a second time  87 kByte  which
exceeded the 128 kByte MEMORY LIMIT.

AND NO, LINEBUFF does not work in this case since it is already  set  to
256 kByte.

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

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strabourg/France
IRC    #Debian (irc.icq.com)                  Tel. DE: +49 177 9351947
ICQ    #328449886                             Tel. FR: +33  6  61925193

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