diff options
author | TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp> | 2005-02-12 19:12:40 +0000 |
---|---|---|
committer | TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp> | 2005-02-12 19:12:40 +0000 |
commit | 42197dd7b1679441037eb736a62a22a0842a48c3 (patch) | |
tree | acc467adc7794aa816fd912d520add5596b54538 /hdrline.c | |
parent | f252c537b681f46d45026a7a1672012bae37f9de (diff) |
unalternates now also adds to a list of exceptions; same behavior
for unlists, and unsubscribe. With some changes from tlr.
Diffstat (limited to 'hdrline.c')
-rw-r--r-- | hdrline.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -34,12 +34,17 @@ int mutt_is_mail_list (ADDRESS *addr) { - return mutt_match_rx_list (addr->mailbox, MailLists); + if (!mutt_match_rx_list (addr->mailbox, UnMailLists)) + return mutt_match_rx_list (addr->mailbox, MailLists); + return 0; } int mutt_is_subscribed_list (ADDRESS *addr) { - return mutt_match_rx_list (addr->mailbox, SubscribedLists); + if (!mutt_match_rx_list (addr->mailbox, UnMailLists) + && !mutt_match_rx_list (addr->mailbox, UnSubscribedLists)) + return mutt_match_rx_list (addr->mailbox, SubscribedLists); + return 0; } /* Search for a mailing list in the list of addresses pointed to by adr. |