From: Thomas Roessler Date: Tue, 4 Mar 2003 07:45:45 +0000 (+0000) Subject: Fixing more IDN bugs. X-Git-Tag: mutt-1-5-4-rel~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dfa0a0e789be1a31ea6da61f1be73218b7ba903;p=mutt Fixing more IDN bugs. --- diff --git a/addrbook.c b/addrbook.c index 627c4704..54a92428 100644 --- a/addrbook.c +++ b/addrbook.c @@ -21,6 +21,8 @@ #include "mapping.h" #include "sort.h" +#include "mutt_idna.h" + #include #include #include @@ -222,13 +224,17 @@ new_aliases: { if (AliasTable[i]->tagged) { + mutt_addrlist_to_local (AliasTable[i]->addr); rfc822_write_address (buf, buflen, AliasTable[i]->addr, 0); t = -1; } } if(t != -1) + { + mutt_addrlist_to_local (AliasTable[t]->addr); rfc822_write_address (buf, buflen, AliasTable[t]->addr, 0); + } mutt_menuDestroy (&menu); FREE (&AliasTable); diff --git a/alias.c b/alias.c index b605e20b..990df959 100644 --- a/alias.c +++ b/alias.c @@ -265,11 +265,15 @@ retry_name: new->self = new; new->name = safe_strdup (buf); + mutt_addrlist_to_local (adr); + if (adr) strfcpy (buf, adr->mailbox, sizeof (buf)); else buf[0] = 0; + mutt_addrlist_to_idna (adr, NULL); + do { if (mutt_get_field (_("Address: "), buf, sizeof (buf), 0) != 0 || !buf[0]) diff --git a/send.c b/send.c index b9452334..f0d5a64b 100644 --- a/send.c +++ b/send.c @@ -1432,7 +1432,10 @@ main_loop: { mutt_error (_("Bad IDN in \"%s\": '%s'"), tag, err); FREE (&err); - goto main_loop; + if (!(flags & SENDBATCH)) + goto main_loop; + else + goto cleanup; } if (!msg->env->subject && ! (flags & SENDBATCH) &&