summaryrefslogtreecommitdiffstats
path: root/rfc2045/rfc2045acchk.c
diff options
context:
space:
mode:
authorSam Varshavchik2017-12-26 07:44:38 -0500
committerSam Varshavchik2017-12-26 07:44:38 -0500
commit60586311ac65a7e1f6acb5869f5d9174d597d8c7 (patch)
tree270614d3b994c07c103a2a315a2f64b099f5189e /rfc2045/rfc2045acchk.c
parenta8d82c4d83467ac95990f229f031606464c5296f (diff)
downloadcourier-libs-60586311ac65a7e1f6acb5869f5d9174d597d8c7.tar.bz2
Fix maildirmake and reformime bugs.
2017-12-26 Sam Varshavchik <mrsam@courier-mta.com> * libs/maildir/maildirmake.c (main): maildirmake's -q option will create the maildir if it does not exist. * libs/rfc2045/reformime.c (main2): Added -rU option, and a new internal RFC2045_RW_8BIT_ALWAYS conversion option. * libs/rfc2045/reformime.c (main2): Fix crash when the -s option is not valid.
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);