Cyrus munges all 8 bit characters in headers, this patch provide the
ability to turn this behavior on (default off).

This may violate rfc's to send 8 bit characters, but is it wrong to receive
it (and not mangle the mail) ?

Love

Index: imap/message.c
===================================================================
RCS file: /cvs/src/cyrus/imap/message.c,v
retrieving revision 1.88
diff -u -r1.88 message.c
--- imap/message.c      2000/12/26 21:35:41     1.88
+++ imap/message.c      2001/02/25 22:58:58
@@ -229,6 +229,8 @@
     int n;
     int sawcr = 0, sawnl;
     int reject8bit = config_getswitch("reject8bit", 0);
+    int munge8bit = config_getswitch("munge8bit", 0);
+
     int inheader = 1, blankline = 1;
 
     while (size) {
@@ -264,7 +266,7 @@
                        /* We have been configured to reject all mail of this
                           form. */
                        if (!r) r = IMAP_MESSAGE_CONTAINS8BIT;
-                   } else {
+                   } else if (munge8bit) {
                        /* We have been configured to munge all mail of this
                           form. */
                        *p = 'X';

Reply via email to