----- Forwarded message from Mail Delivery System
<Mailer-Daemon(_at_)freenet(_dot_)de> -----
Date: Wed, 13 Feb 2008 14:52:17 +0100
From: Mail Delivery System <Mailer-Daemon(_at_)freenet(_dot_)de>
To: linux4michelle(_at_)freenet(_dot_)de
Subject: Mail delivery failed: returning message to sender
X-TDMailSerialnumber: 7998842
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
SMTP error from remote mail server after initial connection:
host mx5.rz.rwth-aachen.de [134.130.3.52]: 554-mx5.rz.rwth-aachen.de
554 Your access to this mail system has been rejected due to the sending
MTA's poor reputation. If you believe that this failure is in error, please
contact the intended recipient via alternate means.
------ This is a copy of the message, including all the headers. ------
Return-path: <linux4michelle(_at_)freenet(_dot_)de>
Received: from [195.4.92.20] (helo=10.mx.freenet.de)
by mout5.freenet.de with esmtpa (Exim 4.69)
(envelope-from <linux4michelle(_at_)freenet(_dot_)de>)
id 1JPI25-0005vG-QC
for procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE; Wed, 13 Feb 2008
14:52:17 +0100
Received: from lec67-1-81-56-104-13.fbx.proxad.net ([81.56.104.13]:12076
helo=tp570.private.tamay-dogan.net)
by 10.mx.freenet.de with esmtpa (ID
asmtp(_dot_)tdnet(_at_)freenet(_dot_)de) (port 587) (Exim 4.69 #10)
id 1JPI25-0000QN-Iu
for procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE; Wed, 13 Feb 2008
14:52:17 +0100
Received: by tp570.private.tamay-dogan.net (sSMTP sendmail emulation); Wed, 13
Feb 2008 14:52:16 +0100
Date: Tue, 12 Feb 2008 23:09:31 +0100
From: Michelle Konzack <linux4michelle(_at_)freenet(_dot_)de>
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: procmail bounce handling
Message-ID: <20080212220931(_dot_)GF3515(_at_)freenet(_dot_)de>
References: <1202837661(_dot_)12134(_dot_)21(_dot_)camel(_at_)prime>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1202837661(_dot_)12134(_dot_)21(_dot_)camel(_at_)prime>
X-Message-Flag: Improper configuration of Outlook is a breeding ground for
viruses. Please take care your Client is configured correctly. Greetings
Michelle.
X-Disclaimer-DE: Eine weitere Verwendung oder die Veroeffentlichung dieser Mail
oder dieser Mailadresse ist nur mit der Einwilligung des Autors gestattet.
Organisation: Michelle's Selbstgebrautes
X-Operating-System: Linux tp570.private 2.4.27-2-686
X-Uptime: 22:59:51 up 1:42, 5 users, load average: 0.00, 0.03, 0.06
X-Homepage: http://www.debian.tamay-dogan.homelinux.net/
User-Agent: Mutt/1.5.9i
Content-Length: 1808
Hallo Matthew,
Am 2008-02-12 10:34:21, schrieb Matthew Boeckman:
FROM=`formail -xFrom:`
DATE=`formail -xDate:`
REASON=`formail -xDiagnostic-Code:`
TODO=`formail -xX-todo_id:`
TO=`formail -xTo:`
:0w:
|/home/www/bounce-thing "$FROM" "$DATE" "$REASON" "$TODO" "$TO"
I would use "-czx" instead of "-x".
And How do you get the variables in the SHell Script?
By using "-x" you must calculate with MULTILE line input which mean,
you shoulc use "-czx" for better parsing and then in the SHell script:
----8<--------------------------
#!/bin/bash
FROM="$1"
DATE="$2"
REASON="$3"
TODO="$4"
TO="$5"
----8<--------------------------
Bu I personaly prefer this recipe:
:0fw
|/home/www/bounce-thing
and then in the BaSH script I do
----8<------------------------------------------------------
#!/bin/bash
INPUT=$(cat)
FROM="$(echo "${INPUT}" |formail -czx "From:" )"
DATE="$(echo "${INPUT}" |formail -czx "Date:" )"
REASON="$(echo "${INPUT}" |formail -czx "Diagnostic-Code:")"
TODO="$(echo "${INPUT}" |formail -czx "X-todo_id:" )"
TO="$(echo "${INPUT}" |formail -czx "To:" )"
----8<------------------------------------------------------
But are you sure, the Header "X-todo_id:" is the an UNDERLINE?
Note: I have never seen Header with UNDERLINE characters, but MINUS.
Thanks, Greetings and nice Day
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 #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
----- End forwarded message -----
******************************************************************
* Do not Cc: me, because I am on THIS list, if I write here *
* Keine Cc: am mich, bin auf DIESER Liste wenn ich hier schreibe *
******************************************************************
Hello,
Thanks, Greetings and nice Day
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 #####################
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