summaryrefslogtreecommitdiffstats
path: root/rfc2045/rfc2045.h
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/rfc2045.h
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/rfc2045.h')
-rw-r--r--rfc2045/rfc2045.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/rfc2045/rfc2045.h b/rfc2045/rfc2045.h
index ddfab1f..c7e2a62 100644
--- a/rfc2045/rfc2045.h
+++ b/rfc2045/rfc2045.h
@@ -69,9 +69,22 @@ struct rfc2045 {
char *rw_transfer_encoding; /* For rewriting */
+ /* Use quoted-printable for 8bit content */
#define RFC2045_RW_7BIT 1
+
+ /*
+ ** Convert quoted-printable, if the resulting line length is not
+ ** excessive.
+ */
+
#define RFC2045_RW_8BIT 2
+ /*
+ ** Convert quoted printable without checking for maximum resulting
+ ** line length.
+ */
+#define RFC2045_RW_8BIT_ALWAYS 3
+
/* Subsections */
struct rfc2045 *firstpart, *lastpart;