Re: [twsocket] [TMimeDec] Beta version to test

2005-08-29 Thread Piotr Hellrayzer Dałek
Hello! Send me one (or all) of these messages (or better post them somewhere and give me the url) and I'll check it out. Not a single MIME message in my mailbox decoded the last attachment correctly, I don't suppose the issue is very hard to reproduce. I'll relay the two examples I

[twsocket] [TMimeDec] Boundary detection optimization

2005-07-31 Thread Piotr Hellrayzer Dałek
Hi! There's possible optimization. Since all MIME boundaries start with -- (=$2D2D), we could check whether FCurrentData points to two dashes instead of copying whole data line, switching to lowercase and then comparing: procedure TMimeDecode.ProcessWaitBoundary; { ##ERIC } var t :

[twsocket] [TMimeDec] Preamble and Epilogue

2005-07-31 Thread Piotr Hellrayzer Dałek
Hi! TMimeDec does NOT ignore MIME preamble and epilogue, so it fails to decode correctly complex multipart message from RFC 2049 Appendix A. Specifically, when it sees ending boundary (--boundary--) it starts another part. Disabling preamble parsing as text/plain is very simple, just have to

[twsocket] Why exceptions?

2005-06-30 Thread Piotr Hellrayzer Dałek
Hi! I just wonder - why we have to use exceptions and exception handling so often? I mean, why exceptions, not function results? For example: procedure TNntpCli.List(DestStream : TStream); begin if FState nntpReady then raise NntpException.Create('Not ready for LIST');

Re: [twsocket] Datetime in mail headers

2005-05-11 Thread Piotr Hellrayzer Dałek
Hello! Do I need the MIME-Version, Content-Type and Content-Transfer-Encoding also or can it be left out ? There will be only plain text and never an attach. AFAIR if you won't put them in header, the default values should be assumed (respectively: 1.0, text/plain; charset=US-ASCII, 7bit) by

Re: [twsocket] Any alternatives to multithreading?

2005-04-30 Thread Piotr Hellrayzer Dałek
Hello! so message queue overflow won't occur so often? What exacly flows over ? I mean, on what do you see this ? Application gets unresponsive. Simply refuses to react for mouse clicks, keypresses, anything except network operations. On my home P120 it shows up, when I download many 1-5kB