Closed Bug 949502 Opened 9 years ago Closed 9 years ago

[User Story] Email - Timed Background Send from Outbox

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.1, b2g-v2.1 verified, b2g-v2.2 verified)

VERIFIED FIXED
2.0 S6 (18july)
feature-b2g 2.1
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: arogers, Assigned: mcav)

References

Details

(Whiteboard: [ucid:Productivity89, 1.5:P2, ft:productivity] [p=3])

User Story:

As a user, I want my email to be automatically sent when it is in my outbox. In order to do this, my phone should check periodically to determine if it is has a data connection. When the connection is detected all the email in my outbox should be sent.

Assumption: Interval or mechanism for a user set interval to be determined by UX. If a user set interval is desired an additional user story will be created.

Acceptance Criteria:

1. The email application wakes at a specified interval and checks for a data connection
2. The interval should be determined based upon UX input or a mechanism whereby it can be set by the user.
3. If a data connection is detected, the emails the email application will attempt to send the messages
4. Once an email is sent successfully it is removed from the outbox
5. Unsent emails and emails with send errors should remain in the outbox.
6. Errors should be handled as per UX guidelines TBD.
Whiteboard: [ucid:Productivity89, 1.4:P2, ft:productivity] → [ucid:Productivity89, 1.5:P2, ft:productivity]
Hey Juwei,

In the Outbox Spec, you mention that the default time interval for sending outbox messages should "align to the data check for new messages." Do you want this to always match, even if the "check for new messages" sync interval is set to "Manually"? Or do you want the outbox to always try to sync at some interval even if the user has "Manually" chosen?
Flags: needinfo?(jhuang)
Hmm I know your concern. 
But I still think it's better to keep these two interval times align to each other... otherwise we probably will sync the data sneakily in the background that users might want save their data usage at the moment.
Flags: needinfo?(jhuang)
feature-b2g: --- → 2.0
Assignee: nobody → m
Target Milestone: --- → 2.0 S2 (23may)
Clarifying the thread above: In this iteration, timed background send will occur only when incoming mails would be synced. In other words, if they've set "5 minutes" as the e-mail interval to sync, we will also check the outbox every 5 minutes. If they set "manually" as the sync interval, it will _not_ attempt to send outbox messages until/unless they do it manually.
Flags: in-moztrap+
Target Milestone: 2.0 S2 (23may) → 2.0 S3 (6june)
QA Contact: edchen
feature-b2g: 2.0 → 2.1
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
Whiteboard: [ucid:Productivity89, 1.5:P2, ft:productivity] → [ucid:Productivity89, 1.5:P2, ft:productivity] [p=3]
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Target Milestone: 2.0 S5 (4july) → ---
Resolved in bug 921050.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S6 (18july)
QA Whiteboard: [COM=Productivity]
QA Whiteboard: [COM=Productivity] → [COM=Gaia::E-Mail]
Verified Fixed - Emails are immediately sent when they enter the Outbox. If the user lacks an internet connection, upon regaining connection, the email app will eventually automatically send the message as long as the email app is open and in the background. 

Flame 2.1

Environmental Variables:
Device: Flame 2.1 (319mb)
Build ID: 20140905000202
Gaia: 95e9b099aa89ded133e44014dd40b19dc0193c01
Gecko: 92a6bbdfd945
Version: 34.0a2
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [COM=Gaia::E-Mail] → [COM=Gaia::E-Mail][QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Please ignore comment 6. Cannot verify because of number 6 in comment 0. Messages that couldn't be sent because of an error are showing the wrong icon in the Outbox. Please see bug 1064509
Status: VERIFIED → RESOLVED
Closed: 9 years ago9 years ago
QA Whiteboard: [COM=Gaia::E-Mail][QAnalyst-Triage?] → [COM=Gaia::E-Mail][QAnalyst-Triage+]
Depends on: 1064509
Flags: needinfo?(ktucker)
No longer depends on: 1064509
bug 1064509 is a minor polish bug not a blocker.

Verifying this issue as fixed on the Flame 2.1(319mb) and the Flame 2.2(319mb)

Flame 2.2

Environmental Variables:
Device: Flame Master (319mb)
Build ID: 20140908040204
Gaia: c71fd5d8c9c7cb021c97e5e9fbb29f92b50a084d
Gecko: 892768985915
Version: 35.0a1 (Master)
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0

Flame 2.1

Environmental Variables:
Device: Flame 2.1(319mb)
Build ID: 20140908000204
Gaia: a8e4d26555e5713ec6c72270cfd0cfabc096a0d3
Gecko: 746f24f9d21d
Version: 34.0a2
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0

All emails in the inbox are sent once a data connection is detected, emails are removed from the the outbox once sent and unsent emails with send errors remain in the outbox.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.