24#ifndef MUTT_CORE_MXAPI_H
25#define MUTT_CORE_MXAPI_H
Representation of a mailbox.
MailboxType
Supported mailbox formats.
OpenMailboxFlag
Flags for mutt_open_mailbox(), e.g.
@ MUTT_QUIET
Do not print any messages.
@ MUTT_APPENDNEW
Set in mx_open_mailbox_append if the mailbox doesn't exist.
@ MUTT_READONLY
Open in read-only mode.
@ MUTT_NOSORT
Do not sort the mailbox after opening it.
@ MUTT_APPEND
Open mailbox for appending messages.
@ MUTT_OPEN_NONE
No flags are set.
@ MUTT_PEEK
Revert atime back after taking a look (if applicable)
MxOpenReturns
Return values for mbox_open()
@ MX_OPEN_ERROR
Open failed with an error.
@ MX_OPEN_ABORT
Open was aborted.
@ MX_OPEN_OK
Open succeeded.
CheckStatsFlag
Flags for mutt_mailbox_check.
@ MUTT_MAILBOX_CHECK_STATS
Ignore mail_check_stats and calculate statistics (used by <check-stats>)
@ MUTT_MAILBOX_CHECK_POSTPONED
Make sure the number of postponed messages is updated.
@ MUTT_MAILBOX_CHECK_NONE
No flags are set.
@ MUTT_MAILBOX_CHECK_IMMEDIATE
Don't postpone the actual checking.
MxStatus
Return values from mbox_check(), mbox_check_stats(), mbox_sync(), and mbox_close()
@ MX_STATUS_LOCKED
Couldn't lock the Mailbox.
@ MX_STATUS_ERROR
An error occurred.
@ MX_STATUS_OK
No changes.
@ MX_STATUS_FLAGS
Nondestructive flags change (IMAP)
@ MX_STATUS_REOPENED
Mailbox was reopened.
@ MX_STATUS_NEW_MAIL
New mail received in Mailbox.
A group of associated Mailboxes.
String manipulation buffer.
The envelope/body of an email.
A local copy of an email.
int(* path_is_empty)(struct Buffer *path)
bool is_local
True, if Mailbox type has local files/dirs.
bool(* msg_open)(struct Mailbox *m, struct Message *msg, struct Email *e)
int(* tags_commit)(struct Mailbox *m, struct Email *e, const char *buf)
int(* msg_save_hcache)(struct Mailbox *m, struct Email *e)
enum MailboxType(* path_probe)(const char *path, const struct stat *st)
enum MailboxType type
Mailbox type, e.g. MUTT_IMAP.
int(* msg_padding_size)(struct Mailbox *m)
bool(* ac_owns_path)(struct Account *a, const char *path)
int(* tags_edit)(struct Mailbox *m, const char *tags, struct Buffer *buf)
int(* msg_commit)(struct Mailbox *m, struct Message *msg)
enum MxStatus(* mbox_check_stats)(struct Mailbox *m, CheckStatsFlags flags)
bool(* ac_add)(struct Account *a, struct Mailbox *m)
enum MxOpenReturns(* mbox_open)(struct Mailbox *m)
int(* msg_close)(struct Mailbox *m, struct Message *msg)
bool(* msg_open_new)(struct Mailbox *m, struct Message *msg, const struct Email *e)
const char * name
Mailbox name, e.g. "imap".
int(* path_canon)(struct Buffer *path)
enum MxStatus(* mbox_close)(struct Mailbox *m)
enum MxStatus(* mbox_sync)(struct Mailbox *m)
bool(* mbox_open_append)(struct Mailbox *m, OpenMailboxFlags flags)
enum MxStatus(* mbox_check)(struct Mailbox *m)