[twsocket] POP3 and fetching messages?

2011-03-08 Thread Fredrik Larsson
Hi, I haven't used the POP3-component before so I need a little help. If I want to fetch all of the messages on the server, can I use something like MsgNum = 1 up to MsgCount or can the actual number change so I have to do a combination of List and Retr? Regards, Fredrik. -- To

Re: [twsocket] POP3 and fetching messages?

2011-03-08 Thread Angus Robertson - Magenta Systems Ltd
If I want to fetch all of the messages on the server, can I use something like MsgNum = 1 up to MsgCount or can the actual number change so I have to do a combination of List and Retr? Most POP3 servers offer a snapshot of the mailbox when it is opened, and ignore any new email that arrives

Re: [twsocket] POP3 and fetching messages?

2011-03-08 Thread Fredrik Larsson
: [twsocket] POP3 and fetching messages? Hi, I haven't used the POP3-component before so I need a little help. If I want to fetch all of the messages on the server, can I use something like MsgNum = 1 up to MsgCount or can the actual number change so I have to do a combination of List and Retr

Re: [twsocket] pop3 and lastresponse

2010-09-20 Thread Arno Garrels
Arno Garrels wrote: Zvone wrote: IMO the component should clear LastResponse on before connect. Maybe it should, but what it does is different story :) I checked in a few changes today, it's rev #600: Log: Pop3Prot V6.08 Moved HMAC-MD5 code to OverbyteIcsMD5.pas. Ensure that var

Re: [twsocket] pop3 and lastresponse

2010-09-19 Thread Arno Garrels
Zvone wrote: IMO the component should clear LastResponse on before connect. Maybe it should, but what it does is different story :) Yes, it has to be fixed IMO. So what about a numeric property LastErrorNumber? There is no such property nowhere in pop3 (or in any ICS file). That was a

[twsocket] pop3 and lastresponse

2010-09-18 Thread Zvone
I found something that might also be issue with pop3 component. If you check one pop3 account and end the session usually LastResponse will be some ending message like +OK sayonara. But if you then reinitialize pop3 for another account and this account fails to connect, for example due to timeout

Re: [twsocket] pop3 and lastresponse

2010-09-18 Thread Angus Robertson - Magenta Systems Ltd
While Timeout works rather nice as far as Idle version goes, connect version is usually preceded by Windows built-in timeout An application can not cleanly stop a TCP connection attempt, you have to wait for Windows to timeout, usually 40 seconds unless there is an error of some sort earlier.

Re: [twsocket] pop3 and lastresponse

2010-09-18 Thread Arno Garrels
Hello, Zvone wrote: I found something that might also be issue with pop3 component. If you check one pop3 account and end the session usually LastResponse will be some ending message like +OK sayonara. But if you then reinitialize pop3 for another account and this account fails to connect,

Re: [twsocket] pop3 and lastresponse

2010-09-18 Thread Zvone
IMO the component should clear LastResponse on before connect. Maybe it should, but what it does is different story :) The following fails also with non-sync version but sync is easier to copy-paste. //-- SyncPop3Cli-Host = put-valid-server-here;

Re: [twsocket] pop3, buffer and character encoding

2010-07-03 Thread Arno Garrels
Zvone wrote: TBytes was the datatype to be used. However that would break backwards compatibility since historically string was used everywhere. That all was no problem, however the rule is: DO NOT BREAK BACKWARDS COMPATIBILITY and that is where the problems begin. Well you've already

Re: [twsocket] pop3, buffer and character encoding

2010-07-02 Thread Arno Garrels
Hello Zvone, Yes, the Unicode implementation of the POP3 client is weak. It converts the bytes received to Unicode with current Ansi system codepage. This is direct result of ICS rule #1 to not break backwards compatibility. However, as long as this codepage was one of the windows-xyz, single

Re: [twsocket] pop3, buffer and character encoding

2010-07-02 Thread Arno Garrels
Zvone wrote: However, as long as this codepage was one of the windows-xyz, single byte character sets converting back to Ansi with the same codepage should work without data loss and give you back the raw bytes (hopefully). This won't work, for example, with Japanese locale settings. But

Re: [twsocket] pop3, buffer and character encoding

2010-07-02 Thread Zvone
TBytes was the datatype to be used. However that would break backwards compatibility since historically string was used everywhere. That all was no problem, however the rule is: DO NOT BREAK BACKWARDS COMPATIBILITY and that is where the problems begin. Well you've already broken this rule by

[twsocket] pop3, buffer and character encoding

2010-07-01 Thread Zvone
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

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 -- To

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

2008-01-18 Thread Arno Garrels
DZ-Jay wrote: Can you post some code so that we know how you tried to fix it? The bug I found is the Special processing for Quit below. procedure TCustomPop3Cli.TriggerRequestDone(Error: Word); begin == (* { Special processing for Quit (Roger Morton 24-12-99) } if FRequestType =

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

2008-01-17 Thread retnyg
AG It helps alot to post a short message when you either think AG the problem is resolved or not. Thanks. it didnt fix the issue, got a pop3 not ready exception today. AG -- AG Arno Garrels [TeamICS] AG http://www.overbyte.be/eng/overbyte/teamics.html i also hope that the bug gets

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

2008-01-17 Thread Arno Garrels
[EMAIL PROTECTED] wrote: AG It helps alot to post a short message when you either think AG the problem is resolved or not. Thanks. it didnt fix the issue, got a pop3 not ready exception today. You did not provide any further information, not ready exceptions may happen, i.e. due to incorrect

[twsocket] pop3 component not ready

2007-12-11 Thread retnyg
hi, i use a custom pop3 component in my program, and frome time to time i get this errormessage from the server: -ERR System temporarily unavailable, please try again later. on the next connect try i get the pop3 component not ready exception, even if i check for connected: function

Re: [twsocket] pop3 component not ready

2007-12-11 Thread Arno Garrels
[EMAIL PROTECTED] wrote: procedure TMailAlert.Pop3ClientRequestDone; begin if (FPop.connected) and (CheckError) then begin FPop.quit; exit; end; ... what could be the cause that the component is not ready after the error ? After sending command Quit you should receive a

[twsocket] POP3

2006-12-29 Thread Rob Ashburn
Hi all, I've never used the email components before, so forgive me if these are dumb questions. I've been looking at the MailRcv demo, and while I think I have an idea what it's doing, I'm a little confused. What is the difference between Open and Connect? Is it that Connect simply gets the

Re: [twsocket] POP3

2006-12-29 Thread [EMAIL PROTECTED]
Hello: I haven't worked with POP3 authentication, so I can't answer those questions, but at least I can give you an answer to your first question: --- quote: What is the difference between Open and Connect? Is it that Connect simply gets the server's attention, so to speak, such that User,

Re: [twsocket] POP3

2006-12-29 Thread Rob Ashburn
Hi, You are absolutely correct. Thanks for that dZ! Rob. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] Pop3 Compoent not ready

2006-02-28 Thread Nick
Hi there, I am using Pop3Cli however, if I try and connect and say, my username or my host is wrong, if I correct that and try again I get the error 'POP3 component not ready' if i close the software and open it again I can try and connect again with out the above message I tried doing try

Re: [twsocket] POP3 Client - changing folders on the server

2006-02-09 Thread DZ-Jay
Hello: With POP3, there is no notion of folders or any organization of messages. It is just reads a single file. When you said that your ISP added a spam folder, what do you mean? Did they add this to a WebMail application? If so, this has nothing to do with the POP3 server.

Re: [twsocket] POP3 Client - changing folders on the server

2006-02-08 Thread Angus Robertson - Magenta Systems Ltd
I have written an ap using the POP3 component to access mail from my ISP. I can also access my email via the internet. The ap works perfectly, but my ISP has recently added a spam folder Effectively the mail is being put into a separate mailbox, you just log into that mailbox instead. My

[twsocket] POP3 List

2005-11-09 Thread Michael Lorenz
Hi DZ, sorry, I've deleted your last message ;-) But I read it... It was a little bit principal to use it with the ICS compos (great work, francois!) Now I have seen the way how it works and I'll use the unique message IDs for safer work! Again thanks a lot, DZ!!! Kind regards, Michael