Closed Bug 273496 Opened 20 years ago Closed 18 years ago

pressing 'get new messages' asks to send unsent messages when going online

Categories

(MailNews Core :: Backend, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.9alpha1

People

(Reporter: aceman, Assigned: mkmelin)

References

Details

(Keywords: verified1.8.1.2)

Attachments

(3 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla 1.7.3

I have selected the pref 'when going online, DO NOT automatically send unsent
messages (and don't ask)'.

Reproducible: Always
Steps to Reproduce:
1.Be offline
2.Prepare a message
3.Press 'get new messages'
4.Moz asks if you want to go online - yes

Actual Results:  
Then it asks if you want to send unsent messages.

Expected Results:  
Do not ask me about that and proceed to download new mail without sending anything.
Version: unspecified → 1.7 Branch
Confirming with current trunk build. Bug 235406 might be a bit related here.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 235406
CC'ing Magnus, who fixed a similar problem at bug 274280.
OS: Windows 98 → All
Hardware: PC → All
Version: 1.7 Branch → Trunk
This is WFM on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070105 Thunderbird/2.0b1 ID:2007010503
I can confirm this bug for SeaMonkey on Win XP. For both versions I will be prompted for sending the unsent msgs too if the option is set to no/ask. So I guess this special behavior is SM specific.

SM trunk build 2006122108
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20061221 SeaMonkey/1.5a
SM 1.8.1 branch build 2006122101
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20061221 SeaMonkey/1.1
Severity: normal → minor
I reproduced this also -- 2b1-0105, Win2K -- before CC'ing you, Magnus.
Could this be Windows specific? Someone should test this with SM on Linux or others.
Sorry, I can reproduce it now... don't know why I couldn't yesterday.
This fixes is for thunderbird.
Assignee: bienvenu → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #250961 - Flags: review?(mscott)
Comment on attachment 250961 [details] [diff] [review]
proposed fix (thunderbird)

cool!
Attachment #250961 - Flags: review?(mscott) → review+
Attaching this since the patch does not apply cleanly to branch. (And no, I have no idea why the three first hunks are included in this diff - they look identical to me.)
Whiteboard: [checkin needed]
mozilla/mail/base/content/mail-offline.js 	1.7
mozilla/mail/base/content/msgMail3PaneWindow.js 	1.114
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
This is (also) a Suite bug and the patch is only for Thunderbird, so it isn't really fixed. Magnus, are you going to fix SM as well? I hope so. :-) Otherwise should the bug reopened.
Yes, seamonkey patch coming up. Moving to Core so i can ask tb2 approval...
Component: MailNews: Offline → MailNews: Backend
Product: Mozilla Application Suite → Core
Target Milestone: --- → mozilla1.9alpha
Attachment #250963 - Flags: approval-thunderbird2?
Attached patch proposed fix (seamonkey) (obsolete) — Splinter Review
Scott, do you want to r/sr the sm part too?
Attachment #251208 - Flags: superreview?(mscott)
Attachment #251208 - Flags: review?(mscott)
Attachment #250963 - Flags: approval-thunderbird2? → approval-thunderbird2+
Attachment #251208 - Flags: superreview?(mscott)
Attachment #251208 - Flags: superreview+
Attachment #251208 - Flags: review?(mscott)
Attachment #251208 - Flags: review?(border)
Attachment #251208 - Flags: review?(border) → review?(mnyromyr)
I can verify the patch works on TB trunk.  I guess the branch patch is still not checked in...?
Whiteboard: [checkin needed (1.8 branch)]
mozilla/mail/base/content/mail-offline.js 	1.3.2.5
mozilla/mail/base/content/msgMail3PaneWindow.js 	1.70.2.42
Keywords: fixed1.8.1.2
Whiteboard: [checkin needed (1.8 branch)]
Verified fixed for 1.8.1.2 using the steps to reproduce from comment#1. 

Using: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.2pre) Gecko/20070207 Thunderbird/2.0pre ID:2007020704
Also v with TB 2b2-0207, Win2K.
Status: RESOLVED → VERIFIED
SM patch still not checked in. :-/
No, waiting for Karsten's review...
Comment on attachment 251208 [details] [diff] [review]
proposed fix (seamonkey)

>+      switch (sendUnsentPref) {
>+      case 0: // ask
>+        sendUnsent = gPromptService.confirmEx(window, 

Prevalent bracing style in this file is 'aligned curly braces', so the '{' has to go onto the next line and the case branches incl. their content has to go one indentation level deeper.

r=me with that.

Thanks for remembering about us, Magnus! :)
Attachment #251208 - Flags: review?(mnyromyr) → review+
Review comments addressed.
Attachment #251208 - Attachment is obsolete: true
Whiteboard: [checkin needed] (the seamonkey part)
mozilla/mailnews/base/resources/content/mailWindowOverlay.js   1.251
Whiteboard: [checkin needed] (the seamonkey part)
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: