Implement drafts for all sources#320
Conversation
We just have to provide the relevant filename for the message to edit, and then remove the :draft label from the message when all is done.
|
Doesn't this leave old drafts in the sup://drafts source? Are not drafts left around in other sources (should they not be deleted in the maildir when it has been sent)? |
All drafts in If you mean that messages should gradually be "garbage-collected", yes, that's a possibility (I believe user wouldn't want to see a pile of useless junk)
Again, to me sources are just raw data inputs, and the truth about states is in the sup index. If this index says that the message is not a draft anymore, it is enough for us to treat the message accordingly. In the case of a sync back then the correct measures are taken. Now, something that can create problems is if the same content is present with two different message ids, one for the real message sent, one for the ex-draft. I guess what we want to do here is when we remove |
This at least has been the behaviour before. For me it seems to be the most logical as well, if I create a draft in sup and later discard it or send it (in which case a copy will be stored in sup://sent) I would also want the physical copy to be removed - otherwise there would exist a useless duplicate. So yes, I guess I mean they should be garbage collected continuously.
Perhaps we can make the distinction between removing the In the case of discarding drafts: I think the current I've been missing the ability to keep drafts in maildirs with sync back (so to keep this synced between clients), it would be great to have that! |
We just have to provide the relevant filename for the message to edit,
and then remove the
:draftlabel from the message when all is done.To test:
Should solve #220