summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-02 15:47:44 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-02 15:47:44 +0000
commitbe3b539741a3293ea5369c6817b2fbad28628c51 (patch)
tree6f80a6e005d49de6328e9258bb5cd1bb8248eb9b /attach.c
parent7403d5e81d9463c16c7f3ce19009460ef8816353 (diff)
Merging the external character set patch into unstable.
Additionally, this change introduces a M_CHARCONV state flag which gives us some more control about when character set conversions are actually done. Current versions of mutt would happily apply character set conversions when, e.g., saving a text/plain attachment to a file. (We had at least one corrupt russing translation file due to this mis-feature.) Additionally, we clean up some of the character set related code in handler.c. Most of that is now done by the decoder functions in charset.c.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attach.c b/attach.c
index a7dffddb..e160f115 100644
--- a/attach.c
+++ b/attach.c
@@ -768,7 +768,7 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path,
HEADER *saved_hdr = NULL;
memset (&s, 0, sizeof (s));
- s.flags = displaying ? M_DISPLAY : 0;
+ s.flags = M_CHARCONV | (displaying ? M_DISPLAY : 0);
if (flags == M_SAVE_APPEND)
s.fpout = safe_fopen (path, "a");