summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-10-03 07:46:20 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-10-03 07:46:20 +0000
commita615f0f42827f7b4dfa7c94702ba4d02fc505b33 (patch)
treee5f3503932d627522ebd6e33eb74ec7cf5dbad0e /hdrline.c
parent5b7b30938e87bf11eadc584da90b47f2d40d50e7 (diff)
Adding a list flag to to_chars, From Andreas Plesner Jacobsen
<apj@wol.dk>. Note: If you don't like the new behaviour, just set $to_chars to the old " +TCF" value.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c5
1 files changed, 5 insertions, 0 deletions
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;
}