summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-09-26 10:33:09 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-09-26 10:33:09 +0000
commita6d921f52dc66a0720f9908f462139f83f69646c (patch)
tree5c7320ab8fc1d8fccbbf2fa2e12caa334a094389 /attach.c
parent2e6bdb2e203b2035f224fceaea0391f21b16fd7c (diff)
Fix inconsistencies between printing and displaying of
message/rfc822 body parts.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/attach.c b/attach.c
index 2cccafbb..d68e5220 100644
--- a/attach.c
+++ b/attach.c
@@ -543,7 +543,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr,
/* Use built-in handler */
set_option (OPTVIEWATTACH); /* disable the "use 'v' to view this part"
* message in case of error */
- if (mutt_decode_save_attachment (fp, a, pagerfile, 1, 0))
+ if (mutt_decode_save_attachment (fp, a, pagerfile, M_DISPLAY, 0))
{
unset_option (OPTVIEWATTACH);
goto return_error;
@@ -801,7 +801,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 = displaying;
if (flags == M_SAVE_APPEND)
s.fpout = fopen (path, "a");
@@ -981,7 +981,7 @@ int mutt_print_attachment (FILE *fp, BODY *a)
fpout = NULL;
mutt_mktemp (newfile);
- if (mutt_decode_save_attachment (fp, a, newfile, 0, 0) == 0)
+ if (mutt_decode_save_attachment (fp, a, newfile, M_PRINTING, 0) == 0)
{
dprint (2, (debugfile, "successfully decoded %s type attachment to %s\n",