fetchmail-friends
[Top] [All Lists]

[fetchmail] Re: Downloading Large -- Removing Small

2002-08-04 09:18:44
So sprach SoloCDM am 2002-08-04 um 07:48:58 -0600 :
Is the following legitimate?

Yes.


fetchmail -a -b 250 -B 250 -e 50

If not, please explain to me the difference between batchlimit and
fetchlimit.

»batchlimit« sets a limit to the number of messages fetchmail sends to
your MTA.  If you're fetching 300 messages and you set the batchlimit to
250, fetchmail will initiate 2 connections to the MTA.  It will first
send 250 messages to the MTA and will then terminate the connection.
Next it will build up a new connection and send the remaining 50
messages.

»fetchlimit« sets a limit to the number of messages fetchmail will fetch
from the remote POP3/IMAP/... server.  If there are 300 messages waiting
for you at the POP3/IMAP/... server, it'll only download the first 250
messages.  On a subsequent call, it will download the remaining 50
messages (plus any new messages, but again no more than 250 messages).

So it doesn't make sense to set fetchlimit and batchlimit to the same
numbers, because the connection to the MTA will be terminated as soon as
the fetchlimit is reached.  This further means, that the batchlimit
should always be smaller than the fetchlimit, if you want to specify
both.

»expunge« controls, after how many fetched messages fetchmail will (try
to) force the deletion of messages.  In POP3, this means that it will
QUIT the connection to the remote POP3 server after the number of
messages you specify here.  After this limit has been reached, fetchmail
will rebuild the connection.   So, if you've got 300 messages, and
»expunge« of 50 means, that fetchmail will fetch 50 messages, QUIT the
connection, rebuild it, download the next 50 messages and so on.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.biz     |    Jabber: 
askwar(_at_)a-message(_dot_)de
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 1 day 22 hours 53 minutes