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 

Re: How does one decode an RFC-822 MIME message stream?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Feb 19, 2004 1:18 am    Post subject: Re: How does one decode an RFC-822 MIME message stream? Reply with quote




"Sean B. Durkin" <sdurkin (AT) siliconrose (DOT) com.au> wrote

Quote:
How does one decode an RFC-822 MIME message stream?

I am using Delphi 7 with Indy 9.

Simply load the stream into a TIdMessage. It handles the decoding for you.

Quote:
I have tried to use TidMessageDecoderMIME

You do not need to use that directly. TIdMessage will use it internally.


Gambit



Back to top
Sean B. Durkin
Guest





PostPosted: Thu Feb 19, 2004 9:38 am    Post subject: Re: How does ... Access to Content-ID Reply with quote




Thanks for that. I have a follow-up question.

Do Indy classes (TIdMessage/TIdMessagePart/TIdAttachment) support the "Content-ID" message part header?

If not, how does one sense this header value?

Faithfully,
Sean B. Durkin



"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
Quote:

"Sean B. Durkin" <sdurkin (AT) siliconrose (DOT) com.au> wrote in message
news:Xns949476D15BF12seanbdurkin (AT) 207 (DOT) 105.83.66...
How does one decode an RFC-822 MIME message stream?

I am using Delphi 7 with Indy 9.

Simply load the stream into a TIdMessage. It handles the decoding for you.

I have tried to use TidMessageDecoderMIME

You do not need to use that directly. TIdMessage will use it internally.


Gambit




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Feb 19, 2004 7:26 pm    Post subject: Re: How does ... Access to Content-ID Reply with quote




"Sean B. Durkin" <sean (AT) crocware (DOT) com> wrote


Quote:
Do Indy classes (TIdMessage/TIdMessagePart/TIdAttachment)
support the "Content-ID" message part header?

Yes. TIdMessagePart has a ContentID property.


Gambit



Back to top
Vu Do
Guest





PostPosted: Thu Feb 19, 2004 11:42 pm    Post subject: Re: Access to Content-ID... where is it? Reply with quote

Quote:

I am using Delphi 7 with the stock standard Indy 9. In my copy
of the VCL there is definetly no ContentID property of
TIdMessagePart. The definition of the class, I have copied
from my installation of the Delphi/Indy VCL below.


I don't see it in Indy 9 either but it is in Indy 10. You
may have to upgrade to get this functionality but Gambit will
have a better idea if you need to do this or not.

TIdMessagePart = class(TCollectionItem)
...

...
published
property ContentTransfer: string read GetContentTransfer write SetContentTransfer;
property ContentType: string read GetContentType write SetContentType;
property ExtraHeaders: TIdHeaderList read FExtraHeaders write SetExtraHeaders;
property ContentID: string read GetContentID write SetContentID;
property ContentLocation: string read GetContentLocation write SetContentLocation;
property ParentPart: integer read FParentPart write FParentPart;
end;

Thanks,
Vu Do

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Feb 20, 2004 12:54 am    Post subject: Re: Access to Content-ID... where is it? Reply with quote


"Sean B. Durkin" <sdurkin (AT) siliconrose (DOT) com.au> wrote


Quote:
I am using Delphi 7 with the stock standard Indy 9.

You need to upgrade your version of Indy. I think Delphi shipped with
9.0.10. Even though the current version is 9.0.14, it has not been updated
in a long time. The snapshot version is update to date, though, and the
ContentID property was introduced 4 months ago.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Feb 20, 2004 4:05 am    Post subject: Re: Access to Content-ID... where is it? Reply with quote

"Sean B. Durkin" <sdurkin (AT) siliconrose (DOT) com.au> wrote


Quote:
I have found the ContentID property in Indy version
10, but not in verion 9.0.10 .

I did not say it was in 9.0.10. 9.0.14 is the current version now.

Quote:
How does one install version 10?
The directory structure is completely different.

Not only is it different, but it just recently underwent another completely
different layout change again. I honestly couldn't tell you how to compile
it at this point. Someone else will have to do that.

Have you considered installing 9.0.14 instead?

Quote:
I tried lumping all the files together into one directory

That will not work. Although there has been some discussion about doing
that for the final release version.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Feb 20, 2004 5:50 am    Post subject: Re: Access to Content-ID... where is it? Reply with quote

"Sean B. Durkin" <sdurkin (AT) siliconrose (DOT) com.au> wrote


Quote:
I am using 9.0.14, but alas, ContentID is not in 9.0.14

Yes, it is. I know because I added that property myself. Make sure that
you install the *snapshot* version of 9.0.14, not the *release* version. I
told you earlier that the release version hadn't been updated in a long
time, but the snapshot is up to date.

Quote:
To overcome this problem, I have modified the indy source
(from a base-line of 9.0.14), to include a ContentID function.

It already has one, if you install the latest sources.


Gambit



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.