]> granicus.if.org Git - mutt/commitdiff
Adding a list flag to to_chars, From Andreas Plesner Jacobsen
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Oct 2000 07:46:20 +0000 (07:46 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Oct 2000 07:46:20 +0000 (07:46 +0000)
<apj@wol.dk>.  Note: If you don't like the new behaviour, just set
$to_chars to the old " +TCF" value.

hdrline.c
init.h

index 9bc823012df81f50b6b1dd2dd61bffb0c3c6ac0e..989e1c9d0eb367e26491096782b6960fc570e42a 100644 (file)
--- 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 4c36c33595868acec5b9fe00ba00b62df7bfdfc5..20ba1101e8c9bb7d1a04d2806d0ff0ffdd98d7d9 100644 (file)
--- 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 },
   /*