|
From: Ivan I. <nos...@ml...> - 2007-02-26 12:29:50
|
Nedavno Stuart J. Browne pise:
| POP3 has 'top' which fetches headers-only, but yes, can't get the body
| seperately.
But I do not want to get the body separately, I want NOT to get mail at
all after fetching headers (if I find that that particular mail is for
user that does not exist on my mail server). Looking at fetchmail log
it seems to me that it can be done:
-----------------------------------------------------------------------
fetchmail: SMTP> MAIL FROM:<som...@so...> BODY=7BIT SIZE=1428
fetchmail: SMTP< 250 2.1.0 <som...@so...>... Sender ok
fetchmail: SMTP> RCPT TO:<non...@ou...>
fetchmail: SMTP< 550 5.1.1 <non...@ou...>... User \
unknown
fetchmail: SMTP listener doesn't really like recipient address \
`non...@ou...'
-----------------------------------------------------------------------
It looks like that at this point fetchmail got message that I do not
want this mail, but then it downloads it anyway and forwards it to
postmaster (iva):
-----------------------------------------------------------------------
fetchmail: SMTP> RCPT TO:<iva@localhost>
fetchmail: SMTP< 250 2.1.5 <iva@localhost>... Recipient ok
fetchmail: no address matches; forwarding to iva.
fetchmail: SMTP> DATA fetchmail: SMTP< 354 Enter mail, end with "." on\
a line by itself
#*fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 l1QAh4Iv013586 Message accepted for delivery
fetchmail: flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK
fetchmail: POP3> QUIT
fetchmail: POP3< +OK
fetchmail: SMTP> QUIT
-----------------------------------------------------------------------
So if at one point fetchmail got the message that "SMTP listener doesn't
really like recipient address" I just have to make it to skip few steps
("no address matches; forwarding to iva") and to go right to:
-----------------------------------------------------------------------
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK
fetchmail: POP3> QUIT
fetchmail: POP3< +OK
fetchmail: SMTP> QUIT
-----------------------------------------------------------------------
But I do not knew how how to do that :-(
--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** Registered Linux user #291606 **
/__/\____/--\__\ ** http://counter.li.org/ **
|