mu4e: integrate mkdir better into mu4e

When moving to a non-existent folder, offer to create it and proceed from
there (that _almost_ worked earlier).

Fixes #628
Fixes #477
This commit is contained in:
Dirk-Jan C. Binnema
2023-02-12 11:17:59 +02:00
parent 76fedf4d64
commit 88cb22d178
3 changed files with 16 additions and 21 deletions

View File

@ -557,9 +557,12 @@ the directory time stamp."
`(index :cleanup ,(and cleanup t)
:lazy-check ,(and lazy-check t))))
(defun mu4e--server-mkdir (path)
"Create a new maildir-directory at filesystem PATH."
(mu4e--server-call-mu `(mkdir :path ,path)))
(defun mu4e--server-mkdir (path &optional update)
"Create a new maildir-directory at filesystem PATH.
When UPDATE is non-nil, send a update when completed."
(mu4e--server-call-mu `(mkdir
:path ,path
:update ,(or update nil))))
(defun mu4e--server-move (docid-or-msgid &optional maildir flags no-view)
"Move message identified by DOCID-OR-MSGID.