···2020#define _MAILBOX_H
21212222/* flags for mutt_open_mailbox() */
2323-#define MUTT_NOSORT (1<<0) /* do not sort the mailbox after opening it */
2424-#define MUTT_APPEND (1<<1) /* open mailbox for appending messages */
2525-#define MUTT_READONLY (1<<2) /* open in read-only mode */
2626-#define MUTT_QUIET (1<<3) /* do not print any messages */
2727-#define MUTT_NEWFOLDER (1<<4) /* create a new folder - same as MUTT_APPEND, but uses
2828- * safe_fopen() for mbox-style folders.
2929- */
2323+#define MUTT_NOSORT (1<<0) /* do not sort the mailbox after opening it */
2424+#define MUTT_APPEND (1<<1) /* open mailbox for appending messages */
2525+#define MUTT_READONLY (1<<2) /* open in read-only mode */
2626+#define MUTT_QUIET (1<<3) /* do not print any messages */
2727+#define MUTT_NEWFOLDER (1<<4) /* create a new folder - same as MUTT_APPEND, but uses
2828+ * safe_fopen() for mbox-style folders.
2929+ */
30303131/* mx_open_new_message() */
3232-#define MUTT_ADD_FROM (1<<0) /* add a From_ line */
3333-#define MUTT_SET_DRAFT (1<<1) /* set the message draft flag */
3232+#define MUTT_ADD_FROM (1<<0) /* add a From_ line */
3333+#define MUTT_SET_DRAFT (1<<1) /* set the message draft flag */
34343535/* return values from mx_check_mailbox() */
3636enum
3737{
3838- MUTT_NEW_MAIL = 1, /* new mail received in mailbox */
3939- MUTT_LOCKED, /* couldn't lock the mailbox */
4040- MUTT_REOPENED, /* mailbox was reopened */
4141- MUTT_FLAGS /* nondestructive flags change (IMAP) */
3838+ MUTT_NEW_MAIL = 1, /* new mail received in mailbox */
3939+ MUTT_LOCKED, /* couldn't lock the mailbox */
4040+ MUTT_REOPENED, /* mailbox was reopened */
4141+ MUTT_FLAGS /* nondestructive flags change (IMAP) */
4242};
43434444typedef struct _message
+55-55
mutt.h
···9090#define MUTT_PATTERN (1<<7) /* pattern mode - only used for history classes */
91919292/* flags for mutt_get_token() */
9393-#define MUTT_TOKEN_EQUAL 1 /* treat '=' as a special */
9494-#define MUTT_TOKEN_CONDENSE (1<<1) /* ^(char) to control chars (macros) */
9595-#define MUTT_TOKEN_SPACE (1<<2) /* don't treat whitespace as a term */
9696-#define MUTT_TOKEN_QUOTE (1<<3) /* don't interpret quotes */
9797-#define MUTT_TOKEN_PATTERN (1<<4) /* !)|~ are terms (for patterns) */
9898-#define MUTT_TOKEN_COMMENT (1<<5) /* don't reap comments */
9999-#define MUTT_TOKEN_SEMICOLON (1<<6) /* don't treat ; as special */
9393+#define MUTT_TOKEN_EQUAL 1 /* treat '=' as a special */
9494+#define MUTT_TOKEN_CONDENSE (1<<1) /* ^(char) to control chars (macros) */
9595+#define MUTT_TOKEN_SPACE (1<<2) /* don't treat whitespace as a term */
9696+#define MUTT_TOKEN_QUOTE (1<<3) /* don't interpret quotes */
9797+#define MUTT_TOKEN_PATTERN (1<<4) /* !)|~ are terms (for patterns) */
9898+#define MUTT_TOKEN_COMMENT (1<<5) /* don't reap comments */
9999+#define MUTT_TOKEN_SEMICOLON (1<<6) /* don't treat ; as special */
100100101101typedef struct
102102{
···118118/* flags for mutt_FormatString() */
119119typedef enum
120120{
121121- MUTT_FORMAT_FORCESUBJ = (1<<0), /* print the subject even if unchanged */
122122- MUTT_FORMAT_TREE = (1<<1), /* draw the thread tree */
123123- MUTT_FORMAT_MAKEPRINT = (1<<2), /* make sure that all chars are printable */
124124- MUTT_FORMAT_OPTIONAL = (1<<3),
125125- MUTT_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */
126126- MUTT_FORMAT_ARROWCURSOR = (1<<5), /* reserve space for arrow_cursor */
127127- MUTT_FORMAT_INDEX = (1<<6), /* this is a main index entry */
128128- MUTT_FORMAT_NOFILTER = (1<<7) /* do not allow filtering on this pass */
121121+ MUTT_FORMAT_FORCESUBJ = (1<<0), /* print the subject even if unchanged */
122122+ MUTT_FORMAT_TREE = (1<<1), /* draw the thread tree */
123123+ MUTT_FORMAT_MAKEPRINT = (1<<2), /* make sure that all chars are printable */
124124+ MUTT_FORMAT_OPTIONAL = (1<<3),
125125+ MUTT_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */
126126+ MUTT_FORMAT_ARROWCURSOR = (1<<5), /* reserve space for arrow_cursor */
127127+ MUTT_FORMAT_INDEX = (1<<6), /* this is a main index entry */
128128+ MUTT_FORMAT_NOFILTER = (1<<7) /* do not allow filtering on this pass */
129129} format_flag;
130130131131/* types for mutt_add_hook() */
132132-#define MUTT_FOLDERHOOK 1
133133-#define MUTT_MBOXHOOK (1<<1)
134134-#define MUTT_SENDHOOK (1<<2)
135135-#define MUTT_FCCHOOK (1<<3)
136136-#define MUTT_SAVEHOOK (1<<4)
137137-#define MUTT_CHARSETHOOK (1<<5)
138138-#define MUTT_ICONVHOOK (1<<6)
139139-#define MUTT_MESSAGEHOOK (1<<7)
140140-#define MUTT_CRYPTHOOK (1<<8)
141141-#define MUTT_ACCOUNTHOOK (1<<9)
142142-#define MUTT_REPLYHOOK (1<<10)
143143-#define MUTT_SEND2HOOK (1<<11)
132132+#define MUTT_FOLDERHOOK 1
133133+#define MUTT_MBOXHOOK (1<<1)
134134+#define MUTT_SENDHOOK (1<<2)
135135+#define MUTT_FCCHOOK (1<<3)
136136+#define MUTT_SAVEHOOK (1<<4)
137137+#define MUTT_CHARSETHOOK (1<<5)
138138+#define MUTT_ICONVHOOK (1<<6)
139139+#define MUTT_MESSAGEHOOK (1<<7)
140140+#define MUTT_CRYPTHOOK (1<<8)
141141+#define MUTT_ACCOUNTHOOK (1<<9)
142142+#define MUTT_REPLYHOOK (1<<10)
143143+#define MUTT_SEND2HOOK (1<<11)
144144145145/* tree characters for linearize_tree and print_enriched_string */
146146-#define MUTT_TREE_LLCORNER 1
147147-#define MUTT_TREE_ULCORNER 2
148148-#define MUTT_TREE_LTEE 3
149149-#define MUTT_TREE_HLINE 4
150150-#define MUTT_TREE_VLINE 5
151151-#define MUTT_TREE_SPACE 6
152152-#define MUTT_TREE_RARROW 7
153153-#define MUTT_TREE_STAR 8
154154-#define MUTT_TREE_HIDDEN 9
155155-#define MUTT_TREE_EQUALS 10
156156-#define MUTT_TREE_TTEE 11
157157-#define MUTT_TREE_BTEE 12
158158-#define MUTT_TREE_MISSING 13
159159-#define MUTT_TREE_MAX 14
146146+#define MUTT_TREE_LLCORNER 1
147147+#define MUTT_TREE_ULCORNER 2
148148+#define MUTT_TREE_LTEE 3
149149+#define MUTT_TREE_HLINE 4
150150+#define MUTT_TREE_VLINE 5
151151+#define MUTT_TREE_SPACE 6
152152+#define MUTT_TREE_RARROW 7
153153+#define MUTT_TREE_STAR 8
154154+#define MUTT_TREE_HIDDEN 9
155155+#define MUTT_TREE_EQUALS 10
156156+#define MUTT_TREE_TTEE 11
157157+#define MUTT_TREE_BTEE 12
158158+#define MUTT_TREE_MISSING 13
159159+#define MUTT_TREE_MAX 14
160160161161-#define MUTT_THREAD_COLLAPSE (1<<0)
162162-#define MUTT_THREAD_UNCOLLAPSE (1<<1)
163163-#define MUTT_THREAD_GET_HIDDEN (1<<2)
164164-#define MUTT_THREAD_UNREAD (1<<3)
165165-#define MUTT_THREAD_NEXT_UNREAD (1<<4)
161161+#define MUTT_THREAD_COLLAPSE (1<<0)
162162+#define MUTT_THREAD_UNCOLLAPSE (1<<1)
163163+#define MUTT_THREAD_GET_HIDDEN (1<<2)
164164+#define MUTT_THREAD_UNREAD (1<<3)
165165+#define MUTT_THREAD_NEXT_UNREAD (1<<4)
166166167167enum
168168{
···303303#define MUTT_COMPOSE_NOFREEHEADER (1<<0)
304304305305/* flags to _mutt_select_file() */
306306-#define MUTT_SEL_BUFFY (1<<0)
307307-#define MUTT_SEL_MULTI (1<<1)
308308-#define MUTT_SEL_FOLDER (1<<2)
306306+#define MUTT_SEL_BUFFY (1<<0)
307307+#define MUTT_SEL_MULTI (1<<1)
308308+#define MUTT_SEL_FOLDER (1<<2)
309309310310/* flags for parse_spam_list */
311311#define MUTT_SPAM 1
···954954} ENTER_STATE;
955955956956/* flags for the STATE struct */
957957-#define MUTT_DISPLAY (1<<0) /* output is displayed to the user */
958958-#define MUTT_VERIFY (1<<1) /* perform signature verification */
957957+#define MUTT_DISPLAY (1<<0) /* output is displayed to the user */
958958+#define MUTT_VERIFY (1<<1) /* perform signature verification */
959959#define MUTT_PENDINGPREFIX (1<<2) /* prefix to write, but character must follow */
960960#define MUTT_WEED (1<<3) /* weed headers even when not in display mode */
961961-#define MUTT_CHARCONV (1<<4) /* Do character set conversions */
962962-#define MUTT_PRINTING (1<<5) /* are we printing? - MUTT_DISPLAY "light" */
963963-#define MUTT_REPLYING (1<<6) /* are we replying? */
964964-#define MUTT_FIRSTDONE (1<<7) /* the first attachment has been done */
961961+#define MUTT_CHARCONV (1<<4) /* Do character set conversions */
962962+#define MUTT_PRINTING (1<<5) /* are we printing? - MUTT_DISPLAY "light" */
963963+#define MUTT_REPLYING (1<<6) /* are we replying? */
964964+#define MUTT_FIRSTDONE (1<<7) /* the first attachment has been done */
965965966966#define state_set_prefix(s) ((s)->flags |= MUTT_PENDINGPREFIX)
967967#define state_reset_prefix(s) ((s)->flags &= ~MUTT_PENDINGPREFIX)