Re: [twsocket] Original way of iterating thru all the bits in an integer

2013-01-05 Thread DZ-Jay
Hi Francois, I was just wondering, what would be a practical application of this routine? Also, being familiar with Assembly, I have to ask: wouldn't it be more efficient to just shift the value to the left directly without the abstraction of the enumerator? dZ. On Jan 05, 2013, at

Re: [twsocket] Merry Christmas

2011-12-24 Thread DZ-Jay
¡Feliz Navidad y un Hermoso y Próspero Año Nuevo! (Merry Christmas and a Beautiful and Prosperous New Year!) Best wishes to all from Florida, USA. dZ. On Dec 24, 2011, at 05:42, François Piette wrote: > Hi ! > > > > I wish a Merry Christmas to all of you and your families. > > >

Re: [twsocket] Season's greetings

2010-12-23 Thread DZ-Jay
¡Feliz Navidad y un próspero Año Nuevo a todos! (Merry Christmas and a prosperous New Year to everyone!) dZ. On Dec 23, 2010, at 17:40, Maurizio Lotauro wrote: > Scrive Francois PIETTE : > >> Hi Everyone ! >> >> Happy Holidays and best wishes for 2011 ! > > You too, and to other rea

Re: [twsocket] SMTP mail queue component?

2010-10-02 Thread DZ-Jay
On Oct 01, 2010, at 11:41, Angus Robertson - Magenta Systems Ltd wrote: > Has anyone built a component to queue email until an SMTP relay server is > available? Angus, A few years ago I built a Mail Queue Service (I called SMailQ). This wasn't a queuing component, but an entire queue

Re: [twsocket] Request for better Delphi version detection

2010-09-05 Thread DZ-Jay
On Sep 05, 2010, at 15:06, Jon Robertson wrote: > If ICS works in D2010, why can't the same source be recompiled in > Delphi XE without change? Why must component vendors insist on > forcing source code changes (even if just the .inc file) for every > version, when there is very likely nothing i

Re: [twsocket] TSmtpCli and bad spam score

2010-09-04 Thread DZ-Jay
On Sep 04, 2010, at 13:14, Arno Garrels wrote: > DZ-Jay wrote: >> On Sep 04, 2010, at 11:40, Arno Garrels wrote: >> >>> Hello DZ-Jay, >>> >>> At least Firebird provides 5 priorities so why should we remove this >>> feature from ICS? >>

Re: [twsocket] TSmtpCli and bad spam score

2010-09-04 Thread DZ-Jay
On Sep 04, 2010, at 11:40, Arno Garrels wrote: > Hello DZ-Jay, > > At least Firebird provides 5 priorities so why should we remove this > feature from ICS? It's not standard, most clients assume there's only "low," "normal," and "urgent&quo

Re: [twsocket] TSmtpCli and bad spam score

2010-09-03 Thread DZ-Jay
On 09/03/2010 15:09, Arno Garrels wrote: Does that mean that you or DZ-Jay will check in this change? I'm currently not up to date with the SMTP RFCs. But I wonder why "Priority" and "X-MSMail-Priority" are no longer required? Arno, I did a little more research (I h

Re: [twsocket] TSmtpCli and bad spam score

2010-09-03 Thread DZ-Jay
); end { else if FHdrPriority = smtpPriorityNormal then begin FHdrLines.Add('Importance: normal'); FHdrLines.Add('X-Priority: 3'); end } else begin FHdrLines.Add('Importance: low');

Re: [twsocket] THtmlSmtpCli and inline image lost

2010-08-31 Thread DZ-Jay
On Aug 31, 2010, at 05:12, Francois Piette wrote: > This code is probably ok to integrate into ics. Idealy tests should be > conduced to make sure it doesnt break anything before modifying ics. What it seems to be doing is adding an arbitrary string to the ID value in order to avoid collision

Re: [twsocket] ICS Message handlers

