Vyachelsav wrote,
| FORMAIL=/usr/local/bin/formail
|
| :0 fh
| * $^To:.*${LOGNAME}
| * ^Subject: ping$
I think that that line, as it stands, already solves the problem.
| * !^FROM_DAEMON
| * !^X-Loop:
| | (${FORMAIL} -rt -I "Precedence: junk" \
| -I "From: Ping Robot <ping(_dot_)robot(_at_)my(_dot_)domain>" \
| -A "X-Loop: ping(_dot_)robot(_at_)my(_dot_)domain" ; \
| echo Sample ping responder \
| ) | ${SENDMAIL} ${SENDMAILFLAGS} -t
|
| everybody know what is X-Loop header for. but when i am going to send a
| reply to a responder message i can see that X-Loop header doesn't include
| into my reply. thus the * !^X-Loop: checking is completely useless.
| i checked it both with my mutt-1.2.5 and microsoft outlook express 4.
| i suspect that this problem occures on other mua's.
| what should i add into my recipe to avoid this?
First I want to be sure I understand the problem.
The ping responder's outgoing message has the X-Loop: header, right? So the
problem of a loop if someone writes to the ping responder and gives the
responder's own address in Reply-To: is prevented by the X-Loop: header.
That's what the X-Loop: header is supposed to do, to keep a daemon from
looping if it is tricked or miscoded into writing to itself. If the ping
responder writes to itself, it sees the X-Loop: header and doesn't answer
itself. (I'd also recommend including a "Precedence: bulk" header in the
ping responses.)
As I understand your post, Vyacheslav, that part works properly. Something
else is the problem: you write to the ping responder, it sends you the ping
data, and for some reason you want to reply to its message. When you start
to compose that reply, your MUA does not copy the X-Loop: header from the
ping response message. Well, no, it wouldn't. But since your subject then
will be "Re: ping" and not just "ping," it shouldn't cause a loop. If the
person using the responder takes the trouble to take "Re:" out of the default
subject, the person must want to get another ping response, so just let it
happen.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail