summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-01 16:18:38 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-01 16:18:38 +0000
commitc90089f7b9945077eff4caf0bbac38793c2675d1 (patch)
tree574759c48fd4b3a69589efef5e0d885bf6b20fa9 /handler.c
parent866d3f573d16d9689c8ef98e4deba52d86698e18 (diff)
Gero Treuner's reply_quote patch.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/handler.c b/handler.c
index 0875b6a2..b6c48ca0 100644
--- a/handler.c
+++ b/handler.c
@@ -89,8 +89,7 @@ void mutt_decode_xbit (STATE *s, BODY *b, int istext)
else
map = mutt_get_translation(charset, Charset);
- if(s->prefix)
- state_puts(s->prefix, s);
+ state_set_prefix(s);
while ((c = fgetc(s->fpin)) != EOF && len--)
{
@@ -108,6 +107,8 @@ void mutt_decode_xbit (STATE *s, BODY *b, int istext)
state_maybe_utf8_putc(s, c, is_utf8, chs, map);
}
+ state_reset_prefix(s);
+
if(is_utf8)
state_fput_utf8(s, '\0', chs);
@@ -145,7 +146,7 @@ void mutt_decode_quoted (STATE *s, BODY *b, int istext)
map = mutt_get_translation(charset, Charset);
}
- if(s->prefix) state_puts(s->prefix, s);
+ state_set_prefix(s);
while (len > 0)
{
@@ -203,6 +204,8 @@ void mutt_decode_quoted (STATE *s, BODY *b, int istext)
state_maybe_utf8_putc(s, ch, is_utf8, chs, map);
}
+ state_reset_prefix(s);
+
if(is_utf8)
state_fput_utf8(s, '\0', chs);
}
@@ -227,7 +230,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
buf[4] = 0;
- if (s->prefix && istext) state_puts (s->prefix, s);
+ if (istext) state_set_prefix(s);
while (len > 0)
{
@@ -282,6 +285,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
else
state_maybe_utf8_putc(s, ch, is_utf8, chs, map);
}
+ state_reset_prefix(s);
}
/* ----------------------------------------------------------------------------