X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_idna.c;h=2950ff501c2ff9044615fed97243c55d90a57e7e;hp=c08f2f76d9656725adad7ac80763df96ec6f82bd;hb=8d5f74a1030b2e5e93027c91c35b7facea2d61be;hpb=c88f8ebd5e7542e4ee2ac2c24dfd5f358dbb4235 diff --git a/mutt_idna.c b/mutt_idna.c index c08f2f7..2950ff5 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -11,6 +11,10 @@ # include "config.h" #endif +#ifdef HAVE_LIBIDN +#include +#endif + #include #include #include @@ -20,8 +24,6 @@ #include "charset.h" #include "mutt_idna.h" -#include "lib/debug.h" - /* The low-level interface we use. */ #ifndef HAVE_LIBIDN @@ -71,7 +73,6 @@ int mutt_idna_to_local (const char *in, char **out, int flags) if (!irrev && idna_to_ascii_8z (tmp, &t2, 1) != IDNA_SUCCESS) irrev = 1; if (!irrev && ascii_strcasecmp (t2, in)) { - debug_print (1, ("not reversible. in = '%s', t2 = '%s'.\n", in, t2)); irrev = 1; } @@ -135,7 +136,7 @@ static int mbox_to_udomain (const char *mbx, char **user, char **domain) return 0; } -int mutt_addrlist_to_idna (address_t * a, char **err) +int mutt_addrlist_to_idna (address_t * a, const char **err) { char *user = NULL, *domain = NULL; char *tmp = NULL;