mirror of https://github.com/djcb/mu.git
mu4e: add mu4e-mu-debug for verbosely logging the server
With mu4e-mu-debug set to t, the mu server will be more verbose in its logging (mu.log or the journal)
This commit is contained in:
parent
e37486fb5a
commit
2ee65f5b1a
6
NEWS.org
6
NEWS.org
|
@ -6,7 +6,7 @@
|
|||
*** mu
|
||||
|
||||
- Where available (and with suitable glib), log to the systemd journal
|
||||
instead of a =~/.cache/mu.log=
|
||||
instead of a ~~/.cache/mu.log~
|
||||
|
||||
- Follow symlinks in maildirs, and support moving messsages between across
|
||||
multiple filesystems (but note that that is quite a bit slower than the
|
||||
|
@ -33,6 +33,10 @@
|
|||
- Honor ~truncate-string-ellipsis~ so you can now use 'fancy' ellipses for
|
||||
truncated strings with ~(setq truncate-string-ellipsis "…")~
|
||||
|
||||
- Add a variable ~mu4e-mu-debug~ which, when set to non-~nil~ makes the ~mu~
|
||||
server log more verbosely (to ~mu.log~ or the journal)
|
||||
|
||||
|
||||
|
||||
* 1.4 (released, as of April 18 2020)
|
||||
|
||||
|
|
|
@ -249,10 +249,11 @@ Start the process if needed."
|
|||
(unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary))
|
||||
(mu4e-error
|
||||
(format
|
||||
"`mu4e-mu-binary' (%S) not found; please set to the path to the mu executable"
|
||||
"`mu4e-mu-binary' (%S) not found; please set to the mu executable path"
|
||||
mu4e-mu-binary)))
|
||||
(let* ((process-connection-type nil) ;; use a pipe
|
||||
(args (when mu4e-mu-home `(,(format"--muhome=%s" mu4e-mu-home))))
|
||||
(args (if mu4e-mu-debug (cons "--debug" args) args))
|
||||
(args (cons "server" args)))
|
||||
(setq mu4e~proc-buf "")
|
||||
(setq mu4e~proc-process (apply 'start-process
|
||||
|
|
|
@ -51,6 +51,12 @@ path."
|
|||
:group 'mu4e
|
||||
:safe 'stringp)
|
||||
|
||||
(defcustom mu4e-mu-debug nil
|
||||
"Whether to run the mu binary in debug-mode.
|
||||
Setting this to t increases the amount of information in the log."
|
||||
:type 'boolean
|
||||
:group 'mu4e)
|
||||
|
||||
(make-obsolete-variable 'mu4e-maildir
|
||||
"determined by server; see `mu4e-root-maildir'." "1.3.8")
|
||||
|
||||
|
|
Loading…
Reference in New Issue