Ralph Seichter wrote:
Hello list members,
can fetchmail be configured to delete mail exceeding a certain size limit
from a mailbox? I know that there's the "limit" option, but the man page
reads:
"Messages larger than this size will not be fetched and will be left
on the server. [...] If the fetch protocol permits [...] the message
will not be marked seen."
This should preserve huge mail, but I'd like to be able to use something
like this:
poll pop.1und1.com proto pop3
user "foo" pass "secret" is "bar"
limit 10000 deleteoversized
If I missed a FAQ or manual entry mentioning this, I kindly ask you to
point me to it. Thank you!
Mit freundlichen Grüßen / Regards
Dipl. Inform. Ralph Seichter
mailto:ralph(_at_)seichter(_dot_)de
This works here by using IMAP and putting the limit in the configuration
of the mail server listening at port 25 (postfix, sendmail, etc). But
then you are not able to send messages which are bigger then this limit.
man fetchmail:
SPAM FILTERING
...............
If fetchmail is fetching from an IMAP server, the antispam
response will be detected and the message rejected immedi
ately after the headers have been fetched, without reading
the message body. Thus, you won't pay for downloading
spam message bodies.
SMTP/ESMTP ERROR HANDLING
Besides the spam-blocking described above, fetchmail takes
special actions on the following SMTP/ESMTP error
responses
................................
552 (message exceeds fixed maximum message size)
Delete the message from the server. Send bounce-mail
to the originator.
Frohe Weihnachten
Roland