Make it clearer what BODY->charset is used for, and why we are
checking for !noconv during mailcap charset parameter expansion.
Co-authored-by: Richard Russon <rich@flatcap.org>
char *d_filename; /**< filename to be used for the
content-disposition header.
* If NULL, filename is used instead. */
- char *charset; /**< charset of attached file */
+ char *charset; /**< send mode: charset of attached file as stored
+ * on disk. the charset used in the generated
+ * message is stored in parameter. */
struct Content *content; /**< structure used to store detailed info about
* the content of the attachment. this is used
* to determine what content-transfer-encoding
param[z] = '\0';
/* In send mode, use the current charset, since the message hasn't
- * been converted yet. */
+ * been converted yet. If noconv is set, then we assume the
+ * charset parameter has the correct value instead. */
if ((mutt_str_strcasecmp(param, "charset") == 0) && a->charset && !a->noconv)
pvalue2 = a->charset;
else