X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=3d5f39c42f146a23f22218b8b136c1f6b68986d8;hp=f94fe4c5a597c0e96f5b7f4cc1230b4a7945316c;hb=871a94fc21c9d349bb0fe8851e0f2e3a07527ed5;hpb=91d0c04349c9345f0ee29a61cc18dfc144b60edc diff --git a/compose.c b/compose.c index f94fe4c..3d5f39c 100644 --- a/compose.c +++ b/compose.c @@ -21,13 +21,14 @@ #include #include +#include + #include "mutt.h" #include "enter.h" #include "mutt_curses.h" #include "mutt_idna.h" #include "mutt_menu.h" #include "rfc1524.h" -#include "mime.h" #include "attach.h" #include "recvattach.h" #include "sort.h" @@ -265,7 +266,7 @@ static int check_attachments (ATTACHPTR ** idx, short idxlen) return 0; } -static void draw_envelope_addr (int line, ADDRESS * addr) +static void draw_envelope_addr (int line, address_t * addr) { char buf[STRING]; @@ -319,7 +320,7 @@ static void draw_envelope (HEADER * msg, char *fcc) SETCOLOR (MT_COLOR_NORMAL); } -static int edit_address_list (int line, ADDRESS ** addr) +static int edit_address_list (int line, address_t ** addr) { char buf[HUGE_STRING] = ""; /* needs to be large for alias expansion */ char *err = NULL; @@ -327,7 +328,7 @@ static int edit_address_list (int line, ADDRESS ** addr) mutt_addrlist_to_local (*addr); rfc822_write_address (buf, sizeof (buf), *addr, 0); if (mutt_get_field (Prompts[line - 1], buf, sizeof (buf), M_ALIAS) == 0) { - rfc822_free_address (addr); + address_delete (addr); *addr = mutt_parse_adrlist (*addr, buf); *addr = mutt_expand_aliases (*addr); }