summaryrefslogtreecommitdiffstats
path: root/rfc2045/rfc2045acchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc2045/rfc2045acchk.c')
-rw-r--r--rfc2045/rfc2045acchk.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/rfc2045/rfc2045acchk.c b/rfc2045/rfc2045acchk.c
index 9632d07..734db17 100644
--- a/rfc2045/rfc2045acchk.c
+++ b/rfc2045/rfc2045acchk.c
@@ -123,9 +123,11 @@ int is8bitte;
rfc2045_enomem();
flag=1;
}
- else if (rwmode == RFC2045_RW_8BIT &&
- strcasecmp(te, "quoted-printable") == 0 &&
- !p->haslongline)
+ else if (strcasecmp(te, "quoted-printable") == 0 &&
+ ((rwmode == RFC2045_RW_8BIT &&
+ !p->haslongline)
+ ||
+ (rwmode == RFC2045_RW_8BIT_ALWAYS)))
{
if (p->rw_transfer_encoding)
free(p->rw_transfer_encoding);