 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ivan Sammut Guest
|
Posted: Sat May 19, 2007 11:25 pm Post subject: idMessage Problem |
|
|
Hi,
I have an e-mail file (you can find it in the newsgroup
borland.public.attachment) which I am trying to access thru tIdMessage. The
E-mail is composed of a body and some attachments which they open fine when
I open them in microsoft outlook but when I try to open it thru tIdMessage
it does find the attached files in the e-mail and even the body of the mail
is not full.
Any one has any idea?
Thanks
Ivan |
|
| Back to top |
|
 |
AntonE Guest
|
Posted: Sat May 19, 2007 11:35 pm Post subject: Re: idMessage Problem |
|
|
I haven't looked at your email, but have you had a look at
idMessage.MessageParts property... ?
Which Indy are you using?
AntonE |
|
| Back to top |
|
 |
Ivan Sammut Guest
|
Posted: Sat May 19, 2007 11:48 pm Post subject: Re: idMessage Problem |
|
|
I am using Indy10 with Delphi 6, I checked the idMessageParts, as I count it
gives 3 but if you look at the attached file you can see that there are at
least 7 4 of which are attachments and which Indy are not even recognizing
Ivan
"AntonE" <antone (AT) true (DOT) co.za> wrote in message
news:464f4328 (AT) newsgroups (DOT) borland.com...
| Quote: | I haven't looked at your email, but have you had a look at
idMessage.MessageParts property... ?
Which Indy are you using?
AntonE
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sun May 20, 2007 1:08 am Post subject: Re: idMessage Problem |
|
|
"Ivan Sammut" <sammuts (AT) nextgen (DOT) net.mt> wrote in message
news:464f470a (AT) newsgroups (DOT) borland.com...
Which exact build, though?
| Quote: | I checked the idMessageParts, as I count it gives 3
|
It should be parsing out 8 distinct parts - 2 'multipart/...' parts, 2
'text/...' parts, 3 'application/octet-stream' attachments, and 1
'application/zip' attachment. If it is not, then there is a bug in
your version.
| Quote: | if you look at the attached file you can see that there are at least
7 4 of which are attachments and which Indy are not even recognizing
|
What does your actual code look like?
Gambit |
|
| Back to top |
|
 |
Ivan Sammut Guest
|
Posted: Sun May 20, 2007 8:06 pm Post subject: Re: idMessage Problem |
|
|
I am using the latest version available for download (Version :
10.1.5.17875).
My code is just :
var
idMsg1 : TIdMessage;
begin
idMsg1.LoadFromFile('c:\149766.txt',false);
Form1.Caption := idMsg1.MEssageParts.Count; //<<and here the answer is 3
(the multipart, the text/plain & the text/html)
end;
Am i doing something wrong?
Thanks
Ivan
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:464f5987$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Ivan Sammut" <sammuts (AT) nextgen (DOT) net.mt> wrote in message
news:464f470a (AT) newsgroups (DOT) borland.com...
I am using Indy10
Which exact build, though?
I checked the idMessageParts, as I count it gives 3
It should be parsing out 8 distinct parts - 2 'multipart/...' parts, 2
'text/...' parts, 3 'application/octet-stream' attachments, and 1
'application/zip' attachment. If it is not, then there is a bug in
your version.
if you look at the attached file you can see that there are at least
7 4 of which are attachments and which Indy are not even recognizing
What does your actual code look like?
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon May 21, 2007 6:03 am Post subject: Re: idMessage Problem |
|
|
"Ivan Sammut" <sammuts (AT) nextgen (DOT) net.mt> wrote in message
news:46506466$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I am using the latest version available for download
(Version : 10.1.5.17875).
|
That is not the latest version. 10.1.6 is the latest.
| Quote: | var
idMsg1 : TIdMessage;
begin
idMsg1.LoadFromFile('c:\149766.txt',false);
|
You did not instantiate the TIdMessage object before using it:
idMsg1 := TIdMessage.Create;
//...
idMsg1.Free;
Gambit |
|
| 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
|
|