Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail Composer: Draft not deleted when sending #413

Open
Tracked by #392
benbucksch opened this issue Jan 18, 2025 · 1 comment
Open
Tracked by #392

Mail Composer: Draft not deleted when sending #413

benbucksch opened this issue Jan 18, 2025 · 1 comment
Assignees

Comments

@benbucksch
Copy link
Collaborator

Reproduction

  1. Write new mail (using IMAP account)
  2. Type content, subject
  3. Click [Save] button on top right
  4. Go to folder "Drafts"
  5. Click [Edit Draft]
  6. [Send]
  7. Go to folder "Drafts"

Actual result

The draft is still here

Expected result

The draft has been deleted

Other circumstances

  1. Open a draft
  2. Change the subject
  3. [Save] in composer
  4. Check "Drafts" folder
  5. -> The older draft has been deleted - as expected
  6. -> It fails only during send
This was referenced Jan 18, 2025
@NeilRashbrook
Copy link
Collaborator

As far as I can tell, any email in the email composer has a folder, which used to always be the Drafts folder (as set in MailAccount.newMailFrom).

Commit 521b168 changed that for replies so that the email's folder is the desired sent folder. Unfortunately that only works for emails that are replied and immediately sent.

As such, what you appear to be seeing is actually the sent message. At least, I think it is; I'm confused by the message-id changing each time the message is saved or sent, and also by a very dodgy getDraftOnServer function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants