* Alex Huth <[email protected]> [06-05-10 17:49]: > Is there a way to reduce the time till a new mail appear? I have set > check_new and use maildir, but it takes up to 10 minutes till new mails > appear.
in .muttrc:
set mail_check=15 # how often to poll for new mail
from /usr/share/doc/packages/mutt/manual.txt.gz:
9. Handling multiple folders
Mutt supports setups with multiple folders, allowing all of them to be
monitored for new mail (see Section 14, "Monitoring Incoming Mail" for
details).
When in the index menu and being idle (also see $timeout), Mutt
periodically checks for new mail in all folders which have been
configured via the mailboxes command. The interval depends on the
folder type: for local/IMAP folders it consults $mail_check and
$pop_checkinterval for POP folders.
Outside the index menu the directory browser supports checking for new
mail using the <check-new> function which is unbound by default.
Pressing TAB will bring up a menu showing the files specified by the
mailboxes command, and indicate which contain new messages. Mutt will
automatically enter this mode when invoked from the command line with
the -y option.
For the pager, index and directory browser menus, Mutt contains the
<buffy-list> function (bound to "." by default) which will print a list
of folders with new mail in the command line at the bottom of the
screen.
For the index, by default Mutt displays the number of mailboxes with
new mail in the status bar, please refer to the $status_format variable
for details.
When changing folders, Mutt fills the prompt with the first folder from
the mailboxes list containing new mail (if any), pressing space will
cycle through folders with new mail.
and:
14. Monitoring Incoming Mail
Usage:
mailboxes mailbox [ mailbox ...]
unmailboxes { * | mailbox ... }
This command specifies folders which can receive mail and which will be
checked for new messages periodically.
folder can either be a local file or directory (Mbox/Mmdf or
Maildir/Mh). If Mutt was built with POP and/or IMAP support, folder can
also be a POP/IMAP folder URL. The URL syntax is described in
Section 1.2, "URL Syntax", POP and IMAP are described in Section 3,
"POP3 Support" and Section 4, "IMAP Support" respectively.
Mutt provides a number of advanced features for handling (possibly
many) folders and new mail within them, please refer to Section 9,
"Handling multiple folders" for details (including in what situations
and how often Mutt checks for new mail).
The "unmailboxes" command is used to remove a token from the list of
folders which receive mail. Use "unmailboxes *" to remove all tokens.
Note
The folders in the mailboxes command are resolved when the command is
executed, so if these names contain shortcut characters (such as "="
and "!"), any variable definition that affects these characters (like
$folder and $spoolfile) should be set before the mailboxes command. If
none of these shorcuts are used, a local path should be absolute as
otherwise Mutt tries to find it relative to the directory from where
Mutt was started which may not always be desired.
For Mbox and Mmdf folders, new mail is detected by comparing access
and/or modification times of files: Mutt assumes a folder has new mail
if it wasn't accessed after it was last modified. Utilities like biff
or frm or any other program which accesses the mailbox might cause Mutt
to never detect new mail for that mailbox if they do not properly reset
the access time. Other possible causes of Mutt not detecting new mail
in these folders are backup tools (updating access times) or
filesystems mounted without access time update support.
In cases where new mail detection for Mbox or Mmdf folders appears to
be unreliable, the $check_mbox_size option can be used to make Mutt
track and consult file sizes for new mail detection instead which won't
work for size-neutral changes.
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
