drop some useless crap.
[apps/madmutt.git] / init.h
diff --git a/init.h b/init.h
index 6346c29..238b451 100644 (file)
--- a/init.h
+++ b/init.h
@@ -451,7 +451,6 @@ struct option_t MuttVars[] = {
    ** will be saved for later references.  Also see ``$$record'',
    ** ``$$save_name'', ``$$force_name'' and ``$fcc-hook''.
    */
-
   {"crypt_use_gpgme", DT_BOOL, R_NONE, OPTCRYPTUSEGPGME, "no" },
   /*
    ** .pp
@@ -462,7 +461,6 @@ struct option_t MuttVars[] = {
    ** \fBNote\fP: You need to use this option in your \fT.madmuttrc\fP configuration
    ** file as it won't have any effect when used interactively.
    */
-
   {"crypt_autopgp", DT_BOOL, R_NONE, OPTCRYPTAUTOPGP, "yes" },
   /*
    ** .pp
@@ -2153,7 +2151,6 @@ struct option_t MuttVars[] = {
    ** checked with the check-traditional-pgp function, Madmutt will automatically
    ** check the message for traditional pgp.
    */
-
   /* XXX Default values! */
   {"pgp_decode_command", DT_STR, R_NONE, UL &PgpDecodeCommand, "" },
   /*
@@ -2453,7 +2450,6 @@ struct option_t MuttVars[] = {
    ** regardless of the file's permissions.  
    */
   {"smtp_envelope", DT_SYN, R_NONE, UL "envelope_from_address", 0 },
-
   {"smtp_host", DT_STR, R_NONE, UL &SmtpHost, "" },
   /*
    ** .pp
@@ -3672,109 +3668,62 @@ struct option_t MuttVars[] = {
   { NULL, -1, R_NONE, -1, NULL }
 };
 
-static const char* Features[] = {
-#ifdef NCURSES_VERSION
-  "ncurses",
-#endif
-#ifdef USE_SLANG_CURSES
-  "slang",
-#endif
-#ifdef _LIBICONV_VERSION
-  "iconv",
-#endif
-#ifdef HAVE_LIBIDN
-  "idn",
-#endif
-#ifdef USE_NNTP
-  "nntp",
-#endif
-#ifdef USE_SSL
-  "ssl",
-#endif
-#ifdef USE_GNUTLS
-  "gnutls",
-#endif
-#ifdef USE_SASL
-  "sasl",
-#endif
-#ifdef USE_LIBESMTP
-  "libesmtp",
-#endif
-#ifdef CRYPT_BACKEND_GPGME
-  "gpgme",
-#endif
-#ifdef USE_HCACHE
-  "header_cache",
-#endif
-#ifdef HAVE_QDBM
-  "qdbm",
-#endif
-#ifdef HAVE_GDBM
-  "gdbm",
-#endif
-#ifdef HAVE_DB4
-  "db4",
-#endif
-  /* last */
-  NULL
-};
-
 const struct mapping_t SortMethods[] = {
-  {"date", SORT_DATE},
-  {"date-sent", SORT_DATE},
-  {"date-received", SORT_RECEIVED},
-  {"mailbox-order", SORT_ORDER},
-  {"subject", SORT_SUBJECT},
-  {"from", SORT_FROM},
-  {"size", SORT_SIZE},
-  {"threads", SORT_THREADS},
-  {"to", SORT_TO},
-  {"score", SORT_SCORE},
-  {"spam", SORT_SPAM},
-  {NULL, 0}
+    {"date", SORT_DATE},
+    {"date-sent", SORT_DATE},
+    {"date-received", SORT_RECEIVED},
+    {"mailbox-order", SORT_ORDER},
+    {"subject", SORT_SUBJECT},
+    {"from", SORT_FROM},
+    {"size", SORT_SIZE},
+    {"threads", SORT_THREADS},
+    {"to", SORT_TO},
+    {"score", SORT_SCORE},
+    {"spam", SORT_SPAM},
+    {NULL, 0}
 };
 
 /* same as SortMethods, but with "threads" replaced by "date" */
 
 const struct mapping_t SortAuxMethods[] = {
-  {"date", SORT_DATE},
-  {"date-sent", SORT_DATE},
-  {"date-received", SORT_RECEIVED},
-  {"mailbox-order", SORT_ORDER},
-  {"subject", SORT_SUBJECT},
-  {"from", SORT_FROM},
-  {"size", SORT_SIZE},
-  {"threads", SORT_DATE},       /* note: sort_aux == threads
-                                 * isn't possible. 
-                                 */
-  {"to", SORT_TO},
-  {"score", SORT_SCORE},
-  {"spam", SORT_SPAM},
-  {NULL, 0}
+    {"date", SORT_DATE},
+    {"date-sent", SORT_DATE},
+    {"date-received", SORT_RECEIVED},
+    {"mailbox-order", SORT_ORDER},
+    {"subject", SORT_SUBJECT},
+    {"from", SORT_FROM},
+    {"size", SORT_SIZE},
+    {"threads", SORT_DATE},       /* note: sort_aux == threads
+                                   * isn't possible. 
+                                   */
+    {"to", SORT_TO},
+    {"score", SORT_SCORE},
+    {"spam", SORT_SPAM},
+    {NULL, 0}
 };
 
 
 const struct mapping_t SortBrowserMethods[] = {
-  {"alpha", SORT_SUBJECT},
-  {"date", SORT_DATE},
-  {"size", SORT_SIZE},
-  {"unsorted", SORT_ORDER},
-  {NULL, 0}
+    {"alpha", SORT_SUBJECT},
+    {"date", SORT_DATE},
+    {"size", SORT_SIZE},
+    {"unsorted", SORT_ORDER},
+    {NULL, 0}
 };
 
 const struct mapping_t SortAliasMethods[] = {
-  {"alias", SORT_ALIAS},
-  {"address", SORT_ADDRESS},
-  {"unsorted", SORT_ORDER},
-  {NULL, 0}
+    {"alias", SORT_ALIAS},
+    {"address", SORT_ADDRESS},
+    {"unsorted", SORT_ORDER},
+    {NULL, 0}
 };
 
 const struct mapping_t SortKeyMethods[] = {
-  {"address", SORT_ADDRESS},
-  {"date", SORT_DATE},
-  {"keyid", SORT_KEYID},
-  {"trust", SORT_TRUST},
-  {NULL, 0}
+    {"address", SORT_ADDRESS},
+    {"date", SORT_DATE},
+    {"keyid", SORT_KEYID},
+    {"trust", SORT_TRUST},
+    {NULL, 0}
 };
 
 
