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 

Decode Header

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Antonello Carlomagno
Guest





PostPosted: Thu Sep 18, 2003 2:05 pm    Post subject: Decode Header Reply with quote



HI,
I hope that someone can help me. my indy version is 9.0.4

I tried to receive a email header from my mailbox.
There are 10 message,

- Connect with idPOP3
- call idPOP3.retreiveheader( nr, idMessage);

but when read the 5Th header message I received this error: '$?i' is not a
valid integer value

I found in the source that the error is in the decode subject.....
the subject of email is:

Subject: =?iso-8859-1?Q?IT_Insights_=96_Reaping_value_from_information_?=

=?iso-8859-1?Q?assets_-_Adaptive_Organization=3A_Where_and_When_Is_the?=

=?iso-8859-1?Q?_R_=3D=3Fiso-8859-1=3FQ=3FOI=3F_=3D96_Complete_guide_to?=
=?iso-8859-1?Q?_Wireless_LAN_policy=3F=3D?=


I found the except raised in this point of idCoderHeader:
---------------------------------
// Get the HeaderEncoding
if (AnsiSameText(HeaderEncoding, 'Q')) {Do not Localize}
and (EncodingFound) then
begin
i := 1;
s := ''; {Do not Localize}
repeat // substring can be accessed by index here, because we know
that it ends with '?=' {Do not Localize}
if substring[i] = '_' then {Do not Localize}
begin
s := s + ' '; {Do not Localize}
end else if (substring[i] = '=') and (Length(substring)>=i+2+2)
then //make sure we can access i+2 and '?=' is still beyond {Do not
Localize}
begin
s := s + chr(StrToInt('$' + substring[i+1] + substring[i+2]));
{Do not Localize} <----------------------------------ERROR !!!!!!!!!!!!!
inc(i,2);
end else
begin
s := s + substring[i];
end;
inc(i);
until (substring[i]='?') and (substring[i+1]='=') {Do not
Localize}
end else if EncodingFound then
---------------------------------

please help
antonello


Back to top
Ignacio Vazquez
Guest





PostPosted: Thu Sep 18, 2003 2:46 pm    Post subject: Re: Decode Header Reply with quote



"Antonello Carlomagno" <a.carlomagno (AT) grupposynergica (DOT) it> wrote in message
[email]3f69bc99 (AT) newsgroups (DOT) borland.com[/email]...
Quote:
I hope that someone can help me. my indy version is 9.0.4

If you upgrade to the latest version, does the problem go away?

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



Back to top
Antonello Carlomagno
Guest





PostPosted: Thu Sep 18, 2003 3:19 pm    Post subject: Re: Decode Header Reply with quote



yes, I have change the idCoderHeader.pas with the last 9.0.14, but
nothing....

the source code is equal...no difference

Have you a idea ?

antonello


"Ignacio Vazquez" <ivazquezATorioncommunications.com> ha scritto nel
messaggio news:3f69c531 (AT) newsgroups (DOT) borland.com...
Quote:
"Antonello Carlomagno" <a.carlomagno (AT) grupposynergica (DOT) it> wrote in message
[email]3f69bc99 (AT) newsgroups (DOT) borland.com[/email]...
I hope that someone can help me. my indy version is 9.0.4

If you upgrade to the latest version, does the problem go away?

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.





Back to top
Ignacio Vazquez
Guest





PostPosted: Thu Sep 18, 2003 3:33 pm    Post subject: Re: Decode Header Reply with quote

"Antonello Carlomagno" <a.carlomagno (AT) grupposynergica (DOT) it> wrote in message
[email]3f69cdfd (AT) newsgroups (DOT) borland.com[/email]...
Quote:
Have you a idea ?

Myself, no. But if you try posing at the Indy newsgroups at news://news.atozedsoftware.com/
I'm sure that they can help you there.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



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

 
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.