hi, On Thu, Feb 07, 2019 at 05:11:25PM +0100, Michael Brunnbauer wrote: > He is not able to see the original message or any metadata about it (e.g. > who sent it). Also people might just delete those mails as spam. All of this > is > unacceptable. I guess I will have to patch the code.
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 \
cu,
brunni
--
++ Michael Brunnbauer
++ netEstate GmbH
++ Geisenhausener Straße 11a
++ 81379 München
++ Tel +49 89 32 19 77 80
++ Fax +49 89 32 19 77 89
++ E-Mail [email protected]
++ https://www.netestate.de/
++
++ Sitz: München, HRB Nr.142452 (Handelsregister B München)
++ USt-IdNr. DE221033342
++ Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel
signature.asc
Description: PGP signature
_______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
