Mekeor Melire <
mekeor...@gmail.com> writes:
> Hello friends. :)
>
> (defun mu4e~draft-determine-path (draft-dir)
> "Determine the path for a new draft file."
> (format "/home/user/drafts/%s"
> (mu4e~draft-message-filename-construct "DS")))
>
> Is this safe? Will it prevent synchronization of draft mails for sure?
> Or am I missing something? Is there a better/easier way to do this?
It's not really safe to rely on redefining any function/variable name
with `~'in it, as these can change at any time. (They're not part of the
public API.) However, you can "just" set the `mu4e-drafts-folder' to
something that is not handled by mbsync.
For me mbsync manages folders under ~/Maildir/Private and
~/Maildir/Work; I make my draft folder ~/Maildir/drafts (with `(setq
mu4e-drafts-folder "/drafts")') which is not in that set. Neither
Private nor Work mbsync config does include the server's drafts folder.
Stig
--
; GNU Emacs 25.1.1, Mu4e 0.9.19