** If \fIset\fP, Madmutt will prompt you for carbon-copy (Cc) recipients before
** editing the body of an outgoing message.
*/
- {"assumed_charset", DT_STR, R_NONE, UL &AssumedCharset, "us-ascii"},
- /*
- ** .pp
- ** This variable is a colon-separated list of character encoding
- ** schemes for messages without character encoding indication.
- ** Header field values and message body content without character encoding
- ** indication would be assumed that they are written in one of this list.
- ** By default, all the header fields and message body without any charset
- ** indication are assumed to be in \fTus-ascii\fP.
- ** .pp
- ** For example, Japanese users might prefer this:
- ** .pp
- ** \fTset assumed_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"\fP
- ** .pp
- ** However, only the first content is valid for the message body.
- ** This variable is valid only if $$strict_mime is unset.
- */
#ifdef USE_NNTP
{"nntp_ask_followup_to", DT_BOOL, R_NONE, OPTASKFOLLOWUP, "no" },
/*
** as read when you leaving it.
*/
#endif
- {"charset", DT_STR, R_NONE, UL &Charset, "" },
- /*
- ** .pp
- ** Character set your terminal uses to display and enter textual data.
- */
{"check_new", DT_BOOL, R_NONE, OPTCHECKNEW, "yes" },
/*
** .pp
** signed.
** (PGP only)
*/
- {"file_charset", DT_STR, R_NONE, UL &FileCharset, "" },
- /*
- ** .pp
- ** This variable is a colon-separated list of character encoding
- ** schemes for text file attatchments.
- ** If \fIunset\fP, $$charset value will be used instead.
- ** For example, the following configuration would work for Japanese
- ** text handling:
- ** .pp
- ** \fTset file_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"\fP
- ** .pp
- ** Note: ``\fTiso-2022-*\fP'' must be put at the head of the value as shown above
- ** if included.
- */
{"folder", DT_PATH, R_NONE, UL &Maildir, "~/Mail"},
/*
** .pp
** This variable controls whether or not a \fTMail-Followup-To:\fP header field is
** honored when group-replying to a message.
*/
- {"hostname", DT_STR, R_NONE, UL &Fqdn, "" },
- /*
- ** .pp
- ** Specifies the hostname to use after the ``\fT@\fP'' in local e-mail
- ** addresses and during generation of \fTMessage-ID:\fP headers.
- ** .pp
- ** Please be sure to really know what you are doing when changing this variable
- ** to configure a custom domain part of Message-IDs.
- */
{"ignore_list_reply_to", DT_BOOL, R_NONE, OPTIGNORELISTREPLYTO, "no" },
/*
** .pp
** .pp
** \fBNote:\fP This does not apply to IMAP mailboxes, see $$imap_mail_check.
*/
- {"mailcap_path", DT_STR, R_NONE, UL &MailcapPath, "" },
- /*
- ** .pp
- ** This variable specifies which files to consult when attempting to
- ** display MIME bodies not directly supported by Madmutt.
- */
- {"mailcap_sanitize", DT_BOOL, R_NONE, OPTMAILCAPSANITIZE, "yes" },
- /*
- ** .pp
- ** If \fIset\fP, Madmutt will restrict possible characters in mailcap \fT%\fP expandos
- ** to a well-defined set of safe characters. This is the safe setting,
- ** but we are not sure it doesn't break some more advanced MIME stuff.
- ** .pp
- ** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
- ** DOING!\fP
- */
#ifdef USE_HCACHE
{"header_cache", DT_PATH, R_NONE, UL &HeaderCache, "" },
/*
** Madmutt scores are always greater than or equal to zero, the default setting
** of this variable will never mark a message read.
*/
- {"send_charset", DT_STR, R_NONE, UL &SendCharset, "us-ascii:iso-8859-1:utf-8"},
- /*
- ** .pp
- ** A list of character sets for outgoing messages. Madmutt will use the
- ** first character set into which the text can be converted exactly.
- ** If your ``$$charset'' is not \fTiso-8859-1\fP and recipients may not
- ** understand \fTUTF-8\fP, it is advisable to include in the list an
- ** appropriate widely used standard character set (such as
- ** \fTiso-8859-2\fP, \fTkoi8-r\fP or \fTiso-2022-jp\fP) either
- ** instead of or after \fTiso-8859-1\fP.
- */
#ifdef USE_NNTP
{"nntp_save_unsubscribed", DT_BOOL, R_NONE, OPTSAVEUNSUB, "no" },
/*
** Madmutt will attach the message whether or not this is the case,
** as long as the non-``$$reply_regexp'' parts of both messages are identical.
*/
- {"spam_separator", DT_STR, R_NONE, UL &SpamSep, ","},
- /*
- ** .pp
- ** ``$spam_separator'' controls what happens when multiple spam headers
- ** are matched: if \fIunset\fP, each successive header will overwrite any
- ** previous matches value for the spam label. If \fIset\fP, each successive
- ** match will append to the previous, using ``$spam_separator'' as a
- ** separator.
- */
{"spoolfile", DT_PATH, R_NONE, UL &Spoolfile, "" },
/*
** .pp
/* functions used to parse commands in a rc file */
static int parse_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-static int parse_spam_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_unlist (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_attachments (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_unattachments (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-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_ignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_set (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_my_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_unmy_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-static int parse_subscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-static int parse_unsubscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-
-static int parse_alternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-static int parse_unalternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
struct command_t {
const char *name;
{"exec", mutt_parse_exec, 0},
{"account-hook", mutt_parse_hook, M_ACCOUNTHOOK},
{"append-hook", mutt_parse_hook, M_APPENDHOOK},
- {"charset-hook", mutt_parse_hook, M_CHARSETHOOK},
{"close-hook", mutt_parse_hook, M_CLOSEHOOK},
{"crypt-hook", mutt_parse_hook, M_CRYPTHOOK},
{"fcc-hook", mutt_parse_hook, M_FCCHOOK},
{"fcc-save-hook", mutt_parse_hook, M_FCCHOOK|M_SAVEHOOK},
{"folder-hook", mutt_parse_hook, M_FOLDERHOOK},
-#ifdef HAVE_ICONV
- {"iconv-hook", mutt_parse_hook, M_ICONVHOOK},
-#endif
{"mbox-hook", mutt_parse_hook, M_MBOXHOOK},
{"message-hook", mutt_parse_hook, M_MESSAGEHOOK},
{"open-hook", mutt_parse_hook, M_OPENHOOK},
{"unmono", mutt_parse_unmono, 0},
{"unscore", mutt_parse_unscore, 0},
{"alias", parse_alias, 0},
- {"alternates", parse_alternates, 0},
{"attachments", parse_attachments, 0 },
{"ignore", parse_ignore, 0},
{"alternative_order", parse_list, UL &AlternativeOrderList},
{"auto_view", parse_list, UL &AutoViewList},
{"hdr_order", parse_list, UL &HeaderOrderList},
{"mime_lookup", parse_list, UL &MimeLookupList},
- {"lists", parse_lists, 0},
{"my_hdr", parse_my_hdr, 0},
{"reset", parse_set, M_SET_RESET},
{"set", parse_set, 0},
{"toggle", parse_set, M_SET_INV},
{"unset", parse_set, M_SET_UNSET},
{"source", parse_source, 0},
- {"nospam", parse_spam_list, M_NOSPAM},
- {"spam", parse_spam_list, M_SPAM},
- {"subscribe", parse_subscribe, 0},
{"unalias", parse_unalias, 0},
- {"unalternates", parse_unalternates, 0},
{"unattachments", parse_unattachments, 0},
{"unignore", parse_unignore, 0},
- {"unlists", parse_unlists, 0},
{"unalternative_order", parse_unlist, UL &AlternativeOrderList},
{"unauto_view", parse_unlist, UL &AutoViewList},
{"unhdr_order", parse_unlist, UL &HeaderOrderList},
{"unmime_lookup", parse_unlist, UL &MimeLookupList},
{"unmy_hdr", parse_unmy_hdr, 0},
- {"unsubscribe", parse_unsubscribe, 0},
{NULL, NULL, 0}
};