X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.c;h=5d833571191bf89d6ed7d2444484ac51a9bc1f18;hp=1da1582ec9df156f9881623951ddc2908b25ac36;hb=f404a0ca916be07049af51a3022baaaaab94def6;hpb=0c528da3f6976cfef3d729d9cd66bd8f265a4060 diff --git a/alias.c b/alias.c index 1da1582..5d83357 100644 --- a/alias.c +++ b/alias.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_regex.h" #include "mutt_curses.h" @@ -569,7 +573,10 @@ int mutt_addr_is_user (ADDRESS *addr) if (mutt_match_rx_list (addr->mailbox, Alternates)) { dprint (5, (debugfile, "mail_addr_is_user: yes, %s matched by alternates.\n", addr->mailbox)); - return 1; + if (mutt_match_rx_list (addr->mailbox, UnAlternates)) + dprint (5, (debugfile, "mail_addr_is_user: but, %s matched by unalternates.\n", addr->mailbox)); + else + return 1; } dprint (5, (debugfile, "mail_addr_is_user: no, all failed.\n"));