2010-08-13 Thread DZ-Jay
On 08/12/2010 12:56, Eric Fleming Bonilha wrote: Since my app can have many handles and I need many sockets, I did many tests and found that procedure TIcsWndHandler.AllocateHWnd; create its own windows handle, instead of using classes.allocatehwnd How does this scheme works? As I understood it

Re: [twsocket] A bug with Pop3 - followup

2010-07-01 Thread DZ-Jay
On 07/01/2010 10:20, Arno Garrels wrote: 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 ;) You corrected it, I don't think it ma

Re: [twsocket] A bug with Pop3 - followup

2010-07-01 Thread DZ-Jay
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.

Re: [twsocket] smtp error 10061 sending mail on one pc

2010-06-30 Thread DZ-Jay
quested 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. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teami

Re: [twsocket] A bug with Pop3 - followup

2010-06-30 Thread DZ-Jay
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 sh

Re: [twsocket] A bug with Pop3 - followup

2010-06-29 Thread DZ-Jay
Zvone wrote: You have to reset property MsgNum to zero before both List() and Uidl(). Alright, that seems to work, although it is not entirely logical to me. I'll put it in the wiki documentation when updating it along with one "complete" example. Thanks Arno. Simple: when you call LIST with

Re: [twsocket] HTTP Location

2010-05-20 Thread DZ-Jay
ay, I wouldn't rely on a URI being given, ever. Like Stan said, it is up to the client to avoid loops. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists

Re: [twsocket] HTTP Location

2010-05-20 Thread DZ-Jay
ould not prevent the user agent from redirecting at all. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Error "Socket operation on non-socket"

2010-04-16 Thread DZ-Jay
Anton Sviridov wrote: wilfried, dZ, the strangest thing is that socket is created and connected directly before the bug. Here is what happens next: Can you tell what is being called exactly at the moment the error occurs? Try adding the ICS source directory to your Library Path and setting u

Re: [twsocket] Error "Socket operation on non-socket"

2010-04-16 Thread DZ-Jay
Hello: It seems like the connection was dropped unexpectedly by the other side. "Socket operation on non-socket" means that a WinSock call was sent on a closed socket or invalid handle. dZ. On Apr 16, 2010, at 03:48, Anton Sviridov wrote: > *something wrong with my previous ma

Re: [twsocket] Multiple FTP Clients

2010-04-13 Thread DZ-Jay
Fastream Technologies wrote: Maybe it is SFTP--FTP over SSH?! Perhaps, but it is still not FTP and not supported by ICS. 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

Re: [twsocket] Multiple FTP Clients

2010-04-13 Thread DZ-Jay
Francois PIETTE wrote: No problem, just use several FTP client component either dropped on your form or created dynamically and operate them using the asynchronous functions (GetAsync and the likes). You'll be able to support any number of concurrent FTP session to the same server or to differe

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
Francois PIETTE wrote: You are forgetting to free the memory. See TCustomLineWSocket.Destroy about how to do it properly. Wait, something just occurred to me: FRcvdPtr is of type TWSocketData, which is an Array Of Bytes, i.e. a dynamic array. No, it is of type pointer when win32 is defined w

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
ess the garbage collector is guarding against it; but since this is not documented I don't think we should rely on it. Or, am I missing something? dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
On Mar 29, 2010, at 03:39, Jon Robertson wrote: > I should have only included FRvcdCnt := 0; That will prevent > TriggerSessionClosed from calling TriggerDataAvailable, and allow > TCustomLineWSocket.Destroy to free the buffer, rather than having multiple > code snippets that free the buffer, wh

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-28 Thread DZ-Jay
On Mar 28, 2010, at 14:04, Arno Garrels wrote: > And that's IMHO nonsense, Abort should just throw away and free > buffered line-data TCustomLineWSocket.SessionClosed should call > inherited SessionClosed silently in this case, or am I missing the > point? I think you are right. dZ.

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-28 Thread DZ-Jay
ASyncReceive(0,[]) <-- *** MODIFIED TO TRIGGER OnBgException OverbyteIcsWSocket.TCustomWSocket.Do_FD_READ(???) -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.or

Re: [twsocket] Unit is already finalized, check your threads!!!

