On Sat, Dec 07, 2002 at 12:22:17PM +0300, Alexei Batyr' wrote:
> Andrey Ulanov wrote on Friday, December 06, 2002 7:14 PM [GMT+0400]:
> > On Fri, Dec 06, 2002 at 03:25:36PM +0300, Alexei Batyr' wrote:
> >> Andrey Ulanov wrote on Friday, December 06, 2002 1:31 PM [GMT+0400]:
> >>> On Fri, Dec 06, 2002 at 12:04:13PM +0300, Alexei Batyr' wrote:
> >>>> Andrey Ulanov wrote on Thursday, December 05, 2002 7:19 PM
> >>>> [GMT+0400]:
> >>>>> works well. But when i tryed to send message which includes koi8-r
> >>>>> 8bit text with 7bit mime attachment, courier converted it into
> >>>>> 7bit.
> >>>> Try to change "is8bit=0" to "is8bit=1" in the initial declarations
> >>>> of SubmitFile::MessageEnd procedure in submit2.C.
> >>> It's just a duty hack. I don't want to do so.
> >> This "duty hack" nevertheless perfectly eliminates your problem and
> >> works well on my production server more than 2 years.
> > Yes, it eliminate problem, but don't fix the bug, even if it has been
> > working well so long time.
> Try to persuade Sam to fix it - maybe you'll be more lucky.
Sam sent me a patch this morning.
Index: courier/submit2.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/submit2.C,v
retrieving revision 1.29
diff -U3 -r1.29 submit2.C
--- courier/submit2.C 3 Oct 2002 01:49:14 -0000 1.29
+++ courier/submit2.C 7 Dec 2002 04:01:23 -0000
@@ -892,9 +892,6 @@
&SubmitFile::get_msgid_for_filtering, &voidp))
return (1);
- if (rwrfcptr->has8bitchars)
- is8bit=1;
-
if (!mime || strcmp(mime, "none"))
{
if (mime && strcmp(mime, "7bit") == 0)
@@ -907,6 +904,11 @@
if (rfc2045_ac_check(rwrfcptr, rwmode))
dorewrite=1;
}
+ else
+ (void)rfc2045_ac_check(rwrfcptr, 0);
+
+ if (rwrfcptr->has8bitchars)
+ is8bit=1;
unlink(namefile("D", 1)); // Might be the GDBM file
// if receipients read from headers.
----------------------------------------------------------------------------
--
with best regards, Andrey Ulanov.
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users