Check for new mail. More...
Functions | |
static enum MxStatus | comp_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | imap_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | maildir_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | mh_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | mbox_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | nntp_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | nm_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
static enum MxStatus | pop_mbox_check (struct Mailbox *m) |
Check for new mail - Implements MxOps::mbox_check() -. More... | |
Check for new mail.
m | Mailbox |
enum | MxStatus |
Check for new mail - Implements MxOps::mbox_check() -.
m | Mailbox |
enum | MxStatus |
If the compressed file changes in size but the mailbox hasn't been changed in NeoMutt, then we can close and reopen the mailbox.
If the mailbox has been changed in NeoMutt, warn the user.
Definition at line 584 of file compress.c.
Check for new mail - Implements MxOps::mbox_check() -.
m | Mailbox |
>0 | Success, e.g. MX_STATUS_REOPENED |
-1 | Failure |
Definition at line 2168 of file imap.c.
Check for new mail - Implements MxOps::mbox_check() -.
This function handles arrival of new mail and reopening of maildir folders. The basic idea here is we check to see if either the new or cur subdirectories have changed, and if so, we scan them for the list of files. We check for newly added messages, and then merge the flags messages we already knew about. We don't treat either subdirectory differently, as mail could be copied directly into the cur directory from another agent.
Definition at line 1169 of file maildir.c.
Check for new mail - Implements MxOps::mbox_check() -.
This function handles arrival of new mail and reopening of mh/maildir folders. Things are getting rather complex because we don't have a well-defined "mailbox order", so the tricks from mbox.c and mx.c won't work here.
Don't change this code unless you really understand what happens.
Definition at line 893 of file mh.c.
Check for new mail - Implements MxOps::mbox_check() -.
[in] | m | Mailbox |
MX_STATUS_REOPENED | Mailbox has been reopened |
MX_STATUS_NEW_MAIL | New mail has arrived |
MX_STATUS_LOCKED | Couldn't lock the file |
Definition at line 1026 of file mbox.c.
Check for new mail - Implements MxOps::mbox_check() -.
m | Mailbox |
enum | MxStatus |
Definition at line 2461 of file nntp.c.
Check for new mail - Implements MxOps::mbox_check() -.
m | Mailbox |
enum | MxStatus |
Definition at line 2070 of file notmuch.c.
Check for new mail - Implements MxOps::mbox_check() -.
Definition at line 817 of file pop.c.