2010-03-28 Thread DZ-Jay
ed on a Form at design time. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-28 Thread DZ-Jay
er for "unread" data, when in LineMode. As you noticed, when you turn off LineMode in your code, it will not re-enter OnDataAvailable. I'm not sure why the distinction at this point. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamic

Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-28 Thread DZ-Jay
ataAvailable is not triggered via Windows message, but by direct call from various methods. Perhaps this should change? However, since it needs to be called as a last resort before closing, a Windows message may never arrive if we are destroying the component. dZ. -- DZ-Jay [Te

Re: [twsocket] InternalAbort causes OnDataAvailable *during*the Abort call

2010-03-27 Thread DZ-Jay
mehow to avoid re-entry of the events. Both solutions are non-trivial, so for now just make sure that your OnDataAvailable handler is wrapped in a try/except block. Also, remove the OnBgException trigger from ASyncReceive, and you should be good. dZ. -- DZ-Jay [TeamICS]

Re: [twsocket] InternalAbort causes OnDataAvailable *during*the Abort call

2010-03-27 Thread DZ-Jay
On Mar 27, 2010, at 13:21, wilfried Mestdagh wrote: > These are possible untested situations. It is possible to call Abort from > within an event, but why should you call Abort if the session is closed? I think that he means that if there is an exception in the OnDataAvailable handler, and you

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread DZ-Jay
Jon Robertson wrote: FWIW, I've patched the exception handler in ASyncReceive as below. If there are objections, please explain them so I can determine another solution. except on E:Exception do begin bMore := FALSE; HandleBackGroundException(E);

Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-26 Thread DZ-Jay
This indicates that the server itself is responding with that. Can you confirm what comes back from the server? dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http:

Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-26 Thread DZ-Jay
I'm not sure how this could be handled in the component. I'm using a Mac at this moment so I cannot test this. Can you show me the call stack of when the second OnDataAvailable is triggered? I can't seem to find an obvious execution flow in the code (it's very early sti

Re: [twsocket] THttpCli: Handling Web Pages that Return Nothing

2010-03-26 Thread DZ-Jay
es not respond. If this is the case, then there is really absolutely *no way* for the THttpCli component to know when it is OK to wait or abort (how could it?)--this is precisely the reason why the HTTP protocol defines Response Status Codes and requires them. dZ. -- DZ-Ja

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread DZ-Jay
ive to call the BG Exception handler? dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our webs

Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-26 Thread DZ-Jay
Z. P.S. Which version of ICS are you using? -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] POST and PHP

2010-03-24 Thread DZ-Jay
Gary Howard wrote: What else could possibly be wrong? Does posting a simple HTML form to the script using the browser work? I haven't used PHP in a long time, but I seem to recall that there was something that needed to be done in the script in order to access global variables... In any

Re: [twsocket] POST and PHP

2010-03-24 Thread DZ-Jay
Gary Howard wrote: // Buf := DataEdit.Text; // commented out this // Below is the Only Line I changed in the whole program Buf := '"FirstName=Gary&Submit=Submit"'; //this is the only mod Try it without the double-quotes: Buf := 'FirstName=Gary&Submit=Submit'; Note

Re: [twsocket] POST and PHP

2010-03-24 Thread DZ-Jay
Gary Howard wrote: Hi It seems PHP does not like the way the data is "POST" there appears to be nothing in the _POST array...hence nothing to return shouldn't you simply be able to OutString := 'IDString=ABCD" then load the DataOutStream with OutString? Please post your Delphi code

Re: [twsocket] POST and PHP

2010-03-24 Thread DZ-Jay
Gary Howard wrote: my PHP script Looks like running PHP5.2 Without analysing the code, it occurs to me that the output is missing the HTTP header, therefore, the component may not detect the output. Try this: dZ. -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] ICS documentation

2010-03-02 Thread DZ-Jay
eled. You are welcomed to contribute all you can to the ICS Wiki, and so is every other member of this mailing list. Any little time is appreciated by all of us, but ultimately we recognize that it is a volunteer effort. Sincerely, dZ. -- DZ-Jay [TeamICS]

