| View previous topic :: View next topic |
| Author |
Message |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Feb 19, 2004 1:18 am Post subject: Re: How does one decode an RFC-822 MIME message stream? |
|
|
"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
|
Posted: Thu Feb 19, 2004 9:38 am Post subject: Re: How does ... Access to Content-ID |
|
|
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
|
Posted: Thu Feb 19, 2004 7:26 pm Post subject: Re: How does ... Access to Content-ID |
|
|
"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
|
Posted: Thu Feb 19, 2004 11:42 pm Post subject: Re: Access to Content-ID... where is it? |
|
|
| 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
|
Posted: Fri Feb 20, 2004 12:54 am Post subject: Re: Access to Content-ID... where is it? |
|
|
"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
|
Posted: Fri Feb 20, 2004 4:05 am Post subject: Re: Access to Content-ID... where is it? |
|
|
"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
|
Posted: Fri Feb 20, 2004 5:50 am Post subject: Re: Access to Content-ID... where is it? |
|
|
"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 |
|
 |
|