Hello,
I am finally working on new version of XMail-WAI. Is there any way, how =
to
pass non-7-bit characters trough CTRL protocol (for example as RealName
etc)?
I thought that Davide said that the protcol is working in UTF8, but no
matter how I try, when I pass anything non-ASCII, XMail drops =
connection.=20
Davide, is there any way, how to put non-ASCII characters to XMail (like =
my
name in correct Czech - "Michal A. Val=E1=B9ek")? If yes, how, please?
This is my proof-of-concept code, written in VB.NET. Works well for =
ASCII,
fails for non-ASCII.
Sub Main()
Console.WriteLine(" [connecting]")
Dim S As String
Dim TCP As New System.Net.Sockets.TcpClient("artex", 6017)
Dim Stm As System.Net.Sockets.NetworkStream =3D TCP.GetStream()
Dim SR As New System.IO.StreamReader(Stm, =
System.Text.Encoding.UTF8)
Dim Buffer As Byte()
Console.WriteLine(" [waiting for reply - 1]")
S =3D SR.ReadLine()
Console.WriteLine("<< " & S)
S =3D """administrator""" & vbTab & """password""" & vbCrLf
Console.Write(">> " & S)
Buffer =3D System.Text.Encoding.UTF8.GetBytes(S)
Stm.Write(Buffer, 0, Buffer.Length)
Console.WriteLine(" [waiting for reply - 2]")
S =3D SR.ReadLine()
Console.WriteLine("<< " & S)
S =3D """uservarsset""" & vbTab & """xmailserver.test""" & vbTab =
&
"""postmaster""" & vbTab & """RealName""" & vbTab & """Michal Altair
Valasek""" & vbCrLf
Console.Write(">> " & S)
Buffer =3D System.Text.Encoding.UTF8.GetBytes(S)
Stm.Write(Buffer, 0, System.Text.Encoding.UTF8.GetByteCount(S))
Console.WriteLine(" [waiting for reply - 3]")
S =3D SR.ReadLine()
Console.WriteLine("<< " & S)
Stm.Close()
TCP.Close()
Console.Write("- - - Press ENTER - - -")
Console.ReadLine()
End Sub
Thanks,
-- Michal Altair Valasek
Altair Communications - web hosting, web design, application =
development
_________________________________________________________________________=
__
http://[EMAIL PROTECTED] | [EMAIL PROTECTED] | PGP 0xC4F3579D | Tel.: +420 603 828 =
493
I've been wrestling with reality most of my life.=20
I'm pleased to say that I've won.=20
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]