Re: [twsocket] Cc: with TSmptClient ? [solved]

2010-02-20 Thread DZ-Jay
.pas. The source code for ICS is usually the best documentation available. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Cc: with TSmptClient ?

2010-02-19 Thread DZ-Jay
Jean-Paul Passama wrote: Know that, but you don't explain how to indicate a CC: receiver. OK, it's time for another crash course in the SMTP transport. The "TO", "CC", and "BCC"--and for that matter, all headers--are just informational for the Mail Client. As far as the SMTP protocol knows,

Re: [twsocket] ftp dir dot at begin

2009-12-05 Thread DZ-Jay
Also, some FTP servers allow parameters to the commands. It could be that your favorite FTP client is instead sending "ls -a" instead of "ls" as the directory listing command. dZ. -- // Do something marypoppins = ( superman + starship ) / god; On Dec 05, 2009, at 09:29, Xavier Mor-Mu

Re: [twsocket] Using lots of TSmtpCli in a single application

2009-08-17 Thread DZ-Jay
1. User not found (account closed) 2. Destination server blacklisted in ORDB 3. Common typo in domain name (e.g. yaho.com, gmail.cmo, etc.) dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settin

Re: [twsocket] Using lots of TSmtpCli in a single application

2009-08-17 Thread DZ-Jay
description of the project does not seem unusual at all, and in fact, as others have said, 200 messages per hour seems rather low. You shouldn't have a problem using ICS for it. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

[twsocket] Happy New Year!

2008-12-31 Thread DZ-Jay
May you all have a happy and prosperous new year! ¡Feliz Año Nuevo! dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman

Re: [twsocket] THttpCli.Head bug (OT)

2008-11-05 Thread DZ-Jay
I received it fine. dZ. On Nov 5, 2008, at 04:57, Fastream Technologies wrote: > Please let me know if you saw the message below. I am using gmail and > it > does not let users see the messages sent to mailing list being > delivered or > not. -- DZ-Jay [TeamIC

Re: [twsocket] TPop3Cli header...

2008-10-20 Thread DZ-Jay
s not having control over the client; this is crucial. If you have no control over the client, you cannot guarantee that a response or reply will contain any of the information you originally included in your message--headers or content. dZ. On Oct 20, 2008, at 05:41, DZ-Jay wrote:

Re: [twsocket] TPop3Cli header...

2008-10-20 Thread DZ-Jay
, which may be sanitized, truncated, or modified by the client or any proxy in between. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/c

Re: [twsocket] TPop3Cli header...

2008-10-19 Thread DZ-Jay
ng for a starting marker and ending marker for the > email address. > > Are 'From:' and 'Received:' always in English or will they be > translated to > German if the pop3 server is in Germany? > -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/ov

Re: [twsocket] HTML encoding in HttpSrv func. TextToHtmlText()

2008-10-09 Thread DZ-Jay
rently char #162 is hard coded to represent the cent sign: > HTML Entity: 'cent' , { #162 cent sign > } > > In windows-1251 however #162 maps to the small kyrillic letter U > (short). > -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overb

Re: [twsocket] Transfer-Encoding: chunked ??

2008-10-02 Thread DZ-Jay
ansfer-Encoding: chunked > Content-Type: text/html; charset=iso-8859-1 It looks like the whole header to me. The cookie is there (Set-Cookie header). What's the problem? P.S. "Transfer-Encoding: chunked" is a different transfer mechanism than using "Content-Length", but it

Re: [twsocket] URL encoding

2008-09-28 Thread DZ-Jay
On Sep 28, 2008, at 09:49, Arno Garrels wrote: > It doesn't seem to be mandatory, however suggested to use UTF-8 since > January 2005, RFC 3986 Thank you! For some reason I missed that 3986 obsoletes 2396. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/e

Re: [twsocket] URL encoding

2008-09-28 Thread DZ-Jay
e (and that's what I've used, too), and in fact that's probably what IE uses--but I can't find it anywhere specified as the HTTP protocol character set--unless I'm missing something. It may be that UTF-8, by convention or tradition, is the de facto character set, but is t

Re: [twsocket] Early web server response (OT)

2008-09-25 Thread DZ-Jay
I must apologize for the bizarre and annoying quoting and wrapping in some of my posts. When I respond from work I have no access to an SMTP server, so I must use my ISP's atrocious Web Mail system which hard-wraps everything at 76 characters (without Quoted-Printable soft-wraps) and distorts

Re: [twsocket] Early web server response

2008-09-24 Thread DZ-Jay
at the body has been sent completely, and if not, it delays re-sending until it does. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/

Re: [twsocket] Early web server response

2008-09-22 Thread DZ-Jay
y on its way, since the client didn't stop to check, so they cross in transit. It could also be that the HttpCli component does not acknowledge the response until after if finishes sending the buffer (which makes sense, since it's a single-threaded operation), and this causes

