Hello,
sometimes I have to do automated mailprocessing and the following code
sniplet is working perfectly:
----[ '/usr/share/tdtools-procmail/ML_debian' ]-------------------------
<snip>
#=====================================================================
# Auto Responder for the Debian Lists
#=====================================================================
:0
* $ ! ^X-TDTP-Loop:.*${MSG_TO}
* ^X-Loop:.*(debian.org)
* $ ^To:.*${TDTP_EMAIL_ML}
* ^From:(_dot_)*-request(_at_)lists(_dot_)debian(_dot_)org
* ^Subject:.*CONFIRM
{
:0
* ? test "${TDTP_SHOW_RECIPES}" = "true"
{ LOG="${SHOW_RECIPE}${TDTP_L10N_110}${NL}" }
:0c
{
:0fw
| (formail -r -t \
-a "Message-ID:" \
-I "From: ${MSG_TO}" \
-I "Date: `date --rfc-822`" \
-A "X-TDTP-Loop: ${MSG_TO}" \
-I "X-Mailer: tdtools-procmail ${TDTP_VERSION}" \
-I "X-Loop:" ; \
echo "# Subscription confirmed." )
:0c
|sendmail -t
}
:0
.${TDTP_NAME}.ADMIN/
}
<snip>
------------------------------------------------------------------------
OK, if I now modify it to do mailprocessing for ABUSE and it looks like
----[ '/usr/share/tdtools-procmail/Abuse' ]-----------------------------
<snip>
:0c
{
TMPVAR1=${LINEBUF}
LINEBUF=10485760
TMPVAR2=`cat`
LINEBUF=${TMPVAR1}
:0fw
| (formail -r -t \
-I "From: Abuse Team <${TDTP_ABUSE}>" \
-I "Sender: ${TDTP_ABUSE}" \
-I "To: Abuse Team <${ABUSE_RECPT}>" \
-I "Date: ${DATE_NOW_RFC}" \
-a "Message-Id:" \
-I "User-Agent: tdtools-procmail ${TDTP_VERSION}" \
-I "Mime-Version: 1.0" \
-I "Content-Type: multipart/related;
boundary='1234567890-abuse-1234567890'" ; \
echo "" ; \
echo "\--1234567890-abuse-1234567890" ; \
echo "Content-Type: text/plain; charset=us-ascii" ; \
echo "Content-Transfer-Encoding: quoted-printable" ; \
echo "" ; \
echo "Hello Abuse Team," ; \
echo "" ; \
echo "your customer" ; \
echo " <${TDTP_SPAMER}>" ; \
echo "is permanently spaming our mailservers." ; \
<snip>
echo "\--1234567890-abuse-1234567890" ; \
echo "Content-Type: message/rfc822" ; \
echo "Content-Transfer-Encoding: 8bit" ; \
echo "" ; \
echo "${TMPVAR2}" ; \
echo "" ; \
echo "\--1234567890-abuse-1234567890--")
# :0c
# | sendmail -t
}
<snip>
------------------------------------------------------------------------
and I get following error:
----[ '/var/log/tdtools-procmail/2009-08-05.log' ]----------------------
procmail: Error while writing to " (formail -r -t \
-I "From: Abuse Team <${TDTP_ABUSE}>" \
-I "Sender: ${TDTP_ABUSE}" \
-I "To: Abuse Team <${ABUSE_RECPT}>" \
-I "Date: ${DATE_NOW_RFC}" \
-a "Message-Id:" \
-I "User-Agent: tdtools-procmail ${TDTP_VERSION}" \
-I "Mime-Version: 1.0" \
-I "Content-Type: multipart/related;
boundary='1234567890-abuse-1234567890'" ; \
echo "" ; \
echo "\--1234567890-abuse-1234567890" ; \
echo "Content-Type: text/plain; charset=us-ascii" ; \
echo "Content-Transfer-Encoding: quoted-printable" ; \
echo "" ; \
echo "Hello Abuse Team," ; \
echo "" ; \
echo "your customer" ; \
<snip>
echo "\--1234567890-abuse-1234567890" ; \
echo "Content-Type: message/rfc822" ; \
echo "Content-Transfer-Encoding: 8bit" ; \
echo "" ; \
echo "${TMPVAR2}" ; \
echo "" ; \
echo "\--1234567890-abuse-1234567890--")"
procmail: Rescue of unfiltered data succeeded
From xxxxxxxxxxxx(_at_)hotmail(_dot_)fr Wed Aug 5 13:41:18 2009
Subject: FW: Tr : DANEMARK : UNE HONTE
Folder: .Abuse/new/1249472478.20200_1.samba3 1000992
From xxxxxxxxxxxx(_at_)hotmail(_dot_)fr Wed Aug 5 13:41:18 2009
Subject: FW: Tr : DANEMARK : UNE HONTE
Folder: .Abuse/new/1249472478.21416_1.samba3 1000992
------------------------------------------------------------------------
Does someone find the Error please?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
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/> c/o Vertriebsp. KabelBW
<http://www.flexray4linux.org/> Blumenstrasse 2
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de 77694
Kehl/Germany
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