From: Thomas Roessler Date: Tue, 3 Oct 2000 07:46:20 +0000 (+0000) Subject: Adding a list flag to to_chars, From Andreas Plesner Jacobsen X-Git-Tag: mutt-1-3-10-rel~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a615f0f42827f7b4dfa7c94702ba4d02fc505b33;p=mutt Adding a list flag to to_chars, From Andreas Plesner Jacobsen . Note: If you don't like the new behaviour, just set $to_chars to the old " +TCF" value. --- diff --git a/hdrline.c b/hdrline.c index 9bc82301..989e1c9d 100644 --- a/hdrline.c +++ b/hdrline.c @@ -168,6 +168,7 @@ static int user_in_addr (ADDRESS *a) * 2: user is in the TO list * 3: user is in the CC list * 4: user is originator + * 5: sent to a subscribed mailinglist */ int mutt_user_is_recipient (HEADER *h) { @@ -188,6 +189,10 @@ int mutt_user_is_recipient (HEADER *h) } else if (user_in_addr (env->cc)) h->recipient = 3; + else if (check_for_mailing_list (env->to, NULL, NULL, 0)) + h->recipient = 5; + else if (check_for_mailing_list (env->cc, NULL, NULL, 0)) + h->recipient = 5; else h->recipient = 0; } diff --git a/init.h b/init.h index 4c36c335..20ba1101 100644 --- a/init.h +++ b/init.h @@ -2032,7 +2032,7 @@ struct option_t MuttVars[] = { ** This variable allows you to specify where Mutt will place its ** temporary files needed for displaying and composing messages. */ - { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCF" }, + { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCFL" }, /* ** .pp ** Controls the character used to indicate mail addressed to you. The @@ -2043,7 +2043,8 @@ struct option_t MuttVars[] = { ** the message (default: T). The fourth character is used when your ** address is specified in the CC header field, but you are not the only ** recipient. The fifth character is used to indicate mail that was sent - ** by \fIyou\fP. + ** by \fIyou\fP. The sixth character is used to indicate when a mail + ** was sent to a mailing-list you subscribe to (default: L). */ { "use_8bitmime", DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 }, /*