Re: [twsocket] Early web server response

2008-09-21 Thread DZ-Jay
guessing that at least one browser handles this properly, otherwise NTLM would be completely useless. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.o

Re: [twsocket] Wiki editing not working?

2008-06-30 Thread DZ-Jay
Francois PIETTE wrote: >> Well, I could log in properly and start editing but not save the changes >> or >> show preview. /Fredrik. > > I've just tryed to edit and save a page. I works as expected. > Do you have another computer to try with ? Maybe a browser setting has > changed ? > Can someone

[twsocket] ICS And WebServices (SOAP)

2008-06-04 Thread DZ-Jay
Hello: I'm sure this has been asked before but can anybody tell me if ICS Supports Web Services using SOAP, in particular the Document Literal format (Doc|Lit). If so, is there anything special I should know about it? Thanks, dZ. -- To unsubscribe or change your setting

Re: [twsocket] "Not enough storage" error in XSocketAllocateHWnd

2008-05-27 Thread DZ-Jay
age() call to receive all thread messages, handling the ones I needed to handle, and calling the default WndProc for the rest (or something like that -- it's been a while). dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe

Re: [twsocket] {OT] HTTP...

2008-05-16 Thread DZ-Jay
On May 16, 2008, at 02:50, Tobias Rapp wrote: > Hi! > > DZ-Jay wrote: >> A way to create a multi-part response is to encapsulate >> it as a MIME 822 message. Here's some basic information on this: >> >> http://www.motobit.com/tips/detpg_multiple-file

Re: [twsocket] HTTP...

2008-05-16 Thread DZ-Jay
ver you want. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] HTTP...

2008-05-15 Thread DZ-Jay
DZ-Jay wrote: > What you want to do is send a multi-part MIME payload in the body of > your HTTP response. You have to set the content-type to > "multipart/form-data". For more information, check this page: > > http://www.w3.org/TR/html401/interact/forms.html#

Re: [twsocket] HTTP...

2008-05-15 Thread DZ-Jay
zayin wrote: > Hello, > > I have a server and I want to send a jpeg to the client upon request. This > image is dynamic. I am using AnswerStream and that is all working great. > > Then I decided I also wanted some text to go before the image. > > I could not determine how to send text and an im

Re: [twsocket] mx lookup

2008-05-08 Thread DZ-Jay
Wilfried Mestdagh wrote: > thanx Dz and Arno, > > some more questions. What about the MXPreference? For example if I do a > mx lookup for sonal.be it returns mail.sonal.be with value 10 and > mxl.sonal.be with value 50. Does this mean one of the 2 is preferred? > and if so the one with the lowest

Re: [twsocket] mx lookup

