*/
enum HeaderField
{
- HDR_FROM = 0,
- HDR_TO,
- HDR_CC,
- HDR_BCC,
- HDR_SUBJECT,
- HDR_REPLYTO,
- HDR_FCC,
+ HDR_FROM = 0, ///< Position for From: field
+ HDR_TO, ///< Position for To: field
+ HDR_CC, ///< Position for Cc: field
+ HDR_BCC, ///< Position for Bcc: field
+ HDR_SUBJECT, ///< Position for Subject: field
+ HDR_REPLYTO, ///< Position for Reply-To: field
+ HDR_FCC, ///< Position for Fcc: (save folder) field
#ifdef MIXMASTER
HDR_MIX,
HDR_XCOMMENTTO,
#endif
- HDR_ATTACH = (HDR_FCC + 5) /* where to start printing the attachments */
+ HDR_ATTACH = (HDR_FCC + 5), ///< position to start printing the attachments
};
int HeaderPadding[HDR_XCOMMENTTO + 1] = { 0 };
*/
enum MailboxType
{
- MUTT_MAILBOX_ERROR = -1,
- MUTT_UNKNOWN = 0,
- MUTT_MBOX,
- MUTT_MMDF,
- MUTT_MH,
- MUTT_MAILDIR,
- MUTT_NNTP,
- MUTT_IMAP,
- MUTT_NOTMUCH,
- MUTT_POP,
- MUTT_COMPRESSED,
+ MUTT_MAILBOX_ERROR = -1, ///< Error occurred examining mailbox
+ MUTT_UNKNOWN = 0, ///< Mailbox wasn't recognised
+ MUTT_MBOX, ///< 'mbox' Mailbox type
+ MUTT_MMDF, ///< 'mmdf' Mailbox type
+ MUTT_MH, ///< 'MH' Mailbox type
+ MUTT_MAILDIR, ///< 'Maildir' Mailbox type
+ MUTT_NNTP, ///< 'NNTP' (Usenet) Mailbox type
+ MUTT_IMAP, ///< 'IMAP' Mailbox type
+ MUTT_NOTMUCH, ///< 'Notmuch' (virtual) Mailbox type
+ MUTT_POP, ///< 'POP3' Mailbox type
+ MUTT_COMPRESSED, ///< Compressed file Mailbox type
};
void magic_init(struct ConfigSet *cs);
*/
enum QuadOption
{
- MUTT_ABORT = -1,
- MUTT_NO,
- MUTT_YES,
- MUTT_ASKNO,
- MUTT_ASKYES
+ MUTT_ABORT = -1, ///< User aborted the question (with Ctrl-G)
+ MUTT_NO, ///< User answered 'No', or assume 'No'
+ MUTT_YES, ///< User answered 'Yes', or assume 'Yes'
+ MUTT_ASKNO, ///< Ask the user, defaulting to 'No'
+ MUTT_ASKYES, ///< Ask the user, defaulting to 'Yes'
};
void quad_init(struct ConfigSet *cs);
*/
enum ConfigEvent
{
- CE_SET = 1, /**< Config item has been set */
- CE_RESET, /**< Config item has been reset to initial, or parent, value */
- CE_INITIAL_SET, /**< Config item's initial value has been set */
+ CE_SET = 1, ///< Config item has been set
+ CE_RESET, ///< Config item has been reset to initial, or parent, value
+ CE_INITIAL_SET, ///< Config item's initial value has been set
};
/* Config Set Results */
*/
enum CsListenerAction
{
- CSLA_CONTINUE = 1, /**< Continue notifying listeners */
- CSLA_STOP, /**< Stop notifying listeners */
+ CSLA_CONTINUE = 1, ///< Continue notifying listeners
+ CSLA_STOP, ///< Stop notifying listeners
};
/**
*/
enum ConnectionType
{
- MUTT_CONNECTION_SIMPLE,
- MUTT_CONNECTION_TUNNEL,
- MUTT_CONNECTION_SSL,
+ MUTT_CONNECTION_SIMPLE, ///< Simple TCP socket connection
+ MUTT_CONNECTION_TUNNEL, ///< Tunnelled connection
+ MUTT_CONNECTION_SSL, ///< SSL/TLS-encrypted connection
};
struct Connection;
DISP_INLINE,
DISP_ATTACH,
DISP_FORM_DATA,
- DISP_NONE /* no preferred disposition */
+ DISP_NONE, ///< No preferred disposition
};
/* MIME encoding/decoding global vars */
*/
enum UrlScheme
{
- U_UNKNOWN,
- U_FILE,
- U_POP,
- U_POPS,
- U_IMAP,
- U_IMAPS,
- U_NNTP,
- U_NNTPS,
- U_SMTP,
- U_SMTPS,
- U_MAILTO,
- U_NOTMUCH,
+ U_UNKNOWN, ///< Url wasn't recognised
+ U_FILE, ///< Url is file://
+ U_POP, ///< Url is pop://
+ U_POPS, ///< Url is pops://
+ U_IMAP, ///< Url is imap://
+ U_IMAPS, ///< Url is imaps://
+ U_NNTP, ///< Url is nntp://
+ U_NNTPS, ///< Url is nntps://
+ U_SMTP, ///< Url is smtp://
+ U_SMTPS, ///< Url is smtps://
+ U_MAILTO, ///< Url is mailto://
+ U_NOTMUCH, ///< Url is notmuch://
};
#define U_PATH (1 << 1)
*/
enum RedrawFlags
{
- MUTT_REDRAW_INIT = 1, /**< go to end of line and redraw */
- MUTT_REDRAW_LINE /**< redraw entire line */
+ MUTT_REDRAW_INIT = 1, ///< go to end of line and redraw
+ MUTT_REDRAW_LINE, ///< redraw entire line
};
/* combining mark / non-spacing character */
*/
enum FormatFlag
{
- MUTT_FORMAT_FORCESUBJ = (1 << 0), /**< print the subject even if unchanged */
- MUTT_FORMAT_TREE = (1 << 1), /**< draw the thread tree */
- MUTT_FORMAT_MAKEPRINT = (1 << 2), /**< make sure that all chars are printable */
- MUTT_FORMAT_OPTIONAL = (1 << 3), /**< allow optional field processing */
- MUTT_FORMAT_STAT_FILE = (1 << 4), /**< used by attach_format_str */
- MUTT_FORMAT_ARROWCURSOR = (1 << 5), /**< reserve space for arrow_cursor */
- MUTT_FORMAT_INDEX = (1 << 6), /**< this is a main index entry */
- MUTT_FORMAT_NOFILTER = (1 << 7), /**< do not allow filtering on this pass */
- MUTT_FORMAT_PLAIN = (1 << 8), /**< do not prepend DISP_TO, DISP_CC ... */
+ MUTT_FORMAT_FORCESUBJ = (1 << 0), ///< print the subject even if unchanged
+ MUTT_FORMAT_TREE = (1 << 1), ///< draw the thread tree
+ MUTT_FORMAT_MAKEPRINT = (1 << 2), ///< make sure that all chars are printable
+ MUTT_FORMAT_OPTIONAL = (1 << 3), ///< allow optional field processing
+ MUTT_FORMAT_STAT_FILE = (1 << 4), ///< used by attach_format_str
+ MUTT_FORMAT_ARROWCURSOR = (1 << 5), ///< reserve space for arrow_cursor
+ MUTT_FORMAT_INDEX = (1 << 6), ///< this is a main index entry
+ MUTT_FORMAT_NOFILTER = (1 << 7), ///< do not allow filtering on this pass
+ MUTT_FORMAT_PLAIN = (1 << 8), ///< do not prepend DISP_TO, DISP_CC ...
};
/**
*/
enum FlagChars
{
- FLAG_CHAR_TAGGED,
- FLAG_CHAR_IMPORTANT,
- FLAG_CHAR_DELETED,
- FLAG_CHAR_DELETED_ATTACH,
- FLAG_CHAR_REPLIED,
- FLAG_CHAR_OLD,
- FLAG_CHAR_NEW,
- FLAG_CHAR_OLD_THREAD,
- FLAG_CHAR_NEW_THREAD,
- FLAG_CHAR_SEMPTY,
- FLAG_CHAR_ZEMPTY
+ FLAG_CHAR_TAGGED, ///< Character denoting a tagged email
+ FLAG_CHAR_IMPORTANT, ///< Character denoting a important (flagged) email
+ FLAG_CHAR_DELETED, ///< Character denoting a deleted email
+ FLAG_CHAR_DELETED_ATTACH, ///< Character denoting a deleted attachment
+ FLAG_CHAR_REPLIED, ///< Character denoting an email that has been replied to
+ FLAG_CHAR_OLD, ///< Character denoting an email that has been read
+ FLAG_CHAR_NEW, ///< Character denoting an unread email
+ FLAG_CHAR_OLD_THREAD, ///< Character denoting a thread of emails that has been read
+ FLAG_CHAR_NEW_THREAD, ///< Character denoting a thread containing at least one new email
+ FLAG_CHAR_SEMPTY, ///< Character denoting a read email, $index_format %S expando
+ FLAG_CHAR_ZEMPTY, ///< Character denoting a read email, $index_format %Z expando
};
/**
*/
enum ImapExecResult
{
- IMAP_EXEC_SUCCESS = 0, /**< Imap command executed or queued successfully */
- IMAP_EXEC_ERROR, /**< Imap command failure */
- IMAP_EXEC_FATAL /**< Imap connection failure */
+ IMAP_EXEC_SUCCESS = 0, ///< Imap command executed or queued successfully
+ IMAP_EXEC_ERROR, ///< Imap command failure
+ IMAP_EXEC_FATAL, ///< Imap connection failure
};
/* length of "DD-MMM-YYYY HH:MM:SS +ZZzz" (null-terminated) */
*/
enum ImapCaps
{
- IMAP4 = 0,
- IMAP4REV1,
- STATUS,
- ACL, /**< RFC2086: IMAP4 ACL extension */
- NAMESPACE, /**< RFC2342: IMAP4 Namespace */
- ACRAM_MD5, /**< RFC2195: CRAM-MD5 authentication */
- AGSSAPI, /**< RFC1731: GSSAPI authentication */
- AUTH_ANON, /**< AUTH=ANONYMOUS */
- AUTH_OAUTHBEARER, /**< RFC7628: AUTH=OAUTHBEARER */
- STARTTLS, /**< RFC2595: STARTTLS */
- LOGINDISABLED, /**< RFC2595: LOGINDISABLED */
- IDLE, /**< RFC2177: IDLE */
- SASL_IR, /**< SASL initial response draft */
- ENABLE, /**< RFC5161 */
- CONDSTORE, /**< RFC7162 */
- QRESYNC, /**< RFC7162 */
- X_GM_EXT1, /**< https://developers.google.com/gmail/imap/imap-extensions */
- X_GM_ALT1 = X_GM_EXT1, /**< Alternative capability string */
-
- CAPMAX
+ IMAP4 = 0, ///< Server supports IMAP4
+ IMAP4REV1, ///< Server supports IMAP4rev1
+ STATUS, ///< Server supports STATUS command
+ ACL, ///< RFC2086: IMAP4 ACL extension
+ NAMESPACE, ///< RFC2342: IMAP4 Namespace
+ ACRAM_MD5, ///< RFC2195: CRAM-MD5 authentication
+ AGSSAPI, ///< RFC1731: GSSAPI authentication
+ AUTH_ANON, ///< AUTH=ANONYMOUS
+ AUTH_OAUTHBEARER, ///< RFC7628: AUTH=OAUTHBEARER
+ STARTTLS, ///< RFC2595: STARTTLS
+ LOGINDISABLED, ///< RFC2595: LOGINDISABLED
+ IDLE, ///< RFC2177: IDLE
+ SASL_IR, ///< SASL initial response draft
+ ENABLE, ///< RFC5161
+ CONDSTORE, ///< RFC7162
+ QRESYNC, ///< RFC7162
+ X_GM_EXT1, ///< https://developers.google.com/gmail/imap/imap-extensions
+ X_GM_ALT1 = X_GM_EXT1, ///< Alternative capability string
+ CAPMAX,
};
/**
*/
enum MuttSetCommand
{
- MUTT_SET_SET, /**< default is to set all vars */
- MUTT_SET_INV, /**< default is to invert all vars */
- MUTT_SET_UNSET, /**< default is to unset all vars */
- MUTT_SET_RESET, /**< default is to reset all vars to default */
+ MUTT_SET_SET, ///< default is to set all vars
+ MUTT_SET_INV, ///< default is to invert all vars
+ MUTT_SET_UNSET, ///< default is to unset all vars
+ MUTT_SET_RESET, ///< default is to reset all vars to default
};
#define UL (unsigned long)
*/
enum MuttStatType
{
- MUTT_STAT_ATIME,
- MUTT_STAT_MTIME,
- MUTT_STAT_CTIME
+ MUTT_STAT_ATIME, ///< File/dir's atime - last accessed time
+ MUTT_STAT_MTIME, ///< File/dir's mtime - last modified time
+ MUTT_STAT_CTIME, ///< File/dir's ctime - creation time
};
/**
*/
enum LogLevel
{
- LL_PERROR = -3,
- LL_ERROR = -2,
- LL_WARNING = -1,
- LL_MESSAGE = 0,
- LL_DEBUG1 = 1,
- LL_DEBUG2 = 2,
- LL_DEBUG3 = 3,
- LL_DEBUG4 = 4,
- LL_DEBUG5 = 5,
+ LL_PERROR = -3, ///< Log perror (using errno)
+ LL_ERROR = -2, ///< Log error
+ LL_WARNING = -1, ///< Log warning
+ LL_MESSAGE = 0, ///< Log informational message
+ LL_DEBUG1 = 1, ///< Log at debug level 1
+ LL_DEBUG2 = 2, ///< Log at debug level 2
+ LL_DEBUG3 = 3, ///< Log at debug level 3
+ LL_DEBUG4 = 4, ///< Log at debug level 4
+ LL_DEBUG5 = 5, ///< Log at debug level 5
};
/**
#define terminate_buffer(a, b) terminate_string(a, b, sizeof(a) - 1)
+/**
+ * CaseSensitivity - Should a string's case matter when matching?
+ */
enum CaseSensitivity
{
- CASE_MATCH,
- CASE_IGNORE
+ CASE_MATCH, ///< Match case when comparing strings
+ CASE_IGNORE, ///< Ignore case when comparing strings
};
void mutt_str_adjust(char **p);
*/
enum AccountType
{
- MUTT_ACCT_TYPE_NONE = 0,
- MUTT_ACCT_TYPE_IMAP,
- MUTT_ACCT_TYPE_POP,
- MUTT_ACCT_TYPE_SMTP,
- MUTT_ACCT_TYPE_NNTP
+ MUTT_ACCT_TYPE_NONE = 0, ///< Account type is unknown
+ MUTT_ACCT_TYPE_IMAP, ///< Imap Account
+ MUTT_ACCT_TYPE_POP, ///< Pop Account
+ MUTT_ACCT_TYPE_SMTP, ///< Smtp Account
+ MUTT_ACCT_TYPE_NNTP, ///< Nntp (Usenet) Account
};
/* account flags */
*/
enum MxCheckReturns
{
- MUTT_NEW_MAIL = 1, /**< new mail received in mailbox */
- MUTT_LOCKED, /**< couldn't lock the mailbox */
- MUTT_REOPENED, /**< mailbox was reopened */
- MUTT_FLAGS /**< nondestructive flags change (IMAP) */
+ MUTT_NEW_MAIL = 1, ///< new mail received in mailbox
+ MUTT_LOCKED, ///< couldn't lock the mailbox
+ MUTT_REOPENED, ///< mailbox was reopened
+ MUTT_FLAGS, ///< nondestructive flags change (IMAP)
};
/**
*/
enum KeyCap
{
- KEY_CAP_CAN_ENCRYPT,
- KEY_CAP_CAN_SIGN,
- KEY_CAP_CAN_CERTIFY
+ KEY_CAP_CAN_ENCRYPT, ///< Key can be used for encryption
+ KEY_CAP_CAN_SIGN, ///< Key can be used for signing
+ KEY_CAP_CAN_CERTIFY, ///< Key can be used to certify
};
/**
*/
enum KeyInfo
{
- KIP_NAME = 0,
- KIP_AKA,
- KIP_VALID_FROM,
- KIP_VALID_TO,
- KIP_KEY_TYPE,
- KIP_KEY_USAGE,
- KIP_FINGERPRINT,
- KIP_SERIAL_NO,
- KIP_ISSUED_BY,
- KIP_SUBKEY,
- KIP_END
+ KIP_NAME = 0, ///< PGP Key field: Name
+ KIP_AKA, ///< PGP Key field: aka (Also Known As)
+ KIP_VALID_FROM, ///< PGP Key field: Valid From date
+ KIP_VALID_TO, ///< PGP Key field: Valid To date
+ KIP_KEY_TYPE, ///< PGP Key field: Key Type
+ KIP_KEY_USAGE, ///< PGP Key field: Key Usage
+ KIP_FINGERPRINT, ///< PGP Key field: Fingerprint
+ KIP_SERIAL_NO, ///< PGP Key field: Serial number
+ KIP_ISSUED_BY, ///< PGP Key field: Issued By
+ KIP_SUBKEY, ///< PGP Key field: Subkey
+ KIP_END,
};
static const char *const KeyInfoPrompts[] = {
*/
enum PgpRing
{
- PGP_PUBRING, /**< Public keys */
- PGP_SECRING, /**< Secret keys */
+ PGP_PUBRING, ///< Public keys
+ PGP_SECRING, ///< Secret keys
};
struct Body *pgp_class_make_key_attachment(void);
*/
enum PacketTags
{
- PT_RES0 = 0, /**< reserved */
- PT_ESK, /**< Encrypted Session Key */
- PT_SIG, /**< Signature Packet */
- PT_CESK, /**< Conventionally Encrypted Session Key Packet */
- PT_OPS, /**< One-Pass Signature Packet */
- PT_SECKEY, /**< Secret Key Packet */
- PT_PUBKEY, /**< Public Key Packet */
- PT_SUBSECKEY, /**< Secret Subkey Packet */
- PT_COMPRESSED, /**< Compressed Data Packet */
- PT_SKE, /**< Symmetrically Encrypted Data Packet */
- PT_MARKER, /**< Marker Packet */
- PT_LITERAL, /**< Literal Data Packet */
- PT_TRUST, /**< Trust Packet */
- PT_NAME, /**< Name Packet */
- PT_SUBKEY, /**< Subkey Packet */
- PT_RES15, /**< Reserved */
- PT_COMMENT /**< Comment Packet */
+ PT_RES0 = 0, ///< reserved
+ PT_ESK, ///< Encrypted Session Key
+ PT_SIG, ///< Signature Packet
+ PT_CESK, ///< Conventionally Encrypted Session Key Packet
+ PT_OPS, ///< One-Pass Signature Packet
+ PT_SECKEY, ///< Secret Key Packet
+ PT_PUBKEY, ///< Public Key Packet
+ PT_SUBSECKEY, ///< Secret Subkey Packet
+ PT_COMPRESSED, ///< Compressed Data Packet
+ PT_SKE, ///< Symmetrically Encrypted Data Packet
+ PT_MARKER, ///< Marker Packet
+ PT_LITERAL, ///< Literal Data Packet
+ PT_TRUST, ///< Trust Packet
+ PT_NAME, ///< Name Packet
+ PT_SUBKEY, ///< Subkey Packet
+ PT_RES15, ///< Reserved
+ PT_COMMENT, ///< Comment Packet
};
unsigned char *pgp_read_packet(FILE *fp, size_t *len);
*/
enum NmQueryType
{
- NM_QUERY_TYPE_MESGS = 1, /**< Default: Messages only */
- NM_QUERY_TYPE_THREADS /**< Whole threads */
+ NM_QUERY_TYPE_MESGS = 1, ///< Default: Messages only
+ NM_QUERY_TYPE_THREADS, ///< Whole threads
};
/**
*/
enum EatRangeError
{
- RANGE_E_OK,
- RANGE_E_SYNTAX,
- RANGE_E_CTX,
+ RANGE_E_OK, ///< Range is valid
+ RANGE_E_SYNTAX, ///< Range contains syntax error
+ RANGE_E_CTX, ///< Range requires Context, but none available
};
/**
*/
enum DivType
{
- SB_DIV_USER, /**< User configured using $sidebar_divider_char */
- SB_DIV_ASCII, /**< An ASCII vertical bar (pipe) */
- SB_DIV_UTF8 /**< A unicode line-drawing character */
+ SB_DIV_USER, ///< User configured using $sidebar_divider_char
+ SB_DIV_ASCII, ///< An ASCII vertical bar (pipe)
+ SB_DIV_UTF8, ///< A unicode line-drawing character
};
/**