Hey iedereen,
Ik ben me wat aan het verdiepen in procmail, maar ik zit met volgend
probleempje:
Bij het binnenkomen van een mail wil ik automatisch een mailtje
terugsturen, om niet in een oneindige lus naar mezelf te geraken voeg ik
in de headers X-Loop toe, maar blijkbaar ziet procmail die niet...
Zelfs wanneer ik via het commando mail de X-Loop header meegeef negeert
procmail deze...
Any help is welcome
Tnx
michael
procmailrc:
-----------
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/pmlog
LOG="
"
VERBOSE=yes
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
mail/spam
:0
* !^X-Loop: michael@flex-it.be
| cat $HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost
procmail-log:
--------------
...
procmail: [12939] Tue Mar 30 10:15:24 2004
procmail: Executing "/usr/bin/spamassassin"
procmail: [12939] Tue Mar 30 10:15:25 2004
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on ! "^X-Loop: michael@flex-it.be"
procmail: Assigning "LASTFOLDER= cat $HOME/.vacation.msg | mail -s "Out of
office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: Notified comsat: "flecxie@:/home/flecxie/ cat
$HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil
<michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost"
Folder: cat $HOME/.vacation.msg | mail -s "Out of office" -a "From:
1
procmail: Executing " cat $HOME/.vacation.msg | mail -s "Out of office" -a
"From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: [12947] Tue Mar 30 10:15:26 2004
procmail: Executing "/usr/bin/spamassassin"
procmail: [12947] Tue Mar 30 10:15:26 2004
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on ! "^X-Loop: michael@flex-it.be"
procmail: Assigning "LASTFOLDER= cat $HOME/.vacation.msg | mail -s "Out of
office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: Notified comsat: "flecxie@:/home/flecxie/ cat
$HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil
<michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost"
Folder: cat $HOME/.vacation.msg | mail -s "Out of office" -a "From:
1
procmail: Executing " cat $HOME/.vacation.msg | mail -s "Out of office" -a
"From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
...
mbox:
------
From flecxie@aerythmic.be Tue Mar 30 10:15:26 2004
Return-Path: <flecxie@aerythmic.be>
Delivered-To: flecxie@localhost.lisa
Received: by LiSa (Postfix, from userid 1000)
id E6FFF9CEC1; Tue, 30 Mar 2004 10:15:26 +0200 (CEST)
To: flecxie@localhost.LiSa
Subject: Out of office
From: Michael De Nil <michael@flex-it.be>
X-Loop: michael@flex-it.be
Message-Id: <20040330081526.E6FFF9CEC1@LiSa>
Date: Tue, 30 Mar 2004 10:15:26 +0200 (CEST)
X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.20
X-Spam-Level:
test 2
Ik ben me wat aan het verdiepen in procmail, maar ik zit met volgend
probleempje:
Bij het binnenkomen van een mail wil ik automatisch een mailtje
terugsturen, om niet in een oneindige lus naar mezelf te geraken voeg ik
in de headers X-Loop toe, maar blijkbaar ziet procmail die niet...
Zelfs wanneer ik via het commando mail de X-Loop header meegeef negeert
procmail deze...
Any help is welcome
Tnx
michael
procmailrc:
-----------
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/pmlog
LOG="
"
VERBOSE=yes
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
mail/spam
:0
* !^X-Loop: michael@flex-it.be
| cat $HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost
procmail-log:
--------------
...
procmail: [12939] Tue Mar 30 10:15:24 2004
procmail: Executing "/usr/bin/spamassassin"
procmail: [12939] Tue Mar 30 10:15:25 2004
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on ! "^X-Loop: michael@flex-it.be"
procmail: Assigning "LASTFOLDER= cat $HOME/.vacation.msg | mail -s "Out of
office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: Notified comsat: "flecxie@:/home/flecxie/ cat
$HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil
<michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost"
Folder: cat $HOME/.vacation.msg | mail -s "Out of office" -a "From:
1
procmail: Executing " cat $HOME/.vacation.msg | mail -s "Out of office" -a
"From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: [12947] Tue Mar 30 10:15:26 2004
procmail: Executing "/usr/bin/spamassassin"
procmail: [12947] Tue Mar 30 10:15:26 2004
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on ! "^X-Loop: michael@flex-it.be"
procmail: Assigning "LASTFOLDER= cat $HOME/.vacation.msg | mail -s "Out of
office" -a "From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
procmail: Notified comsat: "flecxie@:/home/flecxie/ cat
$HOME/.vacation.msg | mail -s "Out of office" -a "From: Michael De Nil
<michael@flex-it.be>" -a "X-Loop: michael@flex-it.be" flecxie@localhost"
Folder: cat $HOME/.vacation.msg | mail -s "Out of office" -a "From:
1
procmail: Executing " cat $HOME/.vacation.msg | mail -s "Out of office" -a
"From: Michael De Nil <michael@flex-it.be>" -a "X-Loop:
michael@flex-it.be" flecxie@localhost"
...
mbox:
------
From flecxie@aerythmic.be Tue Mar 30 10:15:26 2004
Return-Path: <flecxie@aerythmic.be>
Delivered-To: flecxie@localhost.lisa
Received: by LiSa (Postfix, from userid 1000)
id E6FFF9CEC1; Tue, 30 Mar 2004 10:15:26 +0200 (CEST)
To: flecxie@localhost.LiSa
Subject: Out of office
From: Michael De Nil <michael@flex-it.be>
X-Loop: michael@flex-it.be
Message-Id: <20040330081526.E6FFF9CEC1@LiSa>
Date: Tue, 30 Mar 2004 10:15:26 +0200 (CEST)
X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.20
X-Spam-Level:
test 2