#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | MUTT_MAILBOX_CHECK_FORCE (1 << 0) |
#define | MUTT_MAILBOX_CHECK_FORCE_STATS (1 << 1) |
Functions | |
int | mutt_mailbox_check (struct Mailbox *m_cur, int force) |
Check all all Mailboxes for new mail. More... | |
void | mutt_mailbox_cleanup (const char *path, struct stat *st) |
Restore the timestamp of a mailbox. More... | |
bool | mutt_mailbox_list (void) |
List the mailboxes with new mail. More... | |
struct Mailbox * | mutt_mailbox_next (struct Mailbox *m_cur, struct Buffer *s) |
incoming folders completion routine More... | |
bool | mutt_mailbox_notify (struct Mailbox *m_cur) |
Notify the user if there's new mail. More... | |
void | mutt_mailbox_set_notified (struct Mailbox *m) |
Note when the user was last notified of new mail. More... | |
Variables | |
short | C_MailCheck |
Config: Number of seconds before NeoMutt checks for new mail. More... | |
bool | C_MailCheckStats |
Config: Periodically check for new mail. More... | |
short | C_MailCheckStatsInterval |
Config: How often to check for new mail. More... | |
#define MUTT_MAILBOX_CHECK_FORCE (1 << 0) |
Definition at line 16 of file mutt_mailbox.h.
#define MUTT_MAILBOX_CHECK_FORCE_STATS (1 << 1) |
Definition at line 17 of file mutt_mailbox.h.
int mutt_mailbox_check | ( | struct Mailbox * | m_cur, |
int | force | ||
) |
Check all all Mailboxes for new mail.
m_cur | Current Mailbox |
force | Force flags, see below |
num | Number of mailboxes with new mail |
The force argument may be any combination of the following values:
Check all all Mailboxes for new mail and total/new/flagged messages
Definition at line 138 of file mutt_mailbox.c.
void mutt_mailbox_cleanup | ( | const char * | path, |
struct stat * | st | ||
) |
Restore the timestamp of a mailbox.
path | Path to the mailbox |
st | Timestamp info from stat() |
Fix up the atime and mtime after mbox/mmdf mailbox was modified according to stat() info taken before a modification.
Definition at line 354 of file mutt_mailbox.c.
bool mutt_mailbox_list | ( | void | ) |
List the mailboxes with new mail.
true | If there is new mail |
Definition at line 217 of file mutt_mailbox.c.
incoming folders completion routine
ptr | Mailbox |
Given a folder name, find the next incoming folder with new mail. The Mailbox will be returned and a pretty version of the path put into s.
Definition at line 308 of file mutt_mailbox.c.
bool mutt_mailbox_notify | ( | struct Mailbox * | m_cur | ) |
Notify the user if there's new mail.
m_cur | Current Mailbox |
true | If there is new mail |
Definition at line 204 of file mutt_mailbox.c.
void mutt_mailbox_set_notified | ( | struct Mailbox * | m | ) |
Note when the user was last notified of new mail.
m | Mailbox |
Definition at line 285 of file mutt_mailbox.c.
short C_MailCheck |
Config: Number of seconds before NeoMutt checks for new mail.
Definition at line 51 of file mutt_mailbox.c.
bool C_MailCheckStats |
Config: Periodically check for new mail.
Definition at line 52 of file mutt_mailbox.c.
short C_MailCheckStatsInterval |
Config: How often to check for new mail.
Definition at line 53 of file mutt_mailbox.c.