summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-06-13 01:08:01 +0200
committerRocco Rutte <pdmef@gmx.net>2009-06-13 01:08:01 +0200
commite85a61d88857e2e00aabf2ea5aa1ae3eff651b78 (patch)
tree95a18dd96407506e9d723c2bb8f206779f10e535 /handler.c
parent7d83f6df09d352b0ba58efad5de722c69c81cbe5 (diff)
Rewrite header folding
We now distinct between sending and display case. For display, we always use tabs for folding for readability; for sending we now correctly fold using whitespace found in the header. Closes #2995. Closes #3080.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/handler.c b/handler.c
index 37810221..57dab0f4 100644
--- a/handler.c
+++ b/handler.c
@@ -1089,7 +1089,8 @@ static int message_handler (BODY *a, STATE *s)
{
mutt_copy_hdr (s->fpin, s->fpout, off_start, b->parts->offset,
(((s->flags & M_WEED) || ((s->flags & (M_DISPLAY|M_PRINTING)) && option (OPTWEED))) ? (CH_WEED | CH_REORDER) : 0) |
- (s->prefix ? CH_PREFIX : 0) | CH_DECODE | CH_FROM, s->prefix);
+ (s->prefix ? CH_PREFIX : 0) | CH_DECODE | CH_FROM |
+ (s->flags & M_DISPLAY) ? CH_DISPLAY : 0, s->prefix);
if (s->prefix)
state_puts (s->prefix, s);
@@ -1424,7 +1425,7 @@ static int external_body_handler (BODY *b, STATE *s)
mutt_copy_hdr(s->fpin, s->fpout, ftello (s->fpin), b->parts->offset,
(option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) |
- CH_DECODE, NULL);
+ CH_DECODE | CH_DISPLAY, NULL);
}
}
else
@@ -1441,7 +1442,7 @@ static int external_body_handler (BODY *b, STATE *s)
access_type);
mutt_copy_hdr (s->fpin, s->fpout, ftello (s->fpin), b->parts->offset,
(option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) |
- CH_DECODE , NULL);
+ CH_DECODE | CH_DISPLAY, NULL);
}
}