Changeset 3311:cd3774ecfa9f for compose.c
Legend:
- Unmodified
- Added
- Removed
-
compose.c
r3267 r3311 19 19 #include "mutt.h" 20 20 #include "mutt_curses.h" 21 #include "mutt_idna.h" 21 22 #include "mutt_menu.h" 22 23 #include "rfc1524.h" … … 364 365 365 366 buf[0] = 0; 366 rfc822_write_address (buf, sizeof (buf), addr );367 rfc822_write_address (buf, sizeof (buf), addr, 1); 367 368 mvprintw (line, 0, TITLE_FMT, Prompts[line - 1]); 368 369 mutt_paddstr (W, buf); … … 400 401 { 401 402 char buf[HUGE_STRING] = ""; /* needs to be large for alias expansion */ 402 403 rfc822_write_address (buf, sizeof (buf), *addr); 403 char *err = NULL; 404 405 mutt_addrlist_to_local (*addr); 406 rfc822_write_address (buf, sizeof (buf), *addr, 0); 404 407 if (mutt_get_field (Prompts[line - 1], buf, sizeof (buf), M_ALIAS) == 0) 405 408 { … … 415 418 } 416 419 420 if (mutt_addrlist_to_idna (*addr, &err) != 0) 421 { 422 mutt_error (_("Warning: '%s' is a bad IDN."), err); 423 mutt_refresh(); 424 FREE (&err); 425 } 426 417 427 /* redraw the expanded list so the user can see the result */ 418 428 buf[0] = 0; 419 rfc822_write_address (buf, sizeof (buf), *addr );429 rfc822_write_address (buf, sizeof (buf), *addr, 1); 420 430 move (line, HDR_XOFFSET); 421 431 mutt_paddstr (W, buf); 422 432 423 433 return 0; 424 434 } … … 693 703 (op == OP_COMPOSE_EDIT_MESSAGE && option (OPTEDITHDRS))) 694 704 { 705 char *tag = NULL, *err = NULL; 706 mutt_env_to_local (msg->env); 695 707 mutt_edit_headers (NONULL (Editor), msg->content->filename, msg, 696 708 fcc, fcclen); 709 if (mutt_env_to_idna (msg->env, &tag, &err)) 710 { 711 mutt_error (_("Bad IDN in \"%s\": '%s'"), tag, err); 712 FREE (&err); 713 } 697 714 } 698 715 else
