I think everyone has missed the issue! (or maybe it's just me ;-)
> >>> ruby -e "5001.times {print 'a'}" | sendmail [EMAIL PROTECTED]
Is really sending 5000 characters of a line of BODY text - right?
So really, what is being viewed as a header problem is a body problem, but
really it's not even that.
There is a line length limit in place for email. It is assumed what is
feeding "sendmail" will be smart enough to respect that rule?
Perhaps this is a mechanism to prevent buffer overflow, and what you are
seeing (assuming the test works on the real "sendmail") is Courier trying to
be more secure by preventing huge lines which could lead to those
overflows...
You could always pipe your input to awk - and if you are communicating via
smtp, then those long lines are illegal anyways.
m/
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeff
Jansen
Sent: Friday, November 07, 2003 5:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [courier-users] Re: 534 Message header size
I think we've missed the issue here. (Or I've missed the issue. :-) When
you
pump 5000 characters to sendmail without a newline in there somewhere then
courier is going to the think the entire thing is a header, right? So in
that case what you are hitting here is courier's compiled 5000 character
header limit.
To disable it you need to edit courier/submit.C in the source code and
remove
the check for 5000 characters in the header. Look for the line that says
if (l > headerlimit || l > 5000)
and change it to say
if (l > headerlimit)
Now you've got a 100k limit.
Jeff Jansen
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users