stumpwm.stumpwm-contrib/modeline/maildir
2019-01-02 18:06:02 +01:00
..
maildir.asd Added meaningful descriptions to all non-documented modules 2018-03-15 22:34:26 -04:00
maildir.lisp maildir: Simplified some default variables and behaviors 2019-01-02 18:06:02 +01:00
package.lisp Adding all the current files 2014-03-01 23:33:38 -05:00
README.org Added support for multiple maildirs 2018-12-27 17:40:54 +01:00

Usage

Put:

  (load-module "maildir")

into your ~/.stumpwmrc

Then you can use %D in your mode line format. You can customize the modeline format *maildir-modeline-fmt*. The relevant format options are:

Option Description
%l maildir label
%n number of "new" messages (ie. unread)
%c number of "current" messages (ie. seen)
%t number of "temporary" messages (ie. misc)

To add a Maildir, add it to the *maildir-alist* alist. The car or each item is it's label and the cdr it's pathname. Here's an example of how to add a custom directory.

(push (cons "Job" (realname "~/job-mail")) maildir:*maildir-alist*)

By default, only ~/Mail is indexed. All directories that cannot be found, are ignored.