X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hdrline.c;h=7db6edeeeb6015b8bf2e8f6fd1c9d02ee54d3d7d;hp=93f3bc7cbde723da2e4155c8204401fce6ae15af;hb=09093d8501628bfba8f4f4b206c48dd3b826237f;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/hdrline.c b/hdrline.c index 93f3bc7..7db6ede 100644 --- a/hdrline.c +++ b/hdrline.c @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_curses.h" #include "sort.h" @@ -30,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. @@ -442,6 +451,18 @@ hdr_format_str (char *dest, break; #endif + case 'H': + /* (Hormel) spam score */ + if (optional) + optional = hdr->env->spam ? 1 : 0; + + if (hdr->env->spam) + mutt_format_s (dest, destlen, prefix, NONULL (hdr->env->spam->data)); + else + mutt_format_s (dest, destlen, prefix, ""); + + break; + case 'i': mutt_format_s (dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : ""); break;