Rocco Rutte:
[apps/madmutt.git] / alias.c
diff --git a/alias.c b/alias.c
index 1da1582..5d83357 100644 (file)
--- a/alias.c
+++ b/alias.c
  *     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"));