mu4e: minor doc fixes

Update bookmarks example
This commit is contained in:
djcb 2015-12-24 16:03:21 +02:00
parent 113c024632
commit 20c849390d
1 changed files with 7 additions and 8 deletions

View File

@ -25,7 +25,7 @@ Documentation License.''
@end copying @end copying
@titlepage @titlepage
@title @t{mu4e} - an e-mail client for Emacs @title @t{Mu4e} - an e-mail client for Emacs
@subtitle version @value{mu-version} @subtitle version @value{mu-version}
@author Dirk-Jan C. Binnema @author Dirk-Jan C. Binnema
@ -1888,15 +1888,14 @@ type is @kbd{bb}.
Instead of using strings, it is also possible to use Lisp expressions as Instead of using strings, it is also possible to use Lisp expressions as
bookmarks. The only requirement is that they evaluate to a query string. bookmarks. The only requirement is that they evaluate to a query string.
For example, to get all the messages that are at least a week old in For example, to get all the messages that are at most a week old in your
your inbox: inbox:
@lisp @lisp
(add-to-list 'mu4e-bookmarks '( (add-to-list 'mu4e-bookmarks
(concat "maildir:/inbox date:.." '((concat "maildir:/inbox AND date:"
(format-time-string "%Y%m%d" (format-time-string "%Y%m%d" (subtract-time (current-time) (days-to-time 7))))
(subtract-time (current-time) (days-to-time 7)))) "Inbox messages in the last 7 days" ?W) t)
"Messages older than a week" ?O) t)
@end lisp @end lisp