Open
Bug 696580
Opened 13 years ago
Updated 2 years ago
When sending message with another smtp, saving draft problem (If send is requested when auto-save is silently running, auto-save may fail or old draft delete after send may fail)
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
NEW
People
(Reporter: stefangrossmann, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: dupme)
Attachments
(1 file)
(deleted),
application/pdf
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238
Steps to reproduce:
I have 4 Imap Accounts + SMTP for each
1.) open inbox of an account
2.) write an email with the smtp from another account.
3.) send the email
Actual results:
1.) Email was send (OK)
2.) Thunderbird try to save it to draft folder of the account i send from. (fail)
3.) Thunderbird save my Mail to draft folder of active imap account. (even if he say saving failed)
Expected results:
Thunderbird should save the mail to imap account i choosed to send.
Comment 1•13 years ago
|
||
(In reply to Stefan Grossmann from comment #0)
Please report the error from Tools -> Error console just after you send the e-mail.
Updated•13 years ago
|
Whiteboard: dupme
Comment 2•13 years ago
|
||
(In reply to Stefan Grossmann from comment #0)
> 2.) Thunderbird try to save it to draft folder of the account i send from. (fail)
"Auto-save tries to save to Drafts even after send is requested" is known problem.
Do you enable auto-save? What is your auto-save interval setting?
"Save to Drafts fail" is a phenomenon when you don't create folder to save draft mail which is set at Copies&Folders setting by you.
Can you manually save draft mail to folder which is set as "folder to save draft mail" at Copies&Folders setting by you for each identity of each account?
> 3.) Thunderbird save my Mail to draft folder of active imap account. (even
> if he say saving failed)
Tb selects SMTP server by your SMTP server choice at identity sentting(From: address) which is used by the mail, and saves draft mail to folder selected at Copies&Folders setting of the identity, and saves sent mail copy to folder which is selected by you at Copies&Folders setting of the identity if "keep copy" is requested by you at the setting.
This is independent from currently active account at folder pane.
Which identity(From: address) did you use in mail sending?
Is your each identity's setting in Tb same as your thought or expectation of Tb's behavior?
> Thunderbird should save the mail to imap account i choosed to send.
What definition/setting in Tb's Account Settings do you call by your "imap account i choosed to send"?
Comment 3•13 years ago
|
||
Comment 0 is not very clear, and I suspect in Actual Results, 3., the mail was saved to Sent folder, not draft folder. Trying to clarify the fuzzy summary, pls correct me if I'm wrong. Otherwise, let's wait for Stefan's (reporter's) response to Wada's comment 1.
Summary: Saving a Draft issue → When sending message with another smtp, saving draft problem (IMAP)
Reporter | ||
Comment 4•13 years ago
|
||
i can't recreate the problem, but to answer your questions:
1) autosave has 5 minutes interval
2) Draft folder is created on every account.
3) i figured out, thunderbird saves in draft folder which i selected before i write a new mail. maybe it's better to save in that draft folder you created the smtp account for. e.g. from stefangrossmann@freenet.de SMTP should be saved in draft folder of my freenet account.(that was what i expected)
i used stefangrossmann@freenet.de - it saved to skybird@t-online.de draft folder and error was after i send the mail. so while he try to save it to sent folder of my freenet.de account.
>What definition/setting in Tb's Account Settings do you call by your "imap account i choosed to send"?
if i choose "stefangrossmann@freenet.de" as "from adress" it should save to "stefangrossmann@freenet.de" draft folder while writing this email.
//excuse my poor english. i'm from germany :)
Comment 5•13 years ago
|
||
(In reply to Stefan Grossmann from comment #4)
> 3) i figured out, thunderbird saves in draft folder which i selected before
> i write a new mail.
(i) Tb saves draft to a folder which is selected at Copies&Folders of identity for current From: address.
(ii) When new mail composition, Tb sets "mail address of main identity of curretly selected account" as pre-set From: of composed mail(if Local Folders, main identity of default account is used).
(iii) So, if you change From: address during mail composition, different draft mail is saved in different draft folder.
Do next, and see where draft is saved.
(1) Enable "dialog after draft save".
At Copies&Folders setting of each identity, check next setting.
[X] Show confirmation dialog when messages are saved
(2) Compose a new mail(from-1 is set as From: which is defined as identity-1).
Save as draft(within 5 minutes) => Dialog is shown, OK
(3) Change From: to from-2 which is defined as identity-2.
Save as draft(within 5 minutes) => Dialog is shown, OK
> i used stefangrossmann@freenet.de - it saved to skybird@t-online.de draft
> folder and error was after i send the mail. so while he try to save it to
> sent folder of my freenet.de account.
It's probably a phenomenon due to contension between auto-save and "send while auto-save is in progress". For example;
(1) When From: from-1, auto-save saves draft-v1 to Drafts-1 folder, UID=11.
(2) When From: from-1, auto-save tries to save draft-v2 to Drafts-1 folder.
(2-1) draft-v2 is UID=12 in Drafts-1 folder.
(2-2) auto-save tries to delete last draft(draft-v1, UID=11 in Drafts-1).
(3) While (2) is running, change to "From: from-2", and execute Send.
(3-1) Send mail via SMTP-2 associated to from-2, and send completes.
(3-2) Tries to delete last draft(draft-v1, UID=11 in Drafts-1).
(3-3) Save sent mail copy to Sent-2 folder associated to from-2.
(4) Because (2-2) and (3-3) are concurrent operations to same mail in same folder by different processes, internal error occurs in one of the two processes. If winner is (3-2) by mail send process, internal error occurs at (2-2) by auto-save, then "draft save error to Drafts-1 folder which is associated to from-1" is reported by auto-save.
Both of next are already known bugs.
(A) auto-save is invoked even after mail send is requested.
auto-save shouldn't be invoked if mail send is already requested.
(B) mail send is immediately executed even though auto-save is in progress.
mail send should wait for end of auto-save, or should kill running auto-save,
unless problem due to contension like above will be completely resolved.
Comment 6•13 years ago
|
||
Wada, thanks for your detailed and valuable support. Based on your comment 5, do you think this could be closed as a duplicate of A or B?
Comment 7•13 years ago
|
||
I think dup of B(if bug is really already opened for the problem of B), because "draft folder on which error occurs while auto-save running" should be Drafts-2 associated to from-2(mail address after From: change) instead of Drafts-1 associated to from-1(mail address before From: change) if problem of A. In this bug's case, error occurred on Drafts-1 associated to from-1(mail address before From: change).
Updated•13 years ago
|
Summary: When sending message with another smtp, saving draft problem (IMAP) → When sending message with another smtp, saving draft problem (If send is requested when auto-save is silently running, auto-save may fail or old draft delete after send may fail)
Comment 8•13 years ago
|
||
I couldn't reach specfig bug for problem of (B). Confirming this bug.
Status: UNCONFIRMED → NEW
Component: Message Compose Window → Composition
Ever confirmed: true
OS: Windows 7 → All
Product: Thunderbird → MailNews Core
QA Contact: message-compose → composition
Hardware: x86_64 → All
Version: 7 → Trunk
Comment 9•13 years ago
|
||
Nnote:
If "error in draft save by auto-save or last draft delete by auto-save" doesn't occur(if auto-save ends before delete of last draft by mail sending, no error occurs), and if "error in last draft delete by mail send process" doesn't occur(if aleady deleted by auto-save, no error occurs), "excess draft(undeleted draft) generated by auto-save" always remain even after successful mail sending and deletion of last draft mail.
Many of bug reports which involves problem of (A) or problem (B) are report for this phenomenon of "excess draft(undeleted draft) generated by auto-save remains".
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•