X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=a14b47177ca340b7152b4044e40e482894bad732;hp=edc09da13f866a4a308d9df6b9a6803b20296fd7;hb=85832555b8d510499b13bc454e458382d36e195d;hpb=5e6273c09929249ee7a850934bf12fd03439d923 diff --git a/commands.c b/commands.c index edc09da..a14b471 100644 --- a/commands.c +++ b/commands.c @@ -17,12 +17,13 @@ #include #include +#include + #include "mutt.h" #include "enter.h" #include "recvattach.h" #include "mutt_curses.h" #include "mutt_menu.h" -#include "mime.h" #include "sort.h" #include "copy.h" #include "mx.h" @@ -243,7 +244,7 @@ void ci_bounce_message (HEADER * h, int *redraw) { char prompt[SHORT_STRING]; char buf[HUGE_STRING] = { 0 }; - ADDRESS *adr = NULL; + address_t *adr = NULL; char *err = NULL; int rc; @@ -273,7 +274,7 @@ void ci_bounce_message (HEADER * h, int *redraw) if (mutt_addrlist_to_idna (adr, &err) < 0) { mutt_error (_("Bad IDN: '%s'"), err); p_delete(&err); - rfc822_free_address (&adr); + address_delete (&adr); return; } @@ -294,7 +295,7 @@ void ci_bounce_message (HEADER * h, int *redraw) } if (query_quadoption (OPT_BOUNCE, prompt) != M_YES) { - rfc822_free_address (&adr); + address_delete (&adr); CLEARLINE (LINES - 1); mutt_message (h ? _("Message not bounced.") : _("Messages not bounced.")); return; @@ -303,7 +304,7 @@ void ci_bounce_message (HEADER * h, int *redraw) CLEARLINE (LINES - 1); rc = mutt_bounce_message (NULL, h, adr); - rfc822_free_address (&adr); + address_delete (&adr); /* If no error, or background, display message. */ if ((rc == 0) || (rc == S_BKG)) mutt_message (h ? _("Message bounced.") : _("Messages bounced.")); @@ -595,7 +596,7 @@ void mutt_display_address (ENVELOPE * env) { const char *pfx = NULL; char buf[SHORT_STRING]; - ADDRESS *adr = NULL; + address_t *adr = NULL; adr = mutt_get_address(env, &pfx); @@ -858,7 +859,7 @@ void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp) for (p = b->parameter; p; p = p->next) { l = m_strlen(buf); - rfc822_cat (tmp, sizeof (tmp), p->value, MimeSpecials); + rfc822_strcpy(tmp, sizeof(tmp), p->value, MimeSpecials); snprintf (buf + l, sizeof (buf) - l, "; %s=%s", p->attribute, tmp); } }