Hi,
sorry for returning for this so discussed matter.
In the patch below I suggest that there is NO change in the behavior of
Courier related to email servers that violates RFC2045 EXCEPT if the
environment variable IGNORE_RFC2045 is set to '1'.
So for those who must accept these messages without the rewrite the they
just need to add this line to "esmtpd" configuration file:
IGNORE_RFC2045=1
I repeat that there will be no change in how Courier deal with these
messages unless this line is added.
This simple patch changes only 4 lines in the code and will prevent a
recompilation for many people.
Marcus
--------------------------------------------------------------------
--- courier-0.37.0/courier/submit2.C Sat Dec 15 19:19:01 2001
+++ courier-0.37.0.patch/courier/submit2.C Tue Jan 15 21:51:53 2002
@@ -777,6 +777,8 @@
{
int is8bit=0, dorewrite=0, rwmode=0;
const char *mime=getenv("MIME");
+const char *ign=getenv("IGNORE_RFC2045");
+const int ignore_rfc2045=(ign && *ign=='1'?1:0);
unsigned n;
struct stat stat_buf;
const char *rfcerr=NULL;
@@ -800,12 +802,12 @@
return (1);
}
- if (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER)
+ if (!ignore_rfc2045 && (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER))
{
rfcerr= SYSCONFDIR "/rfcerr2047.txt";
dorewrite=1;
}
- else if (rwrfcptr->rfcviolation & RFC2045_ERR8BITCONTENT)
+ else if (!ignore_rfc2045 && (rwrfcptr->rfcviolation &
RFC2045_ERR8BITCONTENT))
{
rfcerr= SYSCONFDIR "/rfcerr2045.txt";
dorewrite=1;
----------------------------------------------------------------------------
--
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users