>>>>> "Faisal" == Faisal <[EMAIL PROTECTED]> writes:
Faisal> Write a small script in python or perl that's run after
Faisal> fetchmail terminates. It should pick up the headers of
Faisal> the mail, send a mail off to the reply-to address saying
Faisal> that the mail has been rejected etc due to size, and then
Faisal> delete the mail from the server. Not so tough - abt 60-70
Faisal> lines of python code methinks.
Once fetchmail terminates, either the entire mail has been downloaded,
so that a program like the one you suggest is superfluous; or the mail
has been skipped due to size, so that your program has to do what
fetchmail has already done (connect to the server and check the
rejected mail's size). Either case, it is useless.
Also, it may not have occured to you, but checkinging the reply-to
address of mail, without downloading it in its entirety requires IMAP,
which not many service providers have started to provide to date. POP3
simply doesn't do that.
The OP's requirement - fetchmail sends a mail whenever it rejects a
mail due to size limits (to whom??) - should require only an hour's
hack into the sources. Try it. The entire code is already there -
fetchmail checks for sizes, decides whether to accept or reject a
mail, and it also sends mails, already. It is just a question of
connecting these pieces.
Binand
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help