Re: [twsocket] A bug with Pop3 - followup
DZ-Jay wrote: Zvone wrote: Also... if someone is into Delphi and has wiki access, I would suggest to translate my example code to Delphi. I'm not so much into Delphi so I could make a messy code when translating it but I'll try to keep examples very simple and not use c++-ish stuff like ?: and similar so it should be fairly easy to understand even if not translated to Delphi. Done. Changed your translation, it was full of bugs and neither followed the official Delphi nor the ICS code format. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] A bug with Pop3 - followup
Zvone wrote: So if you changed some of the wiki pages now you can surround it with these tags and make your code look nicer. Looks nice with C++, however the Delphi colors should be changed. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] smtp error 10061 sending mail on one pc
One pc get Error 10061 on connect when sending any mail, You should use the function GetWinsockErr () or WSocketErrorDesc () (and GetWindowsErr() for files) in OverbyteIcsWSocket, so your application returns textual errors. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] A bug with Pop3 - followup
On Jul 01, 2010, at 02:55, Arno Garrels wrote: Changed your translation, it was full of bugs and neither followed the official Delphi nor the ICS code format. Sorry, I didn't have Delphi at hand and didn't compile the code, so I missed removing the case keywords from the switch statement. As for the style, I'll brush up on ICS official guidelines; it's been a while. Thanks, dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] A bug with Pop3 - followup
So if you changed some of the wiki pages now you can surround it with these tags and make your code look nicer. Looks nice with C++, however the Delphi colors should be changed. I didn't want to go into styling because it is a matter of preference. The colors as they are now are defaults of GeSHi and are very similar to the ones used for example on Wikipedia - see: http://en.wikipedia.org/wiki/Delphi_programming_language and http://en.wikipedia.org/wiki/C%2B%2B But styling is easy - providing you have access to the server. I have MediaWiki installed locally so I can edit help locally and upload when finished and it is only a matter of modifying GeSHi language .php files for example in: extensions\SyntaxHighlight_GeSHi\geshi\geshi\delphi.php You will find: 'STYLES' = array( 'KEYWORDS' = array( 1 = 'color: #00; font-weight: bold;', 2 = 'color: #00; font-weight: bold;', 3 = 'color: #66;', 4 = 'color: #66; font-weight: bold;' ), 'COMMENTS' = array( 1 = 'color: #808080; font-style: italic;', 2 = 'color: #008000; font-style: italic;', 'MULTI' = 'color: #808080; font-style: italic;' ), etc... These are colors of delphi output... so... style to... whatever you want them to be. Don't introduce CSS errors though. C++ colors are in: cpp.php also under 'STYLES' array So change it to whatever you like or think they may be. I'm at home with PHP and CSS but I'm not going into that issue, I just suggested to Francois - Delphi and C++ builder default interface colors to look familliar, but he has no time to change these so if you modify the files send it to him. I can do the styling that's a piece of cake, but it has to be a popular vote :) Simply send me 24-bit PNG screenshots of code and I can work with that (they have to be PNG to avoid JPG messing with colors as it is lossy and PNG is not). Whatever you decide - make sure after styling it to save the changed files because if GeSHi is updated you may overwrite the styling files so to avoid that.. backup these. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] smtp error 10061 sending mail on one pc
Thanks Angus for your tip As I can I'll include this. Xavi Al 01/07/2010 08:59, En/na Angus Robertson - Magenta Systems Ltd ha escrit: One pc get Error 10061 on connect when sending any mail, You should use the function GetWinsockErr () or WSocketErrorDesc () (and GetWindowsErr() for files) in OverbyteIcsWSocket, so your application returns textual errors. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be Se certifico que el correo entrante no contiene virus. Comprobada por AVG - www.avg.es Version: 9.0.830 / Base de datos de virus: 271.1.1/2975 - Fecha de la version: 07/01/10 08:35:00 -- Xavier Mor-Mur -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] smtp error 10061 sending mail on one pc
Thanks dZ I'll do more exhaustive check on that pc. Last test I do was include one button with all actions on it's click event and worked fine on two pc's but not on third. If you or someone have any idea where or what to check on that pc where welcome. Thanks again for all Xavi Al 01/07/2010 03:47, En/na DZ-Jay ha escrit: On Jun 30, 2010, at 19:25, Xavier Mor-Mur wrote: I would appreciate any help about error 10061. One pc get Error 10061 on connect when sending any mail, other 2 pc have no problems. Program, utility and smtp configuration it's the same for all 3 terminals (windows vista) and all parameters retrieved from server. I can't find any info for errors ~575 I checked antivirus and local firewall, the same for all 3 pc's. What means this errors and what actions I should take? There is any way to force a more detailed debug to find what's wrong on that pc? Hello: Typical protocol errors fall within 500 - 599. Error numbers greater than 10,000 are WinSock error codes. Code 10061 means Connection Refused, and it usually refers to a host not having a server listening on the requested port. For more information on WinSock error codes, consult the Windows SDK documentation that comes with Delphi, or MSDN: http://msdn.microsoft.com/en-us/library/aa924071.aspx dZ. Se certifico que el correo entrante no contiene virus. Comprobada por AVG - www.avg.es Version: 9.0.830 / Base de datos de virus: 271.1.1/2975 - Fecha de la version: 07/01/10 08:35:00 -- Xavier Mor-Mur -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] A bug with Pop3 - followup
DZ-Jay wrote: Sorry, I didn't have Delphi at hand and didn't compile the code, so I missed removing the case keywords from the switch statement. That wasn't the only one ;) As for the style, I'll brush up on ICS official guidelines; it's been a while. I like the ICS code style, it's close to the offical Delphi and my own except for the uppercase String and the hanging begin (both should IMO be changed). -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] pop3, buffer and character encoding
OK, I have an issue which I don't entirely understand. The way to check received pop3 message is to create Pop3CliMessageLine event and then add Pop3Cli.LastResponse to your own buffer (UnicodeString) and store that as email. However, this creates a bit of a problem - LastResponse is UnicodeString. Normally, that's fine but the sender may send message in some single-byte encoding. So in order to handle this properly - I'd have to store message as bytes (raw buffer received from server) and later when reading it read the encoding from message header and convert bytes to UnicodeString using the encoding of the message. But LastResponse is already encoded in Unicode so I don't get raw bytes output but some converted output using some built in logic which I don't get it. if I send for example 0x80, 0x81, 0x82 I may not get the identical result in LastResponse. In fact all the characters above 0x7f may be messed up. It's ok for ASCII messages but not for others. So how is this exactly handled and is there a way to receive raw bytes from socket to convert them to proper encoding later after storing them? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be