* Features
- nntp: use safe_{fopen,fclose}
- nntp: fix resource leak
- - forgotten-attachment: Ignore lines matching quote_regex.
+ - forgotten-attachment: Ignore lines matching quote_regexp.
- forgotten-attachment: Fix checking logic.
- - forgotten-attachment: Update docs regarding $quote_regex.
+ - forgotten-attachment: Update docs regarding $quote_regexp.
- notmuch: Add a fake "Folder" header to viewed emails
- sidebar: consider description when using whitelist
- skip-quoted: skip to body
#set print=ask-yes # ask me if I really want to print messages
set print_command=/bin/false # how to print things (I like to save trees)
set noprompt_after # ask me for a command after the external pager exits
-#set quote_regex="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
+#set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
set read_inc=25 # show progress when reading a mailbox
#set recall # prompt to recall postponed messages
set record=+outbox # default location to save outgoing mail
set reply_to # always use reply-to if present
-#set reply_regex="^(re:[ \t]*)+"# how to identify replies in the subject:
+#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
#set resolve # move to the next message when an action is performed
#set reverse_alias # attempt to look up my names for people
set reverse_name # use my address as it appears in the message
#folder-hook mutt 'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
#folder-hook =mutt my_hdr Revolution: \#9 # real comment
-#folder-hook . 'set reply_regex="^re:[ \t]*"'
+#folder-hook . 'set reply_regexp="^re:[ \t]*"'
# this mailing list prepends "[WM]" to all non reply subjects, so set
-# $reply_regex to ignore it
+# $reply_regexp to ignore it
# Warning: May break threads for other people.
-#folder-hook +wmaker 'set reply_regex="^(re:[ \t]*)?\[WM\][ \t]*"'
+#folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
set print_command="enscript -2Gr -Email" # Two columns, landscape, fancy header.
set print_split=yes # Invoke enscript once per message
set quit=yes # Don't ask me whether or not I want to quit.
-set quote_regex="^ *[a-zA-Z]*[>|][>:|]*" # Recognize quotes in the pager.
+set quote_regexp="^ *[a-zA-Z]*[>|][>:|]*" # Recognize quotes in the pager.
set read_inc=50 # Progress indicator when reading folders.
set recall=ask-no # When I say "compose", ask me whether I want to continue
# composing a postponed message.
set nowait_key # Return immediately from external programs
set forward_format="[fwd] %s (from: %a)" # A different subject for forwarded messages
set nobeep # Shut up. ;-)
-set reply_regex="^((re([\\[0-9\\]+])*|aw):[ \t]*)+[ \t]*" # A regular expression to detect replies
+set reply_regexp="^((re([\\[0-9\\]+])*|aw):[ \t]*)+[ \t]*" # A regular expression to detect replies
set header # Include the message header when replying.
set ignore_list_reply_to # Ignore Reply-To headers pointing to mailing lists.
set norfc2047_parameters # Sometimes, I get mails which use a bogus encoding for
<anchor id="toggle-quoted" />(default: T)</term>
<listitem>
<para>The pager uses the
- <link linkend="quote-regex">$quote_regex</link> variable to
+ <link linkend="quote-regexp">$quote_regexp</link> variable to
detect quoted text when displaying the body of the message. This
function toggles the display of the quoted material in the
message. It is particularly useful when being interested in just
</listitem>
<listitem>
<para>quoted (text matching
- <link linkend="quote-regex">$quote_regex</link> in the body of a
+ <link linkend="quote-regexp">$quote_regexp</link> in the body of a
message)</para>
</listitem>
<listitem>
certain keyword but there are no attachments added. This is meant to
ensure that the user does not forget to attach a file after promising
to do so in the mail. The attachment keyword will not be scanned in
- text matched by <link linkend="quote-regex">$quote_regex</link>.
+ text matched by <link linkend="quote-regexp">$quote_regexp</link>.
</para>
</sect2>
\ pgp_mime_signature_description pgp_mime_signature_filename pgp_sign_as
\ pgp_sort_keys pipe_sep pop_authenticators pop_host pop_pass pop_user
\ post_indent_string postpone_encrypt_as postponed preconnect
- \ print_command query_command quote_regex realname record
- \ reply_regex send_charset sendmail shell sidebar_delim sidebar_delim_chars
+ \ print_command query_command quote_regexp realname record
+ \ reply_regexp send_charset sendmail shell sidebar_delim sidebar_delim_chars
\ sidebar_divider_char sidebar_format sidebar_indent_string sidebar_sort_method
\ signature simple_search smileys smime_ca_location smime_certificates
\ smime_default_key smime_encrypt_with smime_keys
if (parse_regex(idx, &tmp, &err2))
{
- /* $reply_regex and $alternates require special treatment */
+ /* $reply_regexp and $alternates require special treatment */
if (Context && Context->msgcount &&
- (mutt_strcmp(MuttVars[idx].option, "reply_regex") == 0))
+ (mutt_strcmp(MuttVars[idx].option, "reply_regexp") == 0))
{
regmatch_t pmatch[1];
if (CUR_ENV && CUR_ENV->subject)
{
CUR_ENV->real_subj =
- (regexec(ReplyRegex.regex, CUR_ENV->subject, 1, pmatch, 0)) ?
+ (regexec(ReplyRegexp.regex, CUR_ENV->subject, 1, pmatch, 0)) ?
CUR_ENV->subject :
CUR_ENV->subject + pmatch[0].rm_eo;
}
}
if (option(OPT_ATTACH_MSG) &&
- (mutt_strcmp(MuttVars[idx].option, "reply_regex") == 0))
+ (mutt_strcmp(MuttVars[idx].option, "reply_regexp") == 0))
{
snprintf(err->data, err->dsize,
"Operation not permitted when in attach-message mode.");
mutt_extract_token(tmp, s, 0);
if (parse_regex(idx, tmp, err))
- /* $reply_regex and $alternates require special treatment */
+ /* $reply_regexp and $alternates require special treatment */
if (Context && Context->msgcount &&
- (mutt_strcmp(MuttVars[idx].option, "reply_regex") == 0))
+ (mutt_strcmp(MuttVars[idx].option, "reply_regexp") == 0))
{
regmatch_t pmatch[1];
int i;
if (CUR_ENV && CUR_ENV->subject)
{
CUR_ENV->real_subj =
- (regexec(ReplyRegex.regex, CUR_ENV->subject, 1, pmatch, 0)) ?
+ (regexec(ReplyRegexp.regex, CUR_ENV->subject, 1, pmatch, 0)) ?
CUR_ENV->subject :
CUR_ENV->subject + pmatch[0].rm_eo;
}
** have no effect, and if it is set to \fIask-yes\fP or \fIask-no\fP, you are
** prompted for confirmation when you try to quit.
*/
- { "quote_regex", DT_REGEX, R_PAGER, UL &QuoteRegex, UL "^([ \t]*[|>:}#])+" },
+ { "quote_regexp", DT_REGEX, R_PAGER, UL &QuoteRegexp, UL "^([ \t]*[|>:}#])+" },
/*
** .pp
** A regular expression used in the internal pager to determine quoted
** .pp
** Also see $$wrap.
*/
- { "reply_regex", DT_REGEX, R_INDEX|R_RESORT, UL &ReplyRegex, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
+ { "reply_regexp", DT_REGEX, R_INDEX|R_RESORT, UL &ReplyRegexp, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
/*
** .pp
** A regular expression used to recognize reply messages when threading
/*
** .pp
** The \fIpager\fP uses this variable to catch some common false
- ** positives of $$quote_regex, most notably smileys and not consider
+ ** positives of $$quote_regexp, most notably smileys and not consider
** a line quoted text if it also matches $$smileys. This mostly
** happens at the beginning of a line.
*/
};
WHERE struct Regex Mask;
-WHERE struct Regex QuoteRegex;
-WHERE struct Regex ReplyRegex;
+WHERE struct Regex QuoteRegexp;
+WHERE struct Regex ReplyRegexp;
WHERE struct Regex Smileys;
WHERE struct Regex GecosMask;
}
else if (check_sig(buf, line_info, n - 1) == 0)
line_info[n].type = MT_COLOR_SIGNATURE;
- else if (regexec((regex_t *) QuoteRegex.regex, buf, 1, pmatch, 0) == 0)
+ else if (regexec((regex_t *) QuoteRegexp.regex, buf, 1, pmatch, 0) == 0)
{
if (regexec((regex_t *) Smileys.regex, buf, 1, smatch, 0) == 0)
{
c = buf[smatch[0].rm_so];
buf[smatch[0].rm_so] = 0;
- if (regexec((regex_t *) QuoteRegex.regex, buf, 1, pmatch, 0) == 0)
+ if (regexec((regex_t *) QuoteRegexp.regex, buf, 1, pmatch, 0) == 0)
{
if (q_classify && line_info[n].quote == NULL)
line_info[n].quote = classify_quote(quote_list, buf + pmatch[0].rm_so,
(*last)--;
goto out;
}
- if (regexec((regex_t *) QuoteRegex.regex, (char *) fmt, 1, pmatch, 0) != 0)
+ if (regexec((regex_t *) QuoteRegexp.regex, (char *) fmt, 1, pmatch, 0) != 0)
goto out;
(*line_info)[n].quote =
classify_quote(quote_list, (char *) fmt + pmatch[0].rm_so,
rfc2047_decode(&e->subject);
- if (regexec(ReplyRegex.regex, e->subject, 1, pmatch, 0) == 0)
+ if (regexec(ReplyRegexp.regex, e->subject, 1, pmatch, 0) == 0)
e->real_subj = e->subject + pmatch[0].rm_eo;
else
e->real_subj = e->subject;
while (!feof(attf))
{
fgets(inputline, LONG_STRING, attf);
- if (regexec(QuoteRegex.regex, inputline, 0, NULL, 0) != 0 &&
+ if (regexec(QuoteRegexp.regex, inputline, 0, NULL, 0) != 0 &&
regexec(AttachKeyword.regex, inputline, 0, NULL, 0) == 0)
{
found = 1;