2008-05-08 Thread DZ-Jay
Wilfried Mestdagh wrote: > Hello, > > To find out which is the smtp server I have to send mail to for a > particular domain I can use the MXPreference[n] property of DnsQuery > component. But in what case there can be multiple results ? (I tryed a > few and get only 1 result 'answer#1 in demo prog

Re: [twsocket] [OT] SMTP Client - Delete Temp files -

2008-05-08 Thread DZ-Jay
ion' section. Check the help file for more information. If you are going to use a static method, then I suggest you create a static variable (singleton) representing the file list, and send a reference of it to the SendMail() method. Otherwise, it may be cleaner to just create an instance of your

Re: [twsocket] THttpCli: default webpage name

2008-05-08 Thread DZ-Jay
;) when no filename is given. In such cases, the server does not divulge the filename. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi

Re: [twsocket] SMTP Client - Delete Temp files -

2008-05-07 Thread DZ-Jay
wayne forrest wrote: > Hello, > > After I have successfully sent the Email I need to delete the temp Files ( > attachments ); > > How do I know if the mail was sent OK; After sending the message and issuing the QUIT command, the OnRequestDone is fired with no error with the Request = smtpQuit.

Re: [twsocket] THttpCli: default webpage name

2008-05-06 Thread DZ-Jay
[EMAIL PROTECTED] wrote: > If THttpCli is used to get a webpage with no document name specified, > only directory ("www.codegear.com/products") - is it possible to find out > the default document name? Whether it be "index.html" or "main.html" or > just some custom name specified on the webserver?

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 14:11, DZ-Jay wrote: > I guess you can always check for multiple instances of the header and > avoid delivering to any addresses in any of them (after all, any server > who adds an X-Loop header is trying to make sure not to have the > message re-delivered to

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 12:05, Wilfried Mestdagh wrote: > Hello DZ-Jay, > >> Plus, the RFC requires transport servers in transit to include all "X" >> headers untouched. > > So this also means if I add a X-Loop header that another server leave > it > untouche

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 10:03, DZ-Jay wrote: > The common way is for the SMTP server (or Mail Delivery Agent) to add > an additional header with the sender's address, then ignore any > messages where the recipient is the same as the value in that header. When I said the "sender&

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
nsport servers in transit to include all "X" headers untouched. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] SMTPOpen failing, Why?

2008-04-17 Thread DZ-Jay
ion. I think Arno also agreed that this is the proper behaviour. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] SMTPOpen failing, Why?

2008-04-16 Thread DZ-Jay
Arno Garrels wrote: > Huch, I am Arno? I said that an attempt to send the mail even though > authentication failed were an easy task from user code. > Also after the EHLO-response has been received property > AuthTypesSupported holds a list of auth-types supported by the *server. > If that list

Re: [twsocket] SMTPOpen failing, Why?

2008-04-16 Thread DZ-Jay
Arno Garrels wrote: > I think it should since sometimes mail server do not publish all > available extensions in the EHLO response. So even if there's no > AUTH found in the list TSmtpCli stupidly does a trial and error. > This procedure has been suggested by Jake Traynham. > It doesn't hurt anyway

Re: [twsocket] SMTPOpen failing, Why?

2008-04-16 Thread DZ-Jay
> Depending on if the user supplies a password or not I set it to one of > these values. It was on smtpAuthAutoSelect, which seems to trigger the > "->AUTH CRAM-MD5" request. So is this a bug of TSmtpCli? Should it send > an AUTH request, if the command is not on the list? What is the default >

Re: [twsocket] SMTPOpen failing, Why?

2008-04-16 Thread DZ-Jay
Veit Zimmermann wrote: > ->EHLO GPS_Plus > <-250-relay.infotn.it > <-250-8BITMIME > <-250-PIPELINING > <-250-DSN > <-250-ENHANCEDSTATUSCODES > <-250-HELP > <-250-XLOOP 887A9C2E9DC36F355DA1AF23F4FAA02 > <-250-ETRN > <-250-N0-SOLICITING > <-250 SIZE 0 This is the list of extended commands supported

Re: [twsocket] Post command...

2008-04-15 Thread DZ-Jay
e *server* needs to give the client the page to reload it. Sorry, dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/lis

Re: [twsocket] bug in TCustomWSocket? - 100% cpu; continues calls to OnDataAvailable while no data was received

