X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_idna.c;h=bc7a976a2736fd8b36fa26badbd5305a80857c79;hp=9a3fbb465cd9b7bae84710d1903945eab1908064;hb=fedbb0047287e63c53cc911b668ae6212f59b846;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/mutt_idna.c b/mutt_idna.c index 9a3fbb4..bc7a976 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -16,7 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ -#include "config.h" +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "charset.h" #include "mutt_idna.h" @@ -43,6 +46,9 @@ int mutt_idna_to_local (const char *in, char **out, int flags) { *out = NULL; + if (!option (OPTUSEIDN)) + goto notrans; + if (!in) goto notrans; @@ -54,7 +60,8 @@ int mutt_idna_to_local (const char *in, char **out, int flags) /* * make sure that we can convert back and come out with the same - * domain name. */ + * domain name. + */ if ((flags & MI_MAY_BE_IRREVERSIBLE) == 0) {