Improve the previous commit by checking to make sure a->noconv also
isn't set. If noconv is set, we ignore any value a->charset might
have picked up during previous encoding checks.
Co-authored-by: Richard Russon <rich@flatcap.org>
/* In send mode, use the current charset, since the message hasn't
* been converted yet. */
- if ((mutt_str_strcasecmp(param, "charset") == 0) && a->charset)
+ if ((mutt_str_strcasecmp(param, "charset") == 0) && a->charset && !a->noconv)
pvalue2 = a->charset;
else
pvalue2 = mutt_param_get(&a->parameter, param);