X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.h;h=841ae3859427edf4f6957a45fdfa982cc633a3a3;hp=1c9328312a619b440bc4a6e3469e4fb3acfd0abc;hb=f3cbb9f51357972f6e74244494236a41dc4d84cd;hpb=05a3bbbe420e4afc76e0eea24ce32f859405dc4a diff --git a/init.h b/init.h index 1c93283..841ae38 100644 --- a/init.h +++ b/init.h @@ -17,8 +17,6 @@ # include "sort.h" #endif -#include - #include "buffy.h" #include "mutt.h" #include "version.h" @@ -82,9 +80,6 @@ struct option_t { /* build complete documentation */ #ifdef _MAKEDOC -# ifndef MIXMASTER -# define MIXMASTER "mixmaster" -# endif # ifndef USE_SSL # define USE_SSL # endif @@ -97,9 +92,6 @@ struct option_t { # ifndef USE_GNUTLS # define USE_GNUTLS # endif -# ifndef USE_DOTLOCK -# define USE_DOTLOCK -# endif # ifndef USE_HCACHE # define USE_HCACHE # endif @@ -398,18 +390,6 @@ struct option_t MuttVars[] = { ** When \fIunset\fP, Madmutt will not collapse a thread if it contains any ** unread messages. */ - {"count_attachments", DT_BOOL, R_NONE, OPTCOUNTATTACH, "yes"}, - /* - ** .pp - ** This variable controls whether attachments should be counted for $$$index_format - ** and its \fT%X\fP expando or not. As for scoring, this variable can be used to - ** selectively turn counting on or off instead of removing and re-adding rules as - ** prefered because counting requires full loading of messages. - ** .pp - ** If it is \fIset\fP and rules were defined via the \fTattachments\fP and/or - ** \fTunattachments\fP commands, counting will be done. If it is \fIunset\fP no - ** counting will be done regardless whether rules were defined or not. - */ {"uncollapse_jump", DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, "no" }, /* ** .pp @@ -513,24 +493,6 @@ struct option_t MuttVars[] = { ** rest of the string are expanded in the \fIC\fP locale (that is in US ** English). */ -#ifdef DEBUG - {"debug_level", DT_NUM, R_NONE, UL &DebugLevel, "1" }, - /* - ** .pp - ** Availability: debug - ** - ** .pp - ** This variable specifies the current debug level and - ** may be used to increase or decrease the verbosity level - ** during runtime. It overrides the level given with the - ** \fT-d\fP command line option. - ** - ** .pp - ** Currently, this number must be >= 0 and <= 5 and madmutt - ** must be started with \fT-d\fP to enable debugging at all; - ** enabling at runtime is not possible. - */ -#endif {"default_hook", DT_STR, R_NONE, UL &DefaultHook, "~f %s !~P | (~P ~C %s)"}, /* ** .pp @@ -586,17 +548,12 @@ struct option_t MuttVars[] = { ** is viewed it is passed as standard input to $$display_filter, and the ** filtered message is read from the standard output. */ -#if defined(USE_DOTLOCK) {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, "$madmutt_bindir/muttng_dotlock"}, /* - ** .pp - ** Availability: Dotlock - ** ** .pp ** Contains the path of the \fTmadmutt_dotlock(1)\fP binary to be used by ** Madmutt. */ -#endif {"dsn_notify", DT_STR, R_NONE, UL &DsnNotify, ""}, /* ** .pp @@ -1322,7 +1279,6 @@ struct option_t MuttVars[] = { ** DOING!\fP */ #ifdef USE_HCACHE - {"header_cache", DT_PATH, R_NONE, UL &HeaderCache, "" }, /* ** .pp @@ -1362,7 +1318,7 @@ struct option_t MuttVars[] = { ** cache (first hit). */ #endif /* HAVE_GDBM || HAVE_DB 4 */ -#if HAVE_QDBM +#ifdef HAVE_QDBM { "header_cache_compress", DT_BOOL, R_NONE, OPTHCACHECOMPRESS, "no" }, /* ** .pp @@ -1445,11 +1401,11 @@ struct option_t MuttVars[] = { ** directory containing the madmutt documentation.\fP */ #ifdef USE_HCACHE -#if HAVE_QDBM +#if defined(HAVE_QDBM) {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "qdbm" }, -#elif HAVE_GDBM +#elif defined(HAVE_GDBM) {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "gdbm" }, -#elif HAVE_DB4 +#elif defined(HAVE_DB4) {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "db4" }, #else {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "unknown" }, @@ -1663,7 +1619,6 @@ struct option_t MuttVars[] = { ** menu, attachments which cannot be decoded in a reasonable manner will ** be attached to the newly composed message if this option is set. */ - #ifdef USE_NNTP {"nntp_mime_subject", DT_BOOL, R_NONE, OPTMIMESUBJECT, "yes" }, /* @@ -1677,13 +1632,8 @@ struct option_t MuttVars[] = { ** \fBNote:\fP Only change this setting if you know what you are doing. */ #endif - -#ifdef MIXMASTER {"mix_entry_format", DT_STR, R_NONE, UL &MixEntryFormat, "%4n %c %-16s %a"}, /* - ** .pp - ** Availability: Mixmaster - ** ** .pp ** This variable describes the format of a remailer line on the mixmaster ** chain selection screen. The following \fTprintf(3)\fP-like sequences are @@ -1698,16 +1648,12 @@ struct option_t MuttVars[] = { */ {"mixmaster", DT_PATH, R_NONE, UL &Mixmaster, MIXMASTER}, /* - ** .pp - ** Availability: Mixmaster - ** ** .pp ** This variable contains the path to the Mixmaster binary on your ** system. It is used with various sets of parameters to gather the ** list of known remailers, and to finally send a message through the ** mixmaster chain. */ -#endif {"move", DT_QUAD, R_NONE, OPT_MOVE, "ask-no" }, /* ** .pp @@ -2209,7 +2155,6 @@ struct option_t MuttVars[] = { */ /* XXX Default values! */ - {"pgp_decode_command", DT_STR, R_NONE, UL &PgpDecodeCommand, "" }, /* ** .pp @@ -3026,26 +2971,6 @@ struct option_t MuttVars[] = { ** possibly including eventual real names. When it is \fIunset\fP, Madmutt will ** override any such real names with the setting of the $realname variable. */ - {"rfc2047_parameters", DT_BOOL, R_NONE, OPTRFC2047PARAMS, "no" }, - /* - ** .pp - ** When this variable is \fIset\fP, Madmutt will decode RFC-2047-encoded MIME - ** parameters. You want to set this variable when Madmutt suggests you - ** to save attachments to files named like this: - ** .pp - ** \fT=?iso-8859-1?Q?file=5F=E4=5F991116=2Ezip?=\fP - ** .pp - ** When this variable is \fIset\fP interactively, the change doesn't have - ** the desired effect before you have changed folders. - ** .pp - ** Note that this use of RFC 2047's encoding is explicitly, - ** prohibited by the standard, but nevertheless encountered in the - ** wild. - ** .pp - ** Also note that setting this parameter will \fInot\fP have the effect - ** that Madmutt \fIgenerates\fP this kind of encoding. Instead, Madmutt will - ** unconditionally use the encoding specified in RFC 2231. - */ {"save_address", DT_BOOL, R_NONE, OPTSAVEADDRESS, "no" }, /* ** .pp @@ -3460,19 +3385,6 @@ struct option_t MuttVars[] = { ** ``X-Mailto-'' and the message including headers will be shown in the editor ** regardless of what ``$$edit_headers'' is set to. **/ - {"strict_mime", DT_BOOL, R_NONE, OPTSTRICTMIME, "yes" }, - /* - ** .pp - ** When \fIunset\fP, non MIME-compliant messages that doesn't have any - ** charset indication in the ``\fTContent-Type:\fP'' header field can - ** be displayed (non MIME-compliant messages are often generated by old - ** mailers or buggy mailers like MS Outlook Express). - ** See also $$assumed_charset. - ** .pp - ** This option also replaces linear-white-space between encoded-word - ** and *text to a single space to prevent the display of MIME-encoded - ** ``\fTSubject:\fP'' header field from being devided into multiple lines. - */ {"strict_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTSTRICTTHREADS, "no" }, /* ** .pp @@ -3755,6 +3667,8 @@ struct option_t MuttVars[] = { */ #endif /*--*/ + {"strict_mime", DT_BOOL, R_NONE, OPTSTRICTMIME, "no" }, + {"rfc2047_parameters", DT_BOOL, R_NONE, OPTRFC2047PARAMS, "yes"}, { NULL, -1, R_NONE, -1, NULL } }; @@ -3771,9 +3685,6 @@ static const char* Features[] = { #ifdef HAVE_LIBIDN "idn", #endif -#ifdef USE_DOTLOCK - "dotlock", -#endif #ifdef USE_NNTP "nntp", #endif