Closed Bug 619884 Opened 14 years ago Closed 13 years ago

Send later in offline mode fails with "There was an error copying the message to the sent folder", message is never sent.

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 257735

People

(Reporter: junkmail, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

When replying to an email or newsgroup message whilst offline, clicking 'send later' results in the message "There was an error copying the message to the sent folder".

Clicking 'ok' results in the message being copied to the sent folder (as opposed to the outbox), and isn't sent. Replying online works fine, and does not produce the error message.

Reproducible: Always

Steps to Reproduce:
1. Go offline
2. Write a reply to either an email or newsgroup message
3. Click "send later"
Actual Results:  
Message "There was an error copying the message to the sent folder" is shown, with two options: Ok and cancel.

Expected Results:  
Messages should be placed in the outbox in order to be sent when going online.

Using the Adblock plus 1.3.2 add-on. No other add-ons or themes are installed.
Can you save draft while Work Offline?
Does auto-save normally save draft while Work Offline?
If fails, is shown message "copy to Sent failure" like one?
Show "Order Received" column to see which is saved while Work Offline.

Due to bug 257735, "draft save error to Drafts" wrongly retries with Sent. So, if Sent is also IMAP folder, such message can be shown.
Do you enable auto-save?
As bug like "auto-save saves to Drafts even after send request" exists, auto-save during "Send Later" may produce such issue.
> Can you save draft while Work Offline?

I can save drafts when working offline.

> Does auto-save normally save draft while Work Offline?

Auto save works normally when working offline.

> Do you enable auto-save?

Auto save is enabled.

> As bug like "auto-save saves to Drafts even after send request" exists,
> auto-save during "Send Later" may produce such issue.

Under "Account settings" --> "affected accounts" --> "Copies & folders", "Place a copy in" is checked, and "Sent folder on" is set to Local folders. The email account itself uses POP / SMTP for sending/receiving messages.

Note: I also recently changed the default server under "Outgoing server (SMTP)", and removed the previous one. I do have more than one SMTP server in the list.
(In reply to comment #2)
> Under "Account settings" --> "affected accounts" --> "Copies & folders",
> "Place a copy in" is checked, and "Sent folder on" is set to Local folders.

How about "Drafts" folder setting? IMAP folder? Drafts o "Local Folders"? 

"Which accout's/identity's Account Settings/Copies&Folders setting(or Account/Settings/Manage Identities,Edit,Copies&Folders setting) is used" depends on identity choice when composing mail or news post(From: address you selected).
Are you sure that you are checking correct Copies&Folders for identity when you met problem of comment #0?
(as only name and mail address is usually key of identity, it's hard to know which idetity you are using while mail/news post composision. Add string what can indicates which account's which identity with which SMTP server or news server choice, to name part of each identity, if you defines many identities.)

As you say next, identity used by news posting is identity associated to the news account, even if same mail address for other POP3/IMAP account is used for news posting.
> When replying to an email or newsgroup message whilst offline, (snip)
> How about "Drafts" folder setting? IMAP folder? Drafts o "Local Folders"? 

It is set to local folders.

> "Which accout's/identity's Account Settings/Copies&Folders setting(or
> Account/Settings/Manage Identities,Edit,Copies&Folders setting) is used"
> depends on identity choice when composing mail or news post(From: address you
> selected).

It is set to either "Name <email address> email address" for email, or "Name <email address> NNTP server" for newsgroups. The account associated with the email address uses POP/SMTP, and has Sent and Drafts set to local folders.

> Are you sure that you are checking correct Copies&Folders for identity when 
> you met problem of comment #0?

Yes. Absolutely sure.
Similar error message is observed by next test.
(1) Delete Drafts/Drafts.msf, Sent/Sent.msf under Local Folders directory,
    restart Tb, other than Local Folders account is active, Work Offline
(2) Compose a mail using identity of "draft = Drafts of Local Folders", and "sent = Sent of Local Folders", Save As => saved in Drafts(Drafts, Drafts.msf is created)
(3) Delete file of Drafts under directory of Local Folders while Tb is running.
(4) Save As => dialog of "copy to sent fails, retry or not".
               File of Drafts is not created.
(5) OK to dialog => Sent is created, 1-st copy is saved in file of Sent.
(6) 2nd dialog of "copy to sent fails, retry or not" => OK to dialog
    => 2-nd copy is appended to file of Sent.

I think above is irrelevant to Work Offline, because any folder relevant to test is folder under Local Folders.
If Drafts/Drafts.msf and Sent/Sent.msf is healthy, I don't think error can happen on Drafts nor Sent of Local Folders.

Did you reply Cancel to dialog instead of OK(or Retry)?
Is problem really able to reproduce always merely by Work Offline and Send Later?
Can you reproduce problem after "Repair Folder" of Drafts and Sent and Outbox of "Local Folders"?
FYI.
I could see same phenomenon as comment #5 by "Send Later" and "delete of Unsent Messages".
(1) Send Later => mail is saved in Outbox, click Outbox folder,
    click other folder(file of Usent Messages is closed)
(2) Delete file of "Unsent Messages" for Outbox while Tb is running
(3) Compose a mail, Send Later
    => Error message of "Outbox is full"
    => Dialog of "save to Sent failed, retry or cancel
(4) Reply OK(retry)
    => mail is saved in sent folder specified at Copies&Folders of identity
      which is used for composiion.

It looks; Drafts code was copied from Sent code, and Outbox code was copied from Draft code, with keeping retry folder name of "Sent".
Bug 257735 was treated as "common bug for Drafts/Templates/Outbox==Unsent Messages, and fixed.
Closing as dup of Bug 257735.
Re-open this bug, if problem remains even after fix of Bug 257735.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.