Google グループは Usenet の新規の投稿と購読のサポートを終了しました。過去のコンテンツは引き続き閲覧できます。
Dismiss

[Thunderbird] How to extract information from a mail

閲覧: 19 回
最初の未読メッセージにスキップ

Sami Amouri

未読、
2006/10/03 14:14:032006/10/03
To:
Hello,

I'm currently working on a plugin that save mail on a server. I wanted to
know how to extract the subject, sender, date and the body of a mail when
you are reading one.

Thanks.

--
Sami AMOURI - EPITA SIGL Promotion 2007
Mail: amou...@free.fr
Tel: +33 (0)6 12 11 27 11
URL: http://www.sigl.epita.net/


Brian King

未読、
2006/10/08 15:38:112006/10/08
To:
On 03/10/2006 20:14 (CET), Sami Amouri wrote:
> Hello,
>
> I'm currently working on a plugin that save mail on a server. I wanted to
> know how to extract the subject, sender, date and the body of a mail when
> you are reading one.

Subject, sender and date can be retrieved via the nsIMsgHdr interface.

To get the body of a message, use nsIMsgMessageService.streamMessage.
The message service for a particular message can be got by the global
messenger.messageServiceFromURI(aURI).

--
Brian King
www.mozdev.org - free project hosting for the Mozilla community

新着メール 0 件