Closed
Bug 104818
Opened 24 years ago
Closed 19 years ago
"Sent later" mails not removed from "Drafts".
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 314009
People
(Reporter: lapsap7+mz, Assigned: sspitzer)
References
Details
Attachments
(1 obsolete file)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4+)
Gecko/20010925
BuildID: 20010925
Compose a new message. Write something, save it. Write again some other things
and "sent it later". Now we can still find the message in the Drafts folder and
of course it's in the saved state.
Reproducible: Always
PS: Actually, my Mozilla is offline so the "Send" icon is "Send later" icon.
Comment 1•23 years ago
|
||
The reporting is not assessing the situation correctly. He or she is looking in
the wrong place.
If you write a message, click save ... Message will be saved in YourAccount/Saved/
If you continue the message, click send later ... Message will be saved in
LocalFolders/UnsentMessages/
Hense, this assessment is invalid.
Comment 2•23 years ago
|
||
TYPO!
YourAccount/Drafts/
Sorry.
Reporter | ||
Comment 3•23 years ago
|
||
I wasn't looking at the wrong place. It's just that I wasn't saying all what I was
exactly thinking.
First, I was thinking: Sent or Sent Later, they are all "Send" and thus should
behave the same, ie, they should remove its draft. But later on, I thought it
doesn't matter if "Send Later" doesn't remove the draft if a real "Send" does it.
However, I found that a "Send unsent message" doesn't remove drafts either. So
I made this bug report.
Comment 4•23 years ago
|
||
Reporter, could this be a dupe of bug 141209?
If not: Do you still see it in a recent version?
pi
Reporter | ||
Comment 5•23 years ago
|
||
Nope, this bug isn't dupe of bug 141209. However, I do observe the behaviour in
that bug.
With 20020523 (Mozilla 1.0 RC3), the bug is still there.
Comment 6•23 years ago
|
||
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530
Build: 2002053012
1. Compose mail, Save mail, message is now in Drafts.
2. Select "Send mail later" in the compose window, message is now in Drafts &
unsent mail.
3. Enter Drafts, select "Send now".
4. Message gone from Drafts, but still in "unsent mail"
Seems like a bug to me...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 7•23 years ago
|
||
In step 4, are you sure it's not the other way round? That is, message gone
from "Unsent Mail", but still in "Drafts".
And yup, it IS a bug. Once a draft is "sent later", Mozilla doesn't keep track
of the draft, and when the mail is sent afterwards, the draft left behind.
Comment 8•23 years ago
|
||
Arno's description sound like a consequence of bug 141209.
pi
Comment 9•21 years ago
|
||
I have seen the same problem. Specifically:
1. Compose a new message
2. Save it
3. Message is now in Drafts
4. Edit the draft message
5. Send Later
6. Message is now in Unsent Messages and still in Drafts.
I've tried this with Mozilla 1.7a compiled from CVS source. In
mozilla/mailnews/compose/src/nsMsgCompose.cpp on line 2841 it says:
// Remove the current draft msg when sending draft is done.
MSG_ComposeType compType = nsIMsgCompType::Draft;
compose->GetType(&compType);
if (compType == nsIMsgCompType::Draft)
RemoveCurrentDraftMessage(compose, PR_FALSE);
So that looks great, that explains why it removes the current draft
message when doing Send Now.
But I can't see any code to remove the current draft msg when
doing Send Later. It seems like a simple programming oversight
to me. The nearest I can find in this file is on line 2914:
if (mDeliverMode == nsIMsgSend::nsMsgQueueForLater)
compose->RememberQueuedDisposition();
Perhaps a workable patch would be:
if (mDeliverMode == nsIMsgSend::nsMsgQueueForLater) {
+ compose->RememberQueuedDisposition();
+ compose->GetType(&compType);
+ if (compType == nsIMsgCompType::Draft)
+ RemoveCurrentDraftMessage(compose, PR_FALSE);
+ }
This should cause Send Later to check to see if the message was
composed as a draft, and if so then it should remove the current
draft message. Would this be acceptable?
Phil
Comment 10•21 years ago
|
||
Create a msg. Save it. Go into Drafts. Edit Draft. Send Later. With the patch,
the draft being edited is removed and the completed msg goes to Unsent
Messages. This is my first patch!
Updated•21 years ago
|
Attachment #141504 -
Attachment description: Remove the current draft when doing "Send Later" → Remove the current draft when doing "Send Later".
Attachment #141504 -
Flags: review?(sspitzer)
Updated•21 years ago
|
Product: MailNews → Core
Comment 12•21 years ago
|
||
*** Bug 271998 has been marked as a duplicate of this bug. ***
Comment 13•21 years ago
|
||
Phil Jones, you'd better find a different reviewer for your patch; Seth
apparently uses Bugzilla as a write-only data store. Does the patch still build
with current code or does it need updating?
Comment 14•20 years ago
|
||
Still there in Thunderbird 1.0.6
Comment 15•20 years ago
|
||
*** Bug 304942 has been marked as a duplicate of this bug. ***
Comment 16•20 years ago
|
||
Still a bug in TBird v1.5 (20051201) on MacOSX.
I do -not- observe bug #141209 anymore, so I see no relation.
Comment 17•19 years ago
|
||
This patch fixes it. Tested successfully with Mozilla 1.7.13.
RCS file: /cvsroot/mozilla/mailnews/compose/src/nsMsgCompose.cpp,v
retrieving revision 1.423.2.6
diff -r1.423.2.6 nsMsgCompose.cpp
2955,2956c2955,2961
< if (mDeliverMode == nsIMsgSend::nsMsgQueueForLater)
< compose->RememberQueuedDisposition();
---
> if (mDeliverMode == nsIMsgSend::nsMsgQueueForLater) {
> compose->RememberQueuedDisposition();
> MSG_ComposeType compType = nsIMsgCompType::Draft;
> compose->GetType(&compType);
> if (compType == nsIMsgCompType::Draft)
> RemoveCurrentDraftMessage(compose, PR_FALSE);
> }
Comment 18•19 years ago
|
||
I believe this is fixed with bug 314009
Comment 19•19 years ago
|
||
Yes, this was fixed ing bug 314009.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Comment 20•18 years ago
|
||
Comment on attachment 141504 [details] [diff] [review]
Remove the current draft when doing "Send Later".
issue fixed in bug 314009. marking patch obsolete
Attachment #141504 -
Attachment is obsolete: true
Attachment #141504 -
Flags: review?(sspitzer)
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•