Hello.
I have such a problem: A messages, that contain 0xFF character, are
truncated at this character when passed to client. Previous char is
passed, but 0xFF is not. I found this behavior by recordio'ing data. In
io/io.cc there is a lot of code, that throws exception readChar EOF when
detects symbol EOF, and I assume it is 0xFF for some reason.
The real problem is that this character is from national alphabet and is
very-very wide used. And the question is "What should I do?". I don't
know source code good enough to simple remove this EOF-checks without
possible side effects.
FreeBSD-4.7. Ucspi-tcp-0.88. Running under daemontools-0.76 and
tcpserver.
Bincimap-1.1.8 - current from freebsd ports.
Should I upgrade to 1.2.* version? Will this help? Newest changelog says
noothing about EOFs.
Or is this a tcpserver problem, not bincimap?
Here is the log fragment (emails and ips cutted off; 10.10.1.42 is my
local net address):
@400000003f59c66e0e4abeac 38636 > * 87 FETCH (UID 146 FLAGS (\Seen)
BODY[] {1134}
@400000003f59c66e0e979a74 38636 > Reply-To: <[EMAIL PROTECTED]>
... and so on... usual header.
@400000003f59c66e0e9fa8f4 38636 > X-Lookup-Warning: MAIL lookup on
[EMAIL PROTECTED] does not match SOME.IP.AD.DR
@400000003f59c66e0e9fd004 38636 >
@400000003f59c66e0e9fef44 38636 > This is a multi-part message +
@400000003f59c66e0ea00e84 38636 > in MIME format.
@400000003f59c66e0ea02dc4 38636 >
@400000003f59c66e0ea04534 38636 >
------=_NextPart_000_02EC_01C34E39.7D2ADF90
@400000003f59c66e0ea06c44 38636 > Content-Type: text/plain;
@400000003f59c66e0ea0aeac 38636 > charset="windows-1251"
@400000003f59c66e0ea0cdec 38636 > Content-Transfer-Encoding: 8bit
@400000003f59c66e0ea0f114 38636 >
This line. 8 normal national letters. 0xFF should be nineth. But some
INTERNALDATE displayed. What is INTERNALDATE???
vvvvvv
@400000003f59c66e0ea10c6c 38636 > │ючфЁрты INTERNALDATE "19-Jul-2003
13:07:49 GMT")
^^^^^^
@400000003f59c66e0ea12f94 38636 > 0040 OK FETCH completed
@400000003f59c66e1c931dec 38639 < ZZZZ LOGOUT
@400000003f59c66e1cb4fdcc 38639 < [EOF]
@400000003f59c66e1cdd07cc 38641 00001
[EMAIL PROTECTED]@10.10.1.42:] Shutting down - bodies:0
statements:1
@400000003f59c66e1d2c3554 38639 00001 [EMAIL PROTECTED]:] Error,
shutting down: readChar EOF
@400000003f59c66e1d2ca2b4 38639 > 003W NO internal error
@400000003f59c66e1d56e704 38639 00002 [EMAIL PROTECTED]:] Input
warning, shutting down: in Broker::parse, in expectTag, in
expectTagChar, readChar EOF
@400000003f59c66e1da053e4 38639 00003 [EMAIL PROTECTED]:] Shutting
down - read:13 wrote:25
@400000003f59c66e1da0c52c 38639 > [EOF]
@400000003f59c66e1da0e46c tcpserver: end 38639 status 0
With best regards.