<<< Date Index >>>     <<< Thread Index >>>

Re: automatically check for new mail



On Mon, Jan 28, 2008 at 09:22:49PM -0300, Leonardo Caldas wrote:
> On Mon, Jan 28, 2008 at 06:33:17PM +0100, Steve S wrote:
> > Hi
> > 
> > I'm new to mutt, so this question my have been asked before (I found 
> > nothing on
> > the web/in the wiki etc.). In my muttrc I have 
> > 
> > bind  browser n check-new
> > 
> > which works ok. I hit `n` manually from time to time to see if there is new
> > mail. Is it possible to do that automatically in the background (ala cron)?
> > 
> > s.
> 
> Here I run "fetchmail -d 180", which puts a fetchmail proccess into
> daemon mode and rerun it each 180 sec period.
> 

I'm doing that too, with getmail and a cronjob. 

The problem is not that mail doesn't download to my machine, but that mutt, if

* it is open all the time 
* showing the file browser (when invoked with `mutt -y`) 
* no key is pressed 

doesn't show the 'N' flag for folders (mailboxes) which have new mail after
$timeout seconds as it should (it should, right? :). It does that only if I 

a) go to some mailbox and then back to the browser (which is the event "a key
   is pressed" and mutt checks for new mail if I understand correctly)

b) invoke the <check-new> function manually.

s.