X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_idna.c;h=2665f9c8b7da99989071d6a055db22fea51b83dd;hp=b8bf8fdccf47451a54a011a356a772fd712cabcc;hb=1abd265879dc5db7e9968a3b4ea7e2031e6b953e;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/mutt_idna.c b/mutt_idna.c index b8bf8fd..2665f9c 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -1,19 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2003 Thomas Roessler - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ #if HAVE_CONFIG_H @@ -24,6 +15,11 @@ #include "charset.h" #include "mutt_idna.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" +#include "lib/debug.h" + /* The low-level interface we use. */ #ifndef HAVE_LIBIDN @@ -73,10 +69,7 @@ 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)) { - dprint (1, - (debugfile, - "mutt_idna_to_local: Not reversible. in = '%s', t2 = '%s'.\n", - in, t2)); + debug_print (1, ("not reversible. in = '%s', t2 = '%s'.\n", in, t2)); irrev = 1; }