开发者

thunderbird extension - iterate over messages in a folder

I'm writing a thunderbird extension that should monitor开发者_如何学Python one or more folders (from the left pane of the application) and if there are messages added to one of the monitored folders, they are sent automatically via webdav to a server (for archiving).

I found here how to iterate over all folders in all accounts. My question is how can I iterate over the messages (mails) in a folder


The nsiMsgFolder interface should provide everything you need. If you want to react on incoming messages, I'd register a nsiFolderListener. It gets notified everytime a message is added to the folder.

You could check if these snippets help you.

I also found a somewhat older document detailing the mail event system. It is flagged as in need of technical review but might give you a decent starting point.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