开发者

thunderbird extension - iterate over messages in a folder

开发者 https://www.devze.com 2023-02-20 14:56 出处:网络
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,

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

精彩评论

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

关注公众号