X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=0178db0de877ed19581d577d4a8aa77b58455136;hp=e92b825374bd4c76ef484b2debd32933381f52dd;hb=2a2f2f9a5bad73c883b7f9c9b4166d932b6aaf37;hpb=c65e926c6633e7247003bfc8e484a9a2179a5497 diff --git a/sendlib.c b/sendlib.c index e92b825..0178db0 100644 --- a/sendlib.c +++ b/sendlib.c @@ -370,7 +370,8 @@ int mutt_write_mime_header (BODY * a, FILE * f) int mutt_write_mime_body (BODY * a, FILE * f) { - char *p, boundary[SHORT_STRING]; + const char *p; + char boundary[SHORT_STRING]; char send_charset[SHORT_STRING]; FILE *fpin; BODY *t; @@ -378,7 +379,7 @@ int mutt_write_mime_body (BODY * a, FILE * f) if (a->type == TYPEMULTIPART) { /* First, find the boundary to use */ - if (!(p = mutt_get_parameter ("boundary", a->parameter))) { + if (!(p = parameter_getval(a->parameter, "boundary"))) { mutt_error _("No boundary parameter found! [report this error]"); return (-1); @@ -820,7 +821,7 @@ CONTENT *mutt_get_content_info (const char *fname, BODY * b) p_clear(&state, 1); if (b != NULL && b->type == TYPETEXT && (!b->noconv && !b->force_charset)) { - char *chs = mutt_get_parameter ("charset", b->parameter); + const char *chs = parameter_getval(b->parameter, "charset"); char *fchs = b->use_disp ? ((FileCharset && *FileCharset) ? FileCharset : Charset) : Charset; if (Charset && (chs || SendCharset) && @@ -1128,16 +1129,16 @@ void mutt_stamp_attachment (BODY * a) char *mutt_get_body_charset (char *d, ssize_t dlen, BODY * b) { - char *p = NULL; + const char *p = NULL; if (b && b->type != TYPETEXT) return NULL; if (b) - p = mutt_get_parameter ("charset", b->parameter); + p = parameter_getval(b->parameter, "charset"); if (p) - charset_canonicalize (d, dlen, NONULL (p)); + charset_canonicalize (d, dlen, p); else m_strcpy(d, dlen, "us-ascii");