Navigation Menu

Skip to content

Commit

Permalink
Fix debug message for mutt_adr_is_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Roessler committed Mar 28, 2007
1 parent 92cbd01 commit d75a709
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions alias.c
Expand Up @@ -534,51 +534,51 @@ int mutt_addr_is_user (ADDRESS *addr)
/* NULL address is assumed to be the user. */ /* NULL address is assumed to be the user. */
if (!addr) if (!addr)
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, NULL address\n")); dprint (5, (debugfile, "mutt_addr_is_user: yes, NULL address\n"));
return 1; return 1;
} }
if (!addr->mailbox) if (!addr->mailbox)
{ {
dprint (5, (debugfile, "mail_addr_is_user: no, no mailbox\n")); dprint (5, (debugfile, "mutt_addr_is_user: no, no mailbox\n"));
return 0; return 0;
} }


if (ascii_strcasecmp (addr->mailbox, Username) == 0) if (ascii_strcasecmp (addr->mailbox, Username) == 0)
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s = %s\n", addr->mailbox, Username)); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s\n", addr->mailbox, Username));
return 1; return 1;
} }
if (string_is_address(addr->mailbox, Username, Hostname)) if (string_is_address(addr->mailbox, Username, Hostname))
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, Hostname)); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, Hostname));
return 1; return 1;
} }
if (string_is_address(addr->mailbox, Username, mutt_fqdn(0))) if (string_is_address(addr->mailbox, Username, mutt_fqdn(0)))
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, mutt_fqdn (0))); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, mutt_fqdn (0)));
return 1; return 1;
} }
if (string_is_address(addr->mailbox, Username, mutt_fqdn(1))) if (string_is_address(addr->mailbox, Username, mutt_fqdn(1)))
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, mutt_fqdn (1))); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, mutt_fqdn (1)));
return 1; return 1;
} }


if (From && !ascii_strcasecmp (From->mailbox, addr->mailbox)) if (From && !ascii_strcasecmp (From->mailbox, addr->mailbox))
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s = %s\n", addr->mailbox, From->mailbox)); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s\n", addr->mailbox, From->mailbox));
return 1; return 1;
} }


if (mutt_match_rx_list (addr->mailbox, Alternates)) if (mutt_match_rx_list (addr->mailbox, Alternates))
{ {
dprint (5, (debugfile, "mail_addr_is_user: yes, %s matched by alternates.\n", addr->mailbox)); dprint (5, (debugfile, "mutt_addr_is_user: yes, %s matched by alternates.\n", addr->mailbox));
if (mutt_match_rx_list (addr->mailbox, UnAlternates)) if (mutt_match_rx_list (addr->mailbox, UnAlternates))
dprint (5, (debugfile, "mail_addr_is_user: but, %s matched by unalternates.\n", addr->mailbox)); dprint (5, (debugfile, "mutt_addr_is_user: but, %s matched by unalternates.\n", addr->mailbox));
else else
return 1; return 1;
} }


dprint (5, (debugfile, "mail_addr_is_user: no, all failed.\n")); dprint (5, (debugfile, "mutt_addr_is_user: no, all failed.\n"));
return 0; return 0;
} }

0 comments on commit d75a709

Please sign in to comment.