On Thu, Jun 18, 2015 at 09:34:13PM +0200, Suvayu Ali wrote: > On Thu, Jun 18, 2015 at 02:49:35PM -0400, Xu Wang wrote: > This variable configures how often (in seconds) mutt should look for new > mail. > Also see the $timeout variable. > > So I don't think 0 makes sense here.
The code (in buffy.c) is:
...
t = time (NULL);
if (!force && (t - BuffyTime < BuffyTimeout))
return BuffyCount;
BuffyTime = t;
BuffyCount = 0;
BuffyNotify = 0;
...
So, it appears that if mail_check is 0, mutt will simply do the mail
check every time it can (every time mutt_buffy_check() is called).
If it's not clear, BuffyTimeout gets initialized from the value of
mail_check. This code also shows that there are times when mutt will
check for mail regardless of how mail_check is set--whenever the
function is called with the force parameter != 0. That happens in 3
places in the code.
So, no, there's no way to prevent mutt from checking for new mail.
Having answered the question, I am pretty curious: Why on earth would
you want to do that?!
--
Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address. Replying to it will result in
undeliverable mail due to spam prevention. Sorry for the inconvenience.
pgpzUsItHx6ul.pgp
Description: PGP signature
