Thunderbird/TestPlans/SendInBackground: Difference between revisions

Jump to navigation Jump to search
more complete description
(more complete description)
Line 7: Line 7:
== High Level Description ==
== High Level Description ==


The idea here is that when a user sends an email, they don't want to have to wait for the email to be sent before getting on with the next task. The intention is to utilise Thunderbird's existing "Send Later" mechanism to send the emails in the background with some added automation.
The idea is that when a user sends an email, they don't want to have to wait for the email to be sent before getting on with the next task. The intention is to utilise Thunderbird's existing "Send Later" mechanism to send the emails in the background with some added automation.


Note that the existing Send Later mechanism remains intact.
Note that the existing Send Later mechanism remains intact.


The added advantage of sending in the background, is that if there is an error the code can automatically handle that and proceed with sending other emails and/or wait until a bit later to try again. Obviously if there are persistent failures, then Thunderbird should alert the user.
The added advantage of sending in the background, is that if there is an error then the code can automatically handle that and proceed with sending other emails, and/or wait until a bit later to try again. If there are persistent failures, then Thunderbird should alert the user.


One area we have to be careful with is shutdown - if Thunderbird is in the process of sending an email, we shouldn't abort that - but allow it to be finished (whilst also informing the user). Additionally, if emails are waiting to be sent, we should potentially alert about those as well.
One area we have to be careful with is shutdown - if Thunderbird is in the process of sending an email, we shouldn't abort that - but allow it to be finished (whilst also informing the user). Additionally, if emails are waiting to be sent, we should potentially alert about those as well.
Line 17: Line 17:
== Current Status ==
== Current Status ==


The feature is currently disabled by default due to being incomplete. To enable the feature for testing, go into Preferences -> Advanced -> General -> Config Editor and change <code>mailnews.sendInBackground</code> to <code>true</code> and '''restart''' Thunderbird.
The feature is currently disabled by default due to pieces that are not yet implemented. To enable the feature for testing, go into Preferences -> Advanced -> General -> Config Editor and change <code>mailnews.sendInBackground</code> to <code>true</code> and '''restart''' Thunderbird. (Note, to have a "silent" send in background, one should also set <code>mailnews.show_send_progress</code> to <code>false</code> which stops showing of the send 'progress' window.)


The following parts are implemented:
The following parts are implemented:
Line 28: Line 28:
** Sending a message and attempting to quit should bring up a dialog which is retained until the message is sent. On Windows and Linux this will only happen if File -> Quit is used not the 'x' on the window.
** Sending a message and attempting to quit should bring up a dialog which is retained until the message is sent. On Windows and Linux this will only happen if File -> Quit is used not the 'x' on the window.


Not implemented:
Partial list of parts are not yet implemented (for more details see the open bugs which block {{bug|511079}}):


* If there is an error, Thunderbird won't attempt to automatically send the message a second time (until another message is sent).
* If there is an error, Thunderbird does not yet attempt to automatically send the message a second time (until another message is sent).
* If there are multiple messages queued, Thunderbird won't attempt to automatically send other messages that are queued.
* If there are multiple messages queued, Thunderbird does not yet attempt to automatically send other messages that are queued.
* Thunderbird won't notify the user if messages are being sent during shutdown.
* Thunderbird does not yet notify the user if messages are being sent during shutdown.


== Test Steps ==
== Test Steps ==
(Note: read the current status in conjunction with this section).
(Note: read the current status above in conjunction with this section).


When the feature lands, sending of messages should happen pretty much straight away - once the message is copied to disk, the compose window should be automatically closed and then the only updates will be the message send progress.
When the feature lands, sending of messages should happen pretty much straight away - once the message is copied to disk, the compose window should be automatically closed and then the only updates will be the message send progress.
Line 45: Line 45:
If shutting down with pending messages, Thunderbird should notify the user.
If shutting down with pending messages, Thunderbird should notify the user.


Thunderbird will try to send messages multiple times if they fail. After TBD attempts, Thunderbird will alter the user.
Thunderbird will try to send messages multiple times if they fail. After TBD attempts, Thunderbird will alert the user.


For testing purposes, we're going to maintain the set of activity manager events, and their categorization (error, events, processes) [[Thunderbird/ActivityManagerEvents|here]].
For testing purposes, we're going to maintain the set of activity manager events, and their categorization (error, events, processes) [[Thunderbird/ActivityManagerEvents|here]].
canmove, Confirmed users
2,197

edits

Navigation menu