+2008-06-02 09:45 +0200 Rocco Rutte <pdmef@gmx.net> (d6d04a7f5aea)
+
+ * init.c: Allow for printing variable values longer than 256
+ characters
+
+2008-06-02 09:44 +0200 Rocco Rutte <pdmef@gmx.net> (b2b844141ac1)
+
+ * ChangeLog, rfc822.c: Allow for mail addresses longer than 256
+ characters (closes #3066).
+
2008-05-30 16:14 +0200 Rocco Rutte <pdmef@gmx.net> (2f59be26ad22)
* protos.h: Define prototypes for compatibility functions in protos.h
/* returns TRUE if the given address belongs to the user. */
int mutt_addr_is_user (ADDRESS *addr)
{
+ const char *fqdn;
+
/* NULL address is assumed to be the user. */
if (!addr)
{
dprint (5, (debugfile, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, Hostname));
return 1;
}
- if (string_is_address(addr->mailbox, Username, mutt_fqdn(0)))
+ fqdn = mutt_fqdn (0);
+ if (string_is_address(addr->mailbox, Username, fqdn))
{
- dprint (5, (debugfile, "mutt_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, NONULL(fqdn)));
return 1;
}
- if (string_is_address(addr->mailbox, Username, mutt_fqdn(1)))
+ fqdn = mutt_fqdn (1);
+ if (string_is_address(addr->mailbox, Username, fqdn))
{
- dprint (5, (debugfile, "mutt_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, NONULL(fqdn)));
return 1;
}