Michael Brunnbauer writes:

Here we go. In violation of RFC such and such, make original messages readable
by normal mail clients:

diff -ru courier-imap-5.0.6.orig/libs/imap/pop3dserver.c courier- imap-5.0.6/libs/imap/pop3dserver.c --- courier-imap-5.0.6.orig/libs/imap/pop3dserver.c 2019-01-30 13:08:06.000000000 +0100 +++ courier-imap-5.0.6/libs/imap/pop3dserver.c 2019-02-07 17:21:58.000000000 +0100
@@ -666,7 +666,7 @@
        "The original message is included as a separate attachment\n"   \
        "so that it can be downloaded manually.\n\n"                    \
        "--%s\n"                                                        \
-       "Content-Type: message/global\n\n"
+       "Content-Type: message/rfc822\n\n"

 struct retr_source {
        char *wrapheader;
diff -ru courier-imap-5.0.6.orig/libs/rfc2045/rfc2045.h courier- imap-5.0.6/libs/rfc2045/rfc2045.h --- courier-imap-5.0.6.orig/libs/rfc2045/rfc2045.h 2018-07-31 10:00:08.000000000 +0200 +++ courier-imap-5.0.6/libs/rfc2045/rfc2045.h 2019-02-07 17:21:36.000000000 +0100
@@ -23,7 +23,7 @@
 #endif

 #define RFC2045_MIME_MESSAGE_RFC822 "message/rfc822"
-#define RFC2045_MIME_MESSAGE_GLOBAL "message/global"
+#define RFC2045_MIME_MESSAGE_GLOBAL "message/rfc822"

 #define RFC2045_MIME_MESSAGE_DELIVERY_STATUS "message/delivery-status"
 #define RFC2045_MIME_MESSAGE_GLOBAL_DELIVERY_STATUS \

It should not be too complicated to make this a configurable option, in order to have to keep carrying this patch, going forward…


Attachment: pgpUe2h0_UnpU.pgp
Description: PGP signature

_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to