doc: updates

This commit is contained in:
Dirk-Jan C. Binnema
2024-12-17 20:33:28 +02:00
parent 88e4beaaa6
commit 407c6189f4
2 changed files with 22 additions and 18 deletions

View File

@ -1,6 +1,6 @@
;;; mu4e-folders.el --- Dealing with maildirs & folders -*- lexical-binding: t -*- ;;; mu4e-folders.el --- Maildirs & folders -*- lexical-binding: t -*-
;; Copyright (C) 2021-2023 Dirk-Jan C. Binnema ;; Copyright (C) 2021-2024 Dirk-Jan C. Binnema
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> ;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> ;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
@ -28,7 +28,7 @@
(require 'mu4e-helpers) (require 'mu4e-helpers)
(require 'mu4e-context) (require 'mu4e-context)
(require 'mu4e-server) (require 'mu4e-server)
;;; Customization ;;; Customization
(defgroup mu4e-folders nil (defgroup mu4e-folders nil
"Special folders." "Special folders."
@ -36,12 +36,18 @@
(defcustom mu4e-drafts-folder "/drafts" (defcustom mu4e-drafts-folder "/drafts"
"Folder for draft messages, relative to the root maildir. "Folder for draft messages, relative to the root maildir.
For instance, \"/drafts\". Instead of a string, may also be a For instance, \"/drafts\".
function that takes a message (a msg plist, see
`mu4e-message-field'), and returns a folder. Note, the message Instead of a string, may also be a function that takes a
parameter refers to the original message being replied to / being message (a msg plist, see `mu4e-message-field'), and returns a
forwarded / re-edited and is nil otherwise. `mu4e-drafts-folder' folder. Note, the message parameter refers to the original
is only evaluated once." message being replied to / being forwarded / re-edited and is nil
otherwise. `mu4e-drafts-folder' is only evaluated once.
The form of draft messages is not necessarily compatible with
other e-mail programs, e.g. when it involves attachments and the
like.
"
:type '(choice :type '(choice
(string :tag "Folder name") (string :tag "Folder name")
(function :tag "Function return folder name")) (function :tag "Function return folder name"))
@ -98,8 +104,7 @@ Each of the list elements is a plist with at least:
Optionally, you can add the following: Optionally, you can add the following:
`:name' - name of the maildir to be displayed in main-view. `:name' - name of the maildir to be displayed in main-view.
`:hide' - if t, the shortcut is hidden from the main-view and `:hide' - if t, the shortcut is hidden from the main-view.
speedbar.
`:hide-unread' - do not show the counts of unread/total number `:hide-unread' - do not show the counts of unread/total number
of matches for the maildir in the main-view, and is implied of matches for the maildir in the main-view, and is implied
from `:hide'. from `:hide'.
@ -162,7 +167,7 @@ mime-type are nil."
(defvar mu4e-maildir-list nil (defvar mu4e-maildir-list nil
"Cached list of maildirs.") "Cached list of maildirs.")
(defun mu4e-maildir-shortcuts () (defun mu4e-maildir-shortcuts ()
"Get `mu4e-maildir-shortcuts' in the (new) format. "Get `mu4e-maildir-shortcuts' in the (new) format.
Converts from the old format if needed." Converts from the old format if needed."
@ -284,8 +289,8 @@ Offer to create it if it does not exist yet."
This is based on the variable `mu4e-attachment-dir', which is either: This is based on the variable `mu4e-attachment-dir', which is either:
- if is a string, used it as-is - if is a string, used it as-is
- a function taking two string parameters, both of which can be nil: - a function taking two string parameters, both of which can be nil:
(1) a filename or a URL (1) FNAME, a filename or a URL
(2) a mime-type (such as \"text/plain\"." (2) MIMETYPE, a mime-type (such as \"text/plain\"."
(let ((dir (let ((dir
(cond (cond
((stringp mu4e-attachment-dir) ((stringp mu4e-attachment-dir)

View File

@ -523,10 +523,9 @@ If the mail-retrieval process returns with a non-zero exit code,
is set to @code{nil}), but then try to index your maildirs anyway is set to @code{nil}), but then try to index your maildirs anyway
(unless @code{mu4e-index-update-error-continue} is set to @code{nil}). (unless @code{mu4e-index-update-error-continue} is set to @code{nil}).
Reason for these defaults is that some of the mail-retrieval programs Reason for these defaults is that some of the mail-retrieval programs may return
may return non-zero, even when the updating process succeeded; however, non-zero, even when the updating process succeeded; however, it is hard to tell
it is hard to tell such pseudo-errors from real ones like `login such pseudo-errors from real ones like @t{login failed}.
failed'.
If you need more refinement, it may be useful to wrap the mail-retrieval If you need more refinement, it may be useful to wrap the mail-retrieval
program in a shell-script, for example @t{fetchmail} returns 1 to program in a shell-script, for example @t{fetchmail} returns 1 to