@@ -3789,7 +3738,6 @@ static int parse_lists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_unlists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_alias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_unalias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-static int parse_ifdef (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_ignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_unignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_source (BUFFER *, BUFFER *, unsigned long, BUFFER *);
@@ -3803,74 +3751,72 @@ static int parse_alternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 static int parse_unalternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
 
 struct command_t {
-  const char *name;
-  int (*func) (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-  unsigned long data;
+    const char *name;
+    int (*func) (BUFFER *, BUFFER *, unsigned long, BUFFER *);
+    unsigned long data;
 };
 
 struct command_t Commands[] = {
-  {"alternates", parse_alternates, 0},
-  {"attachments", parse_attachments, 0 },
-  {"unattachments",parse_unattachments,0 },
-  {"unalternates", parse_unalternates, 0},
-  {"account-hook", mutt_parse_hook, M_ACCOUNTHOOK},
-  {"alias", parse_alias, 0},
-  {"auto_view", parse_list, UL &AutoViewList},
-  {"alternative_order", parse_list, UL &AlternativeOrderList},
-  {"bind", mutt_parse_bind, 0},
-  {"charset-hook", mutt_parse_hook, M_CHARSETHOOK},
-  {"color", mutt_parse_color, 0},
-  {"uncolor", mutt_parse_uncolor, 0},
-  {"exec", mutt_parse_exec, 0},
-  {"fcc-hook", mutt_parse_hook, M_FCCHOOK},
-  {"fcc-save-hook", mutt_parse_hook, M_FCCHOOK|M_SAVEHOOK},
-  {"folder-hook", mutt_parse_hook, M_FOLDERHOOK},
-  {"open-hook", mutt_parse_hook, M_OPENHOOK},
-  {"close-hook", mutt_parse_hook, M_CLOSEHOOK},
-  {"append-hook", mutt_parse_hook, M_APPENDHOOK},
-  {"hdr_order", parse_list, UL &HeaderOrderList},
-  {"ifdef", parse_ifdef, 1},
-  {"ifndef", parse_ifdef, 0},
+    {"account-hook",        mutt_parse_hook,       M_ACCOUNTHOOK},
+    {"alias",               parse_alias,           0},
+    {"alternates",          parse_alternates,      0},
+    {"alternative_order",   parse_list,            UL &AlternativeOrderList},
+    {"append-hook",         mutt_parse_hook,       M_APPENDHOOK},
+    {"attachments",         parse_attachments,     0 },
+    {"auto_view",           parse_list,            UL &AutoViewList},
+    {"bind",                mutt_parse_bind,       0},
+    {"charset-hook",        mutt_parse_hook,       M_CHARSETHOOK},
+    {"close-hook",          mutt_parse_hook,       M_CLOSEHOOK},
+    {"color",               mutt_parse_color,      0},
+    {"exec",                mutt_parse_exec,       0},
+    {"fcc-hook",            mutt_parse_hook,       M_FCCHOOK},
+    {"fcc-save-hook",       mutt_parse_hook,       M_FCCHOOK|M_SAVEHOOK},
+    {"folder-hook",         mutt_parse_hook,       M_FOLDERHOOK},
+    {"hdr_order",           parse_list,            UL &HeaderOrderList},
+    {"open-hook",           mutt_parse_hook,       M_OPENHOOK},
+    {"unalternates",        parse_unalternates,    0},
+    {"unattachments",       parse_unattachments,   0},
+    {"uncolor",             mutt_parse_uncolor,    0},
 #ifdef HAVE_ICONV
-  {"iconv-hook", mutt_parse_hook, M_ICONVHOOK},
+    {"iconv-hook",          mutt_parse_hook,       M_ICONVHOOK},
 #endif
-  {"ignore", parse_ignore, 0},
-  {"lists", parse_lists, 0},
-  {"macro", mutt_parse_macro, 0},
-  {"mailboxes", buffy_parse_mailboxes, M_MAILBOXES},
-  {"unmailboxes", buffy_parse_mailboxes, M_UNMAILBOXES},
-  {"message-hook", mutt_parse_hook, M_MESSAGEHOOK},
-  {"mbox-hook", mutt_parse_hook, M_MBOXHOOK},
-  {"mime_lookup", parse_list, UL &MimeLookupList},
-  {"unmime_lookup", parse_unlist, UL &MimeLookupList},
-  {"mono", mutt_parse_mono, 0},
-  {"my_hdr", parse_my_hdr, 0},
-  {"pgp-hook", mutt_parse_hook, M_CRYPTHOOK},
-  {"crypt-hook", mutt_parse_hook, M_CRYPTHOOK},
-  {"push", mutt_parse_push, 0},
-  {"reply-hook", mutt_parse_hook, M_REPLYHOOK},
-  {"reset", parse_set, M_SET_RESET},
-  {"save-hook", mutt_parse_hook, M_SAVEHOOK},
-  {"score", mutt_parse_score, 0},
-  {"send-hook", mutt_parse_hook, M_SENDHOOK},
-  {"send2-hook", mutt_parse_hook, M_SEND2HOOK},
-  {"set", parse_set, 0},
-  {"source", parse_source, 0},
-  {"spam", parse_spam_list, M_SPAM},
-  {"nospam", parse_spam_list, M_NOSPAM},
-  {"subscribe", parse_subscribe, 0},
-  {"toggle", parse_set, M_SET_INV},
-  {"unalias", parse_unalias, 0},
-  {"unalternative_order", parse_unlist, UL &AlternativeOrderList},
-  {"unauto_view", parse_unlist, UL &AutoViewList},
-  {"unhdr_order", parse_unlist, UL &HeaderOrderList},
-  {"unhook", mutt_parse_unhook, 0},
-  {"unignore", parse_unignore, 0},
-  {"unlists", parse_unlists, 0},
-  {"unmono", mutt_parse_unmono, 0},
-  {"unmy_hdr", parse_unmy_hdr, 0},
-  {"unscore", mutt_parse_unscore, 0},
-  {"unset", parse_set, M_SET_UNSET},
-  {"unsubscribe", parse_unsubscribe, 0},
-  {NULL, NULL, 0}
+    {"crypt-hook",          mutt_parse_hook,       M_CRYPTHOOK},
+    {"ignore",              parse_ignore,          0},
+    {"lists",               parse_lists,           0},
+    {"macro",               mutt_parse_macro,      0},
+    {"mailboxes",           buffy_parse_mailboxes, M_MAILBOXES},
+    {"mbox-hook",           mutt_parse_hook,       M_MBOXHOOK},
+    {"message-hook",        mutt_parse_hook,       M_MESSAGEHOOK},
+    {"mime_lookup",         parse_list,            UL &MimeLookupList},
+    {"mono",                mutt_parse_mono,       0},
+    {"my_hdr",              parse_my_hdr,          0},
+    {"nospam",              parse_spam_list,       M_NOSPAM},
+    {"pgp-hook",            mutt_parse_hook,       M_CRYPTHOOK},
+    {"push",                mutt_parse_push,       0},
+    {"reply-hook",          mutt_parse_hook,       M_REPLYHOOK},
+    {"reset",               parse_set,             M_SET_RESET},
+    {"save-hook",           mutt_parse_hook,       M_SAVEHOOK},
+    {"score",               mutt_parse_score,      0},
+    {"send2-hook",          mutt_parse_hook,       M_SEND2HOOK},
+    {"send-hook",           mutt_parse_hook,       M_SENDHOOK},
+    {"set",                 parse_set,             0},
+    {"source",              parse_source,          0},
+    {"spam",                parse_spam_list,       M_SPAM},
+    {"subscribe",           parse_subscribe,       0},
+    {"toggle",              parse_set,             M_SET_INV},
+    {"unalias",             parse_unalias,         0},
+    {"unalternative_order", parse_unlist,          UL &AlternativeOrderList},
+    {"unauto_view",         parse_unlist,          UL &AutoViewList},
+    {"unhdr_order",         parse_unlist,          UL &HeaderOrderList},
+    {"unhook",              mutt_parse_unhook,     0},
+    {"unignore",            parse_unignore,        0},
+    {"unlists",             parse_unlists,         0},
+    {"unmailboxes",         buffy_parse_mailboxes, M_UNMAILBOXES},
+    {"unmime_lookup",       parse_unlist,          UL &MimeLookupList},
+    {"unmono",              mutt_parse_unmono,     0},
+    {"unmy_hdr",            parse_unmy_hdr,        0},
+    {"unscore",             mutt_parse_unscore,    0},
+    {"unset",               parse_set,             M_SET_UNSET},
+    {"unsubscribe",         parse_unsubscribe,     0},
+    {NULL, NULL, 0}
 };