org-msg icon indicating copy to clipboard operation
org-msg copied to clipboard

Temporary reply-to filepaths are not persisted

Open robstewart57 opened this issue 10 months ago • 1 comments

I do not send emails after working hours. Using mu4e, I save drafts if I compose them outside of working hours.

When I save an org-msg email, the properties are e.g.:

:PROPERTIES:
:reply-to: ("/tmp/mm-oYbuU6.html")
:attachment: nil
:alternatives: (html)
:END:

The issue is that I shutdown my machine until the following working day. When the time comes to send the email, the file /tmp/mm-oYbuU6.html has been removed along with all files in /tmp. When I attempt to send these saved emails, I am unable to because this file does not exist.

Is there are way to configure the temporary directly of reply-to file paths, to a path that persists between reboots?

robstewart57 avatar Aug 17 '23 21:08 robstewart57

As nicely requested over email, here is an idea:

For mu4e, the function responsible of creating the original email file is org-msg-save-article-for-reply-mu4e(). It uses the (make-temp-file "org-msg" nil ".html") to create the filename. make-temp-file places the file in the operating system temporary folder (aka. /tmp on Linux). I would suggest to make org-msg-save-article-for-reply-mu4e() function do things a bit differently and put the file in a configurable directory path which would survive reboots.

jeremy-compostella avatar Oct 24 '23 16:10 jeremy-compostella