-
Notifications
You must be signed in to change notification settings - Fork 7
MailComposer: Save draft in correct folder (#646) #647
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, in line 241, change ??=
to =
.
Test various scenarios to make sure it doesn't regress something.
This works. I'm getting some errors when deleting the saved draft for EWS. And it seems to be saving a new copy if you're editing the draft.
|
Are these bugs new regressions from this change here? I suspect that we need to check whether the folder changed, and delete the old draft from the old folder. |
Yes, it seems to be caused by the folder change.
Ok, I'll try this. |
Once you edit a draft, you're changing an email which thinks it knows what its folder and account are, and doesn't take very kindly to having these things changed for it. For instance, the draft folder still has the draft email in its messages list. From my point of view the ideal solution would be to clone the email and edit that instead, keeping a reference to the original email so that it can be deleted (seems simpler than looking for it). |
This reverts commit 3771b57.
mustang/app/logic/Mail/ComposeActions.ts Line 249 in f71507f
mustang/app/logic/Mail/IMAP/IMAPFolder.ts Line 545 in f71507f
|
Makes sense. Let's do that. |
e97466f
to
cff88be
Compare
mail.folder
is now set before saving