2008-04-12 Thread DZ-Jay
you call from the event handler to see if any of them ultimately call the message pump. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/

Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-10 Thread DZ-Jay
you depend on the host computer having the proper types registered. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-08 Thread DZ-Jay
Apache does, it can be easily extended and maintained. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocke

Re: [twsocket] Connecting and Disconnecting

2008-04-02 Thread DZ-Jay
Éric Fleming Bonilha wrote: > Hello Wilfried, > > Ok, I will make that way, but do you know the implications of doing the way > I said? It can cause the host to make some half-closed connections? The implication is that the TWSocket control may not have entered the proper state and still be in

Re: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas

2008-03-26 Thread DZ-Jay
Bjørnar Nielsen wrote: > I did not know of this header-field. > > Why not add properties for both? The xautogeneratedreply works for my purpose > and the mailservers I have testet against. > > Regards Bjørnar Well, because delivery loops are a server problem, and a mail user agent not only sho

Re: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas

2008-03-26 Thread DZ-Jay
and SmtpProt is intended to be an SMTP client. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html On Mar 25, 2008, at 15:27, Bjørnar Nielsen wrote: > New property: > > property XAutoGeneratedReply : Boolean read > FXA

Re: [twsocket] Newbe needs help with sending HTTP password

2008-03-07 Thread DZ-Jay
Hello: Standard HTTP username and password usage in URI is: http://username:[EMAIL PROTECTED]/ dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html On Mar 7, 2008, at 05:53, Bob Reeves wrote: > Hi, > > I have managed to get a

Re: [twsocket] ICS won't work anymore...

2008-02-27 Thread DZ-Jay
Ko Brink wrote: > I tested it and got some wierd binary data returned. > but when i set the request version to 1.1 i get the page. > so try to set httpcli->RequestVer = "1.1"; I just tried a request with using HTTP/1.0 (a manual request, not using ICS), and I received the XML page. I doubt that

Re: [twsocket] AN: New e-mail protocol (spam free and more!)

2008-02-07 Thread DZ-Jay
l?) then it *is* susceptible to SPAM and abuse. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our

Re: [twsocket] AN: New e-mail protocol (spam free and more!)

2008-02-07 Thread DZ-Jay
il protocol, highly > immune > to the SPAM, with data encryption and compression, with sender ID > validation, etc. BUT not compatible with the standard email (SMTP). -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your s

Re: [twsocket] How to simulate 10053?

2008-01-24 Thread DZ-Jay
Unplug the network cable midway through transaction? dZ. S.Korotky wrote: > Hello All! > > Is there a way to generate 10053 error from ICS? > > Calling Abort does close a connection gracefully as well as CloseDelayed > (except for a dropped buffered data, if any). > > Some soft, such a

Re: [twsocket] How to return a socket error

2008-01-23 Thread DZ-Jay
TWSocketServer because it does this already in a more elegant way: If the maximum number of connections are opened, it will accept the connection, and return a protocol error (e.g. "500 Server is busy.") in the welcome banner and immediately close the connection. dZ. --

Re: [twsocket] How to return a socket error

2008-01-22 Thread DZ-Jay
Hello: Are you creating your own socket server or using TWSocketServer? -dZ. Bart Thompson wrote: > I am using a TWSocket in an application where it acts like a server > socket (using listen and accept). > > I need to return a 10061 (connection refused error) if there are too > m

Re: [twsocket] pop3 component not ready - Bug in TPop3Cli

2008-01-18 Thread DZ-Jay
On Jan 17, 2008, at 07:34, [EMAIL PROTECTED] wrote: > it didnt fix the issue, got a pop3 not ready exception today. Can you post some code so that we know how you tried to fix it? dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html --

Re: [twsocket] SMTP Component not ready

2008-01-07 Thread DZ-Jay
se the events provided to call the next method. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Question.

2008-01-07 Thread DZ-Jay
p > Header, how > do you suggest supporting that? You could handle the OnRequestHeaderStart or OnRequestEnd events and inject the additional headers you need. These events will be triggered right before or after the response headers are sent, respectively. dZ. --

  1   2   3   >