TAILQ_HEAD(AccountList, Account);
-extern struct AccountList AllAccounts;
+extern struct AccountList AllAccounts; ///< List of all Accounts
struct Account *account_new(void);
void account_remove_mailbox(struct Account *a, struct Mailbox *m);
/* These Config Variables are only used in curs_lib.c */
extern bool MetaKey; /**< interpret ALT-x as ESC-x */
-extern int MuttGetchTimeout;
+extern int MuttGetchTimeout; ///< Timeout in ms for mutt_getch()
/* For mutt_simple_format() justifications */
#define FMT_LEFT -1
extern bool Weed;
/* Global variables */
-extern struct ListHead Ignore;
-extern struct RegexList NoSpamList;
-extern struct ReplaceList SpamList;
-extern struct ListHead UnIgnore;
+extern struct ListHead Ignore; ///< List of header patterns to ignore
+extern struct RegexList NoSpamList; ///< List of regexes to whitelist non-spam emails
+extern struct ReplaceList SpamList; ///< List of regexes and patterns to match spam emails
+extern struct ListHead UnIgnore; ///< List of header patterns to unignore (see)
#endif /* MUTT_EMAIL_EMAIL_GLOBALS_H */
#include "sort.h"
#endif /* MAIN_C */
-WHERE struct ConfigSet *Config;
+WHERE struct ConfigSet *Config; ///< Wrapper around the user's config settings
WHERE struct Context *Context;
-WHERE bool ErrorBufMessage;
-WHERE char ErrorBuf[STRING];
-WHERE char AttachmentMarker[STRING];
+WHERE bool ErrorBufMessage; ///< true if the last message was an error
+WHERE char ErrorBuf[STRING]; ///< Copy of the last error message
+WHERE char AttachmentMarker[STRING]; ///< Unique ANSI string to mark PGP messages in an email
-WHERE char *HomeDir;
-WHERE char *ShortHostname;
+WHERE char *HomeDir; ///< User's home directory
+WHERE char *ShortHostname; ///< Short version of the hostname
-WHERE char *Username;
+WHERE char *Username; ///< User's login name
-WHERE char *CurrentFolder;
-WHERE char *LastFolder;
+WHERE char *CurrentFolder; ///< Currently selected mailbox
+WHERE char *LastFolder; ///< Previously selected mailbox
extern const char *GitVer;
-WHERE struct Hash *Groups;
-WHERE struct Hash *ReverseAliases;
-WHERE struct Hash *TagFormats;
+WHERE struct Hash *Groups; ///< Hash table of alias groups (name -> Group)
+WHERE struct Hash *ReverseAliases; ///< Hash table of aliases (email address -> alias)
+WHERE struct Hash *TagFormats; ///< Hash table of tag-formats (tag -> format string)
/* Lists of strings */
-WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList));
-WHERE struct ListHead AutoViewList INITVAL(STAILQ_HEAD_INITIALIZER(AutoViewList));
-WHERE struct ListHead HeaderOrderList INITVAL(STAILQ_HEAD_INITIALIZER(HeaderOrderList));
-WHERE struct ListHead MailToAllow INITVAL(STAILQ_HEAD_INITIALIZER(MailToAllow));
-WHERE struct ListHead MimeLookupList INITVAL(STAILQ_HEAD_INITIALIZER(MimeLookupList));
-WHERE struct ListHead Muttrc INITVAL(STAILQ_HEAD_INITIALIZER(Muttrc));
+WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList)); ///< List of preferred mime types to display
+WHERE struct ListHead AutoViewList INITVAL(STAILQ_HEAD_INITIALIZER(AutoViewList)); ///< List of mime types to auto view
+WHERE struct ListHead HeaderOrderList INITVAL(STAILQ_HEAD_INITIALIZER(HeaderOrderList)); ///< List of header fields in the order they should be displayed
+WHERE struct ListHead MailToAllow INITVAL(STAILQ_HEAD_INITIALIZER(MailToAllow)); ///< List of permitted fields in a mailto: uri
+WHERE struct ListHead MimeLookupList INITVAL(STAILQ_HEAD_INITIALIZER(MimeLookupList)); ///< List of mime types that that shouldn't use the mailcap entry
+WHERE struct ListHead Muttrc INITVAL(STAILQ_HEAD_INITIALIZER(Muttrc)); ///< List of config files to read
#ifdef USE_SIDEBAR
-WHERE struct ListHead SidebarWhitelist INITVAL(STAILQ_HEAD_INITIALIZER(SidebarWhitelist));
+WHERE struct ListHead SidebarWhitelist INITVAL(STAILQ_HEAD_INITIALIZER(SidebarWhitelist)); ///< List of mailboxes to alway display in the sidebar
#endif
-WHERE struct ListHead TempAttachmentsList INITVAL(STAILQ_HEAD_INITIALIZER(TempAttachmentsList));
-WHERE struct ListHead UserHeader INITVAL(STAILQ_HEAD_INITIALIZER(UserHeader));
+WHERE struct ListHead TempAttachmentsList INITVAL(STAILQ_HEAD_INITIALIZER(TempAttachmentsList)); ///< List of temporary files for displaying attachments
+WHERE struct ListHead UserHeader INITVAL(STAILQ_HEAD_INITIALIZER(UserHeader)); ///< List of custom headers to add to outgoing emails
/* Lists of AttachMatch */
-WHERE struct ListHead AttachAllow INITVAL(STAILQ_HEAD_INITIALIZER(AttachAllow));
-WHERE struct ListHead AttachExclude INITVAL(STAILQ_HEAD_INITIALIZER(AttachExclude));
-WHERE struct ListHead InlineAllow INITVAL(STAILQ_HEAD_INITIALIZER(InlineAllow));
-WHERE struct ListHead InlineExclude INITVAL(STAILQ_HEAD_INITIALIZER(InlineExclude));
-
-WHERE struct RegexList Alternates INITVAL(STAILQ_HEAD_INITIALIZER(Alternates));
-WHERE struct RegexList UnAlternates INITVAL(STAILQ_HEAD_INITIALIZER(UnAlternates));
-WHERE struct RegexList MailLists INITVAL(STAILQ_HEAD_INITIALIZER(MailLists));
-WHERE struct RegexList UnMailLists INITVAL(STAILQ_HEAD_INITIALIZER(UnMailLists));
-WHERE struct RegexList SubscribedLists INITVAL(STAILQ_HEAD_INITIALIZER(SubscribedLists));
-WHERE struct RegexList UnSubscribedLists INITVAL(STAILQ_HEAD_INITIALIZER(UnSubscribedLists));
-WHERE struct ReplaceList SubjectRegexList INITVAL(STAILQ_HEAD_INITIALIZER(SubjectRegexList));
+WHERE struct ListHead AttachAllow INITVAL(STAILQ_HEAD_INITIALIZER(AttachAllow)); ///< List of attachment types to be counted
+WHERE struct ListHead AttachExclude INITVAL(STAILQ_HEAD_INITIALIZER(AttachExclude)); ///< List of attachment types to be ignored
+WHERE struct ListHead InlineAllow INITVAL(STAILQ_HEAD_INITIALIZER(InlineAllow)); ///< List of inline types to counted
+WHERE struct ListHead InlineExclude INITVAL(STAILQ_HEAD_INITIALIZER(InlineExclude)); ///< List of inline types to ignore
+
+WHERE struct RegexList Alternates INITVAL(STAILQ_HEAD_INITIALIZER(Alternates)); ///< List of regexes to match the user's alternate email addresses
+WHERE struct RegexList UnAlternates INITVAL(STAILQ_HEAD_INITIALIZER(UnAlternates)); ///< List of regexes to blacklist false matches in Alternates
+WHERE struct RegexList MailLists INITVAL(STAILQ_HEAD_INITIALIZER(MailLists)); ///< List of regexes to match mailing lists
+WHERE struct RegexList UnMailLists INITVAL(STAILQ_HEAD_INITIALIZER(UnMailLists)); ///< List of regexes to blacklist false matches in MailLists
+WHERE struct RegexList SubscribedLists INITVAL(STAILQ_HEAD_INITIALIZER(SubscribedLists)); ///< List of regexes to match subscribed mailing lists
+WHERE struct RegexList UnSubscribedLists INITVAL(STAILQ_HEAD_INITIALIZER(UnSubscribedLists)); ///< List of regexes to blacklist false matches in SubscribedLists
+WHERE struct ReplaceList SubjectRegexList INITVAL(STAILQ_HEAD_INITIALIZER(SubjectRegexList)); ///< List of regexes to tidy the view of the email's subject
/* flags for received signals */
-WHERE SIG_ATOMIC_VOLATILE_T SigAlrm;
-WHERE SIG_ATOMIC_VOLATILE_T SigInt;
-WHERE SIG_ATOMIC_VOLATILE_T SigWinch;
+WHERE SIG_ATOMIC_VOLATILE_T SigAlrm; ///< true after SIGALRM is received
+WHERE SIG_ATOMIC_VOLATILE_T SigInt; ///< true after SIGINT is received
+WHERE SIG_ATOMIC_VOLATILE_T SigWinch; ///< true after SIGWINCH is received
-WHERE int CurrentMenu;
+WHERE int CurrentMenu; ///< Current Menu, e.g. #MENU_PAGER
-WHERE struct AliasList Aliases INITVAL(TAILQ_HEAD_INITIALIZER(Aliases));
+WHERE struct AliasList Aliases INITVAL(TAILQ_HEAD_INITIALIZER(Aliases)); ///< List of all the user's email aliases
/* All the variables below are backing for config items */
MENU_MAX,
};
-/* the keymap trees (one for each menu) */
-extern struct Keymap *Keymaps[];
+extern struct Keymap *Keymaps[]; ///< Array of Keymap keybindings, one for each Menu
-/* dokey() records the last real key pressed */
-extern int LastKey;
+extern int LastKey; ///< Last real key pressed, recorded by dokey()
extern const struct Mapping Menus[];
STAILQ_HEAD(MailboxList, MailboxNode);
-extern struct MailboxList AllMailboxes;
+extern struct MailboxList AllMailboxes; ///< List of all Mailboxes
struct Mailbox *mailbox_new(void);
void mailbox_free(struct Mailbox **m);
#ifndef MUTT_MONITOR_H
#define MUTT_MONITOR_H
-extern int MonitorFilesChanged;
-extern int MonitorContextChanged;
+extern int MonitorFilesChanged; ///< true after a monitored file has changed
+extern int MonitorContextChanged; ///< true after the current mailbox has changed
struct Mailbox;
};
STAILQ_HEAD(ColorLineHead, ColorLine);
-extern int *ColorQuote;
-extern int ColorQuoteUsed;
-extern int ColorDefs[];
-extern struct ColorLineHead ColorHdrList;
-extern struct ColorLineHead ColorBodyList;
-extern struct ColorLineHead ColorAttachList;
-extern struct ColorLineHead ColorStatusList;
-extern struct ColorLineHead ColorIndexList;
-extern struct ColorLineHead ColorIndexAuthorList;
-extern struct ColorLineHead ColorIndexFlagsList;
-extern struct ColorLineHead ColorIndexSubjectList;
-extern struct ColorLineHead ColorIndexTagList;
+extern int *ColorQuote; ///< Array of colours for quoted email text
+extern int ColorQuoteUsed; ///< Number of colours for quoted email text
+extern int ColorDefs[]; ///< Array of all fixed colours, see enum ColorId
+extern struct ColorLineHead ColorHdrList; ///< List of colours applied to the email headers
+extern struct ColorLineHead ColorBodyList; ///< List of colours applied to the email body
+extern struct ColorLineHead ColorAttachList; ///< List of colours applied to the attachment headers
+extern struct ColorLineHead ColorStatusList; ///< List of colours applied to the status bar
+extern struct ColorLineHead ColorIndexList; ///< List of default colours applied to the index
+extern struct ColorLineHead ColorIndexAuthorList; ///< List of colours applied to the author in the index
+extern struct ColorLineHead ColorIndexFlagsList; ///< List of colours applied to the flags in the index
+extern struct ColorLineHead ColorIndexSubjectList; ///< List of colours applied to the subject in the index
+extern struct ColorLineHead ColorIndexTagList; ///< List of colours applied to tags in the index
/* If the system has bkgdset() use it rather than attrset() so that the clr*()
* functions will properly set the background attributes all the way to the
extern short DebugLevel;
extern char *DebugFile;
-extern bool LogAllowDebugSet;
int log_disp_curses(time_t stamp, const char *file, int line, const char *function, int level, ...);
};
TAILQ_HEAD(MyVarHead, MyVar);
-extern struct MyVarHead MyVars;
+extern struct MyVarHead MyVars; ///< List of all the user's custom config variables
void myvar_del(const char *var);
const char *myvar_get(const char *var);
/* These Config Variables are only used in ncrypt/crypt.c */
extern bool CryptTimestamp;
-extern unsigned char PgpEncryptSelf;
-extern unsigned char PgpMimeAuto; /* ask to revert to PGP/MIME when inline fails */
+extern unsigned char PgpEncryptSelf; ///< Deprecated, see PgpSelfEncrypt
+extern unsigned char PgpMimeAuto;
extern bool PgpRetainableSigs;
extern bool PgpSelfEncrypt;
extern bool PgpStrictEnc;
-extern unsigned char SmimeEncryptSelf;
+extern unsigned char SmimeEncryptSelf; ///< Deprecated, see SmimeSelfEncrypt
extern bool SmimeSelfEncrypt;
/* These Config Variables are only used in ncrypt/cryptglue.c */
extern char *NewsCacheDir;
extern char *Newsrc;
-extern struct NntpAccountData *CurrentNewsSrv;
+extern struct NntpAccountData *CurrentNewsSrv; ///< Current NNTP news server
extern struct MxOps MxNntpOps;
/* article number type and format */