 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Antonello Carlomagno Guest
|
Posted: Thu Sep 18, 2003 2:05 pm Post subject: Decode Header |
|
|
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
|
Posted: Thu Sep 18, 2003 2:46 pm Post subject: Re: Decode Header |
|
|
"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
|
Posted: Thu Sep 18, 2003 3:19 pm Post subject: Re: Decode Header |
|
|
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
|
Posted: Thu Sep 18, 2003 3:33 pm Post subject: Re: Decode Header |
|
|
"Antonello Carlomagno" <a.carlomagno (AT) grupposynergica (DOT) it> wrote in message
[email]3f69cdfd (AT) newsgroups (DOT) borland.com[/email]...
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 |
|
 |
|
|
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
|
|