*/
/* flags to _mutt_copy_message */
-#define MUTT_CM_NOHEADER 1 /* don't copy the message header */
-#define MUTT_CM_PREFIX (1<<1) /* quote the message */
-#define MUTT_CM_DECODE (1<<2) /* decode the message body into text/plain */
-#define MUTT_CM_DISPLAY (1<<3) /* output is displayed to the user */
-#define MUTT_CM_UPDATE (1<<4) /* update structs on sync */
-#define MUTT_CM_WEED (1<<5) /* weed message/rfc822 attachment headers */
-#define MUTT_CM_CHARCONV (1<<6) /* perform character set conversions */
-#define MUTT_CM_PRINTING (1<<7) /* printing the message - display light */
-#define MUTT_CM_REPLYING (1<<8) /* replying the message */
+#define MUTT_CM_NOHEADER 1 /* don't copy the message header */
+#define MUTT_CM_PREFIX (1<<1) /* quote the message */
+#define MUTT_CM_DECODE (1<<2) /* decode the message body into text/plain */
+#define MUTT_CM_DISPLAY (1<<3) /* output is displayed to the user */
+#define MUTT_CM_UPDATE (1<<4) /* update structs on sync */
+#define MUTT_CM_WEED (1<<5) /* weed message/rfc822 attachment headers */
+#define MUTT_CM_CHARCONV (1<<6) /* perform character set conversions */
+#define MUTT_CM_PRINTING (1<<7) /* printing the message - display light */
+#define MUTT_CM_REPLYING (1<<8) /* replying the message */
-#define MUTT_CM_DECODE_PGP (1<<9) /* used for decoding PGP messages */
-#define MUTT_CM_DECODE_SMIME (1<<10) /* used for decoding S/MIME messages */
-#define MUTT_CM_DECODE_CRYPT (MUTT_CM_DECODE_PGP | MUTT_CM_DECODE_SMIME)
+#define MUTT_CM_DECODE_PGP (1<<9) /* used for decoding PGP messages */
+#define MUTT_CM_DECODE_SMIME (1<<10) /* used for decoding S/MIME messages */
+#define MUTT_CM_DECODE_CRYPT (MUTT_CM_DECODE_PGP | MUTT_CM_DECODE_SMIME)
-#define MUTT_CM_VERIFY (1<<11) /* do signature verification */
+#define MUTT_CM_VERIFY (1<<11) /* do signature verification */
/* flags for mutt_copy_header() */
#define CH_UPDATE 1 /* update the status and x-status fields? */
#define _MAILBOX_H
/* flags for mutt_open_mailbox() */
-#define MUTT_NOSORT (1<<0) /* do not sort the mailbox after opening it */
-#define MUTT_APPEND (1<<1) /* open mailbox for appending messages */
-#define MUTT_READONLY (1<<2) /* open in read-only mode */
-#define MUTT_QUIET (1<<3) /* do not print any messages */
-#define MUTT_NEWFOLDER (1<<4) /* create a new folder - same as MUTT_APPEND, but uses
- * safe_fopen() for mbox-style folders.
- */
+#define MUTT_NOSORT (1<<0) /* do not sort the mailbox after opening it */
+#define MUTT_APPEND (1<<1) /* open mailbox for appending messages */
+#define MUTT_READONLY (1<<2) /* open in read-only mode */
+#define MUTT_QUIET (1<<3) /* do not print any messages */
+#define MUTT_NEWFOLDER (1<<4) /* create a new folder - same as MUTT_APPEND, but uses
+ * safe_fopen() for mbox-style folders.
+ */
/* mx_open_new_message() */
-#define MUTT_ADD_FROM (1<<0) /* add a From_ line */
-#define MUTT_SET_DRAFT (1<<1) /* set the message draft flag */
+#define MUTT_ADD_FROM (1<<0) /* add a From_ line */
+#define MUTT_SET_DRAFT (1<<1) /* set the message draft flag */
/* return values from mx_check_mailbox() */
enum
{
- 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) */
};
typedef struct _message
#define MUTT_PATTERN (1<<7) /* pattern mode - only used for history classes */
/* flags for mutt_get_token() */
-#define MUTT_TOKEN_EQUAL 1 /* treat '=' as a special */
-#define MUTT_TOKEN_CONDENSE (1<<1) /* ^(char) to control chars (macros) */
-#define MUTT_TOKEN_SPACE (1<<2) /* don't treat whitespace as a term */
-#define MUTT_TOKEN_QUOTE (1<<3) /* don't interpret quotes */
-#define MUTT_TOKEN_PATTERN (1<<4) /* !)|~ are terms (for patterns) */
-#define MUTT_TOKEN_COMMENT (1<<5) /* don't reap comments */
-#define MUTT_TOKEN_SEMICOLON (1<<6) /* don't treat ; as special */
+#define MUTT_TOKEN_EQUAL 1 /* treat '=' as a special */
+#define MUTT_TOKEN_CONDENSE (1<<1) /* ^(char) to control chars (macros) */
+#define MUTT_TOKEN_SPACE (1<<2) /* don't treat whitespace as a term */
+#define MUTT_TOKEN_QUOTE (1<<3) /* don't interpret quotes */
+#define MUTT_TOKEN_PATTERN (1<<4) /* !)|~ are terms (for patterns) */
+#define MUTT_TOKEN_COMMENT (1<<5) /* don't reap comments */
+#define MUTT_TOKEN_SEMICOLON (1<<6) /* don't treat ; as special */
typedef struct
{
/* flags for mutt_FormatString() */
typedef enum
{
- 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),
- MUTT_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */
- 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_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),
+ MUTT_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */
+ 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 */
} format_flag;
/* types for mutt_add_hook() */
-#define MUTT_FOLDERHOOK 1
-#define MUTT_MBOXHOOK (1<<1)
-#define MUTT_SENDHOOK (1<<2)
-#define MUTT_FCCHOOK (1<<3)
-#define MUTT_SAVEHOOK (1<<4)
-#define MUTT_CHARSETHOOK (1<<5)
-#define MUTT_ICONVHOOK (1<<6)
-#define MUTT_MESSAGEHOOK (1<<7)
-#define MUTT_CRYPTHOOK (1<<8)
-#define MUTT_ACCOUNTHOOK (1<<9)
-#define MUTT_REPLYHOOK (1<<10)
-#define MUTT_SEND2HOOK (1<<11)
+#define MUTT_FOLDERHOOK 1
+#define MUTT_MBOXHOOK (1<<1)
+#define MUTT_SENDHOOK (1<<2)
+#define MUTT_FCCHOOK (1<<3)
+#define MUTT_SAVEHOOK (1<<4)
+#define MUTT_CHARSETHOOK (1<<5)
+#define MUTT_ICONVHOOK (1<<6)
+#define MUTT_MESSAGEHOOK (1<<7)
+#define MUTT_CRYPTHOOK (1<<8)
+#define MUTT_ACCOUNTHOOK (1<<9)
+#define MUTT_REPLYHOOK (1<<10)
+#define MUTT_SEND2HOOK (1<<11)
/* tree characters for linearize_tree and print_enriched_string */
-#define MUTT_TREE_LLCORNER 1
-#define MUTT_TREE_ULCORNER 2
-#define MUTT_TREE_LTEE 3
-#define MUTT_TREE_HLINE 4
-#define MUTT_TREE_VLINE 5
-#define MUTT_TREE_SPACE 6
-#define MUTT_TREE_RARROW 7
-#define MUTT_TREE_STAR 8
-#define MUTT_TREE_HIDDEN 9
-#define MUTT_TREE_EQUALS 10
-#define MUTT_TREE_TTEE 11
-#define MUTT_TREE_BTEE 12
-#define MUTT_TREE_MISSING 13
-#define MUTT_TREE_MAX 14
-
-#define MUTT_THREAD_COLLAPSE (1<<0)
-#define MUTT_THREAD_UNCOLLAPSE (1<<1)
-#define MUTT_THREAD_GET_HIDDEN (1<<2)
-#define MUTT_THREAD_UNREAD (1<<3)
-#define MUTT_THREAD_NEXT_UNREAD (1<<4)
+#define MUTT_TREE_LLCORNER 1
+#define MUTT_TREE_ULCORNER 2
+#define MUTT_TREE_LTEE 3
+#define MUTT_TREE_HLINE 4
+#define MUTT_TREE_VLINE 5
+#define MUTT_TREE_SPACE 6
+#define MUTT_TREE_RARROW 7
+#define MUTT_TREE_STAR 8
+#define MUTT_TREE_HIDDEN 9
+#define MUTT_TREE_EQUALS 10
+#define MUTT_TREE_TTEE 11
+#define MUTT_TREE_BTEE 12
+#define MUTT_TREE_MISSING 13
+#define MUTT_TREE_MAX 14
+
+#define MUTT_THREAD_COLLAPSE (1<<0)
+#define MUTT_THREAD_UNCOLLAPSE (1<<1)
+#define MUTT_THREAD_GET_HIDDEN (1<<2)
+#define MUTT_THREAD_UNREAD (1<<3)
+#define MUTT_THREAD_NEXT_UNREAD (1<<4)
enum
{
#define MUTT_COMPOSE_NOFREEHEADER (1<<0)
/* flags to _mutt_select_file() */
-#define MUTT_SEL_BUFFY (1<<0)
-#define MUTT_SEL_MULTI (1<<1)
-#define MUTT_SEL_FOLDER (1<<2)
+#define MUTT_SEL_BUFFY (1<<0)
+#define MUTT_SEL_MULTI (1<<1)
+#define MUTT_SEL_FOLDER (1<<2)
/* flags for parse_spam_list */
#define MUTT_SPAM 1
} ENTER_STATE;
/* flags for the STATE struct */
-#define MUTT_DISPLAY (1<<0) /* output is displayed to the user */
-#define MUTT_VERIFY (1<<1) /* perform signature verification */
+#define MUTT_DISPLAY (1<<0) /* output is displayed to the user */
+#define MUTT_VERIFY (1<<1) /* perform signature verification */
#define MUTT_PENDINGPREFIX (1<<2) /* prefix to write, but character must follow */
#define MUTT_WEED (1<<3) /* weed headers even when not in display mode */
-#define MUTT_CHARCONV (1<<4) /* Do character set conversions */
-#define MUTT_PRINTING (1<<5) /* are we printing? - MUTT_DISPLAY "light" */
-#define MUTT_REPLYING (1<<6) /* are we replying? */
-#define MUTT_FIRSTDONE (1<<7) /* the first attachment has been done */
+#define MUTT_CHARCONV (1<<4) /* Do character set conversions */
+#define MUTT_PRINTING (1<<5) /* are we printing? - MUTT_DISPLAY "light" */
+#define MUTT_REPLYING (1<<6) /* are we replying? */
+#define MUTT_FIRSTDONE (1<<7) /* the first attachment has been done */
#define state_set_prefix(s) ((s)->flags |= MUTT_PENDINGPREFIX)
#define state_reset_prefix(s) ((s)->flags &= ~MUTT_PENDINGPREFIX)
#include "attach.h"
/* dynamic internal flags */
-#define MUTT_SHOWFLAT (1<<0)
-#define MUTT_SHOWCOLOR (1<<1)
-#define MUTT_HIDE (1<<2)
-#define MUTT_SEARCH (1<<3)
-#define MUTT_TYPES (1<<4)
-#define MUTT_SHOW (MUTT_SHOWCOLOR | MUTT_SHOWFLAT)
+#define MUTT_SHOWFLAT (1<<0)
+#define MUTT_SHOWCOLOR (1<<1)
+#define MUTT_HIDE (1<<2)
+#define MUTT_SEARCH (1<<3)
+#define MUTT_TYPES (1<<4)
+#define MUTT_SHOW (MUTT_SHOWCOLOR | MUTT_SHOWFLAT)
/* exported flags for mutt_(do_)?pager */
-#define MUTT_PAGER_NSKIP (1<<5) /* preserve whitespace with smartwrap */
-#define MUTT_PAGER_MARKER (1<<6) /* use markers if option is set */
-#define MUTT_PAGER_RETWINCH (1<<7) /* need reformatting on SIGWINCH */
-#define MUTT_PAGER_MESSAGE (MUTT_SHOWCOLOR | MUTT_PAGER_MARKER)
-#define MUTT_PAGER_ATTACHMENT (1<<8)
-#define MUTT_PAGER_NOWRAP (1<<9) /* format for term width, ignore $wrap */
+#define MUTT_PAGER_NSKIP (1<<5) /* preserve whitespace with smartwrap */
+#define MUTT_PAGER_MARKER (1<<6) /* use markers if option is set */
+#define MUTT_PAGER_RETWINCH (1<<7) /* need reformatting on SIGWINCH */
+#define MUTT_PAGER_MESSAGE (MUTT_SHOWCOLOR | MUTT_PAGER_MARKER)
+#define MUTT_PAGER_ATTACHMENT (1<<8)
+#define MUTT_PAGER_NOWRAP (1<<9) /* format for term width, ignore $wrap */
-#define MUTT_DISPLAYFLAGS (MUTT_SHOW | MUTT_PAGER_NSKIP | MUTT_PAGER_MARKER)
+#define MUTT_DISPLAYFLAGS (MUTT_SHOW | MUTT_PAGER_NSKIP | MUTT_PAGER_MARKER)
typedef struct
{