NeoMutt  2022-04-29-145-g9b6a0e
Teaching an old dog new tricks
DOXYGEN
mutt_mailbox.h
Go to the documentation of this file.
1 
22 #ifndef MUTT_MUTT_MAILBOX_H
23 #define MUTT_MUTT_MAILBOX_H
24 
25 #include <stdbool.h>
26 #include "core/lib.h"
27 
28 struct Buffer;
29 struct stat;
30 
31 int mutt_mailbox_check (struct Mailbox *m_cur, CheckStatsFlags flags);
32 void mutt_mailbox_cleanup (const char *path, struct stat *st);
33 bool mutt_mailbox_list (void);
34 struct Mailbox *mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s);
35 struct Mailbox *mutt_mailbox_next_unread(struct Mailbox *m_cur, struct Buffer *s);
36 bool mutt_mailbox_notify (struct Mailbox *m_cur);
37 void mutt_mailbox_set_notified(struct Mailbox *m);
38 
39 #endif /* MUTT_MUTT_MAILBOX_H */
Convenience wrapper for the core headers.
int mutt_mailbox_check(struct Mailbox *m_cur, CheckStatsFlags flags)
Check all all Mailboxes for new mail.
Definition: mutt_mailbox.c:156
struct Mailbox * mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s)
Incoming folders completion routine.
Definition: mutt_mailbox.c:378
void mutt_mailbox_set_notified(struct Mailbox *m)
Note when the user was last notified of new mail.
Definition: mutt_mailbox.c:312
bool mutt_mailbox_notify(struct Mailbox *m_cur)
Notify the user if there's new mail.
Definition: mutt_mailbox.c:230
bool mutt_mailbox_list(void)
List the mailboxes with new mail.
Definition: mutt_mailbox.c:243
void mutt_mailbox_cleanup(const char *path, struct stat *st)
Restore the timestamp of a mailbox.
Definition: mutt_mailbox.c:424
struct Mailbox * mutt_mailbox_next_unread(struct Mailbox *m_cur, struct Buffer *s)
Find next mailbox with unread mail.
Definition: mutt_mailbox.c:404
uint8_t CheckStatsFlags
Flags for mutt_mailbox_check.
Definition: mxapi.h:73
String manipulation buffer.
Definition: buffer.h:34
A mailbox.
Definition: mailbox.h:79