NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
mutt_mailbox.h
Go to the documentation of this file.
1 #ifndef MUTT_MUTT_MAILBOX_H
2 #define MUTT_MUTT_MAILBOX_H
3 
4 #include <stdbool.h>
5 
6 struct Buffer;
7 struct Mailbox;
8 struct stat;
9 
10 /* These Config Variables are only used in mutt_mailbox.c */
11 extern short C_MailCheck;
12 extern bool C_MailCheckStats;
13 extern short C_MailCheckStatsInterval;
14 
15 /* force flags passed to mutt_mailbox_check() */
16 #define MUTT_MAILBOX_CHECK_FORCE (1 << 0)
17 #define MUTT_MAILBOX_CHECK_FORCE_STATS (1 << 1)
18 
19 int mutt_mailbox_check (struct Mailbox *m_cur, int force);
20 void mutt_mailbox_cleanup (const char *path, struct stat *st);
21 bool mutt_mailbox_list (void);
22 struct Mailbox *mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s);
23 bool mutt_mailbox_notify (struct Mailbox *m_cur);
24 void mutt_mailbox_set_notified(struct Mailbox *m);
25 
26 #endif /* MUTT_MUTT_MAILBOX_H */
bool mutt_mailbox_list(void)
List the mailboxes with new mail.
Definition: mutt_mailbox.c:232
short C_MailCheckStatsInterval
Config: How often to check for new mail.
Definition: mutt_mailbox.c:53
String manipulation buffer.
Definition: buffer.h:33
void mutt_mailbox_set_notified(struct Mailbox *m)
Note when the user was last notified of new mail.
Definition: mutt_mailbox.c:300
int mutt_mailbox_check(struct Mailbox *m_cur, int force)
Check all all Mailboxes for new mail.
Definition: mutt_mailbox.c:153
struct Mailbox * mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s)
incoming folders completion routine
Definition: mutt_mailbox.c:323
short C_MailCheck
Config: Number of seconds before NeoMutt checks for new mail.
Definition: mutt_mailbox.c:51
void mutt_mailbox_cleanup(const char *path, struct stat *st)
Restore the timestamp of a mailbox.
Definition: mutt_mailbox.c:369
A mailbox.
Definition: mailbox.h:81
bool mutt_mailbox_notify(struct Mailbox *m_cur)
Notify the user if there&#39;s new mail.
Definition: mutt_mailbox.c:219
bool C_MailCheckStats
Config: Periodically check for new mail.
Definition: mutt_mailbox.c:52