Open Bug 753682 Opened 12 years ago Updated 2 years ago

Support for asynchronous in nsIMsgFilterCustomAction.apply for incoming messages

Categories

(MailNews Core :: Filters, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: eg13reg, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
Build ID: 20120310010446

Steps to reproduce:

nsIMsgFilterCustomAction allows extension to create custom filter actions. But if action takes time (for example, if you need to process incoming message body by IMAP), you have to choose between thunderbird's freezes on synchronous method, and risk of not have time to process message if the next user action is delete or move message and you use asynchronous methods in action. Also there is functions in Thunderbird that has no synchronous implementation, so, you are forced to choose the second variant.


Actual results:

There is "isAsync" property in nsIMsgFilterCustomAction that allows user to use async functions, but in real (and according to it's the documentation) it works only on the manual started filters.


Expected results:

Ability to use isAsync property for incoming message type will allow to use asynchronous calls in actions.
OS: Linux → All
Hardware: x86 → All
Component: General → Filters
Product: Thunderbird → MailNews Core
QA Contact: general → filters
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Rkent, I think you were talking about something like this.
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.