Hello,
[I'm reposting this message as it seems it didn't get through when I
sent it a few weeks ago -- I hope it doesn't come as a duplicate.]
I've been observing an annoying behaviour for a long time and finally
took a closer look this morning. Here's what I have found :
When composing a new message, mu4e picks a filename for saving it to
disk as a draft. Let's say it's called `draftname`. Now if offlineimap
runs in the background, it will actually rename that file to something
else, behind emacs' back. If you save the same buffer again, it'll write
to the old name (`draftname`), hence creating a second file for the same
message.
Here's an example of a filename that got renamed :
1467805728.a37c58e0dd3aee73.localhost:2,DS
became, after a run of offlineimap :
1467806963_0.7963.localhost,U=247391,FMD5=f03ab16cd58372c77ba45a3d9a5a1cb9:2,DS
(I checked it's the same inode number).
Do you have any suggestion to avoid the problem ? i.e. avoid having
multiple drafts or at least have them removed when sending the message.
Btw here's a related
emacs.sx question. I did not ask the question but I
commented on it as I think they're referring to the same problem :
http://emacs.stackexchange.com/questions/21723/how-can-i-delete-mu4e-drafts-on-successfully-sending-the-mail#comment37502_21723
--
Nicolas Richard.