procmail
[Top] [All Lists]

How to get HEADER AND BODY into a variable?

2007-09-18 06:27:47
Hello,

I have tried to use:

----8<------------------------------------------------------------------
MAILDIR=${HOME}/Maildir_sandbox
DEFAULT=${MAILDIR}/

VERBOSE=on
LINEBUFF=8192

:0
* ! X-Loop:(_dot_)*linux4michelle(_at_)freenet\(_dot_)de
* B ?? This message was cancelled from within Mozilla
{ 
  NEWMSG=`sed 's|^|> |'`
  
  :0hc
  | (formail -r -t                                              \
             -I "From: linux4michelle(_at_)freenet(_dot_)de"            \
             -I "Date: `date --rfc-822`"                        \
             -I "Content-Type: text/plain; charset=us-ascii"    \
             -I "Content-Disposition: inline"                   \
             -A "X-Loop: linux4michelle(_at_)freenet(_dot_)de" ;                
\
             echo "${ONE_LINE_MSG}" ;                           \
             echo "" ;                                          \
             echo "" ;                                          \
    echo "##############################################################" ; \
    echo "##                                                          ##" ; \
    echo "##        Your  weird  message  is  below  attached.        ##" ; \
    echo "##                                                          ##" ; \
    echo "##############################################################" ; \
    echo "" ;                                                   \
    echo -e "${NEWMSG}") |sendmail -v -t
  }

  :0
  .autoresponder/
}
----8<------------------------------------------------------------------

This is working with one exception:

   ${NEWMSG} contain ONLY the HEADER of the message.

but I need the WHOLE message.

How to do this?

NOTE:   Currently I am running a external script which works perfectly,
        but the execution is much slower as if I do it inside the
        "procmailrc" So I try to do as much as possibel with "procmail". 

Thanks, Greetings and nice Day
    Michelle Konzack
    Tamay Dogan Network


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/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>