BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdPop3 - long messages
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 1:24 am    Post subject: TIdPop3 - long messages Reply with quote



Hi people,

I have a problem using TIdPOP3. It retrieves long messages, but after
retrieval I get 'index was outside the bounds of the array' when calling
the retrieve method for the next message. I guess the server disconnects
after transmitting the message. Any idea how I can retrieve huge
messages w/o losing the connection? I use 'RetrieveRaw' to get the
original message text.

--
Holger
Back to top
DonS
Guest





PostPosted: Thu Mar 24, 2005 1:46 am    Post subject: Re: TIdPop3 - long messages Reply with quote



Quote:
I have a problem using TIdPOP3. It retrieves long messages, but after
retrieval I get 'index was outside the bounds of the array' when calling
the retrieve method for the next message. I guess the server disconnects
after transmitting the message. Any idea how I can retrieve huge
messages w/o losing the connection? I use 'RetrieveRaw' to get the
original message text.

Is it possible that your ReadTimeout value is too low for some content in the raw message? You can check IOHandler.ReadLnTimedOut after the call to RetrieveRaw.

Does the TIdStrings argument have the complete content of the message after RetrieveRaw?


Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 8:52 am    Post subject: Re: TIdPop3 - long messages Reply with quote



Hi DonS,

I looked into it very detailed now. It does not depend on any timeouts.
If I retrieve a certain message from the POP server using the client
(not depending if I retrieved something before or not) the exception
occurs in RetrieveRaw. It's a bug. Indy just throws an exception when I
try to receive that message.

Any hints what to do now?

--
Holger

DonS wrote:
Quote:
I have a problem using TIdPOP3. It retrieves long messages, but after
retrieval I get 'index was outside the bounds of the array' when calling
the retrieve method for the next message. I guess the server disconnects
after transmitting the message. Any idea how I can retrieve huge
messages w/o losing the connection? I use 'RetrieveRaw' to get the
original message text.


Is it possible that your ReadTimeout value is too low for some content in the raw message? You can check IOHandler.ReadLnTimedOut after the call to RetrieveRaw.

Does the TIdStrings argument have the complete content of the message after RetrieveRaw?


Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 9:01 am    Post subject: Re: TIdPop3 - long messages Reply with quote

Hi again,

there is more: Indy does not seem to be able to get interpret the
content of the server correctly. I log the number of the message that is
going to be retrieved next and I get text of a message instead of the
message itself... So there is something wrong with parsing...

--
Holger

Holger Flick wrote:
Quote:
Hi DonS,

I looked into it very detailed now. It does not depend on any timeouts.
If I retrieve a certain message from the POP server using the client
(not depending if I retrieved something before or not) the exception
occurs in RetrieveRaw. It's a bug. Indy just throws an exception when I
try to receive that message.

Any hints what to do now?

--
Holger

DonS wrote:

I have a problem using TIdPOP3. It retrieves long messages, but after
retrieval I get 'index was outside the bounds of the array' when
calling the retrieve method for the next message. I guess the server
disconnects after transmitting the message. Any idea how I can
retrieve huge messages w/o losing the connection? I use 'RetrieveRaw'
to get the original message text.



Is it possible that your ReadTimeout value is too low for some content
in the raw message? You can check IOHandler.ReadLnTimedOut after the
call to RetrieveRaw.

Does the TIdStrings argument have the complete content of the message
after RetrieveRaw?

Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 9:51 am    Post subject: Re: TIdPop3 - long messages Reply with quote

And: retrieveHeader works just fine for all messages. So basically,
retrieve (I tested that as well) and retrieveRaw do not work correctly...

--
Holger
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Mar 24, 2005 10:53 am    Post subject: Re: TIdPop3 - long messages Reply with quote


"Holger Flick" <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote


Quote:
there is more: Indy does not seem to be able to get interpret
the content of the server correctly. I log the number of the
message that is going to be retrieved next and I get text of a
message instead of the message itself... So there is something
wrong with parsing...

That is not very helpful information. Please show EXACTLY what is
happening. What does the TIdPOP3 actually send to the server? What does
the server actually send back? What is the contents of the TStrings after
the retreival completes? Use a packet sniffer, such as Ethereal, or one of
indy's TIdLog... components, such as TIdLogFile, so find out exactly what is
happening in the conversation between TIdPOP3 and the server.


Gambit



Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 11:15 am    Post subject: Re: TIdPop3 - long messages Reply with quote

Hi Remy,

it's RETR x.

Then Indy goes into the Capture method of the IOHandler and <boom> Index
out of bounds. I will "debug" it using Etherald though.

(Is there perhaps a new version of Indy AFTER Delphi 2005 was released
that fixes something in POP3? I just think of the D8 version that came
with Delphi, which was completely not working)

--
Holger

Remy Lebeau (TeamB) wrote:
Quote:
"Holger Flick" <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote in message
news:424281fe (AT) newsgroups (DOT) borland.com...


there is more: Indy does not seem to be able to get interpret
the content of the server correctly. I log the number of the
message that is going to be retrieved next and I get text of a
message instead of the message itself... So there is something
wrong with parsing...


That is not very helpful information. Please show EXACTLY what is
happening. What does the TIdPOP3 actually send to the server? What does
the server actually send back? What is the contents of the TStrings after
the retreival completes? Use a packet sniffer, such as Ethereal, or one of
indy's TIdLog... components, such as TIdLogFile, so find out exactly what is
happening in the conversation between TIdPOP3 and the server.


Gambit



Back to top
Chad Z. Hower aka Kudzu
Guest





PostPosted: Thu Mar 24, 2005 12:43 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Holger Flick <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote in
news:4242a16f$1 (AT) newsgroups (DOT) borland.com:
Quote:
(Is there perhaps a new version of Indy AFTER Delphi 2005 was released

Yes.

Quote:
that fixes something in POP3? I just think of the D8 version that came
with Delphi, which was completely not working)

Well that was D8 likely that was not working. Smile Notice we dont support D8 at
all anymore? :)


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Qualified help FAST with Indy Experts Support
from the experts themselves:

http://www.atozed.com/indy/experts/support.iwp

Back to top
DonS
Guest





PostPosted: Thu Mar 24, 2005 6:38 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Quote:
(Is there perhaps a new version of Indy AFTER Delphi 2005 was released
that fixes something in POP3? I just think of the D8 version that came
with Delphi, which was completely not working)

What does systemIdVers.inc contain? The latest is 10.0.66.

A daily zip of files from version control is located at http://indy.fulgan.com/ZIP/indy10.zip.



Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 8:33 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Thanx, that link is a pure time-saver! I never find my way around the
Indy pages.

--
Holger

DonS wrote:
Quote:
(Is there perhaps a new version of Indy AFTER Delphi 2005 was released
that fixes something in POP3? I just think of the D8 version that came
with Delphi, which was completely not working)


What does systemIdVers.inc contain? The latest is 10.0.66.

A daily zip of files from version control is located at http://indy.fulgan.com/ZIP/indy10.zip.



Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 9:11 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

How do I build it? I am trying manually, but I fear VCL.NET support
won't be working... Any doc somewhere?

--
Holger

DonS wrote:
Quote:
(Is there perhaps a new version of Indy AFTER Delphi 2005 was released
that fixes something in POP3? I just think of the D8 version that came
with Delphi, which was completely not working)


What does systemIdVers.inc contain? The latest is 10.0.66.

A daily zip of files from version control is located at http://indy.fulgan.com/ZIP/indy10.zip.



Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 9:44 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Hi Don,

wonderful Delphi won't accept the new packages and assemblies for my old
projects. Everything is installed, but still Delphi won't accept the new
stuff.

I have to reinstall now, because I can't load any of my projects using
Indy :-(

I can understand that Indy is a project not under Borland's control, but
because of the fact that Borland deploys it with Delphi the support for
updates should be much better.

--
Holger
Back to top
DonS
Guest





PostPosted: Thu Mar 24, 2005 9:57 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Quote:
How do I build it? I am trying manually, but I fear VCL.NET support
won't be working...

The same way you build any .DPK file. Open and compile a run-time package. Open, Compile, and Install a design-time package.


Back to top
Holger Flick
Guest





PostPosted: Thu Mar 24, 2005 10:28 pm    Post subject: Re: TIdPop3 - long messages Reply with quote

Hi Don,

Quote:
The same way you build any .DPK file. Open and compile a run-time package. Open, Compile, and Install a design-time package.

I tried to remove the Indy stuff that comes with Delphi. But there is
still something that conflicts with the old packages. Furtermore, the
packages have been renamed, so my package won't get loaded and Delphi
throws an exception I cannot understand, because the error message is
incomplete and missing information. It says "There has been an exception
in ." Very depressing.

--
Holger

Back to top
Chad Z. Hower aka Kudzu
Guest





PostPosted: Fri Mar 25, 2005 2:41 am    Post subject: Re: TIdPop3 - long messages Reply with quote

Holger Flick <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote in
news:4243241e$1 (AT) newsgroups (DOT) borland.com:
Quote:
Thanx, that link is a pure time-saver! I never find my way around the
Indy pages.

Its linked on the download page AFAIK.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Got Indy? Got the book?

http://www.atozed.com/indy/book/

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.