Allow specifying list shortnames with regexes

This way mu4e will intelligently shorten mailing list names which
contain dots:

    (setq mu4e-mailing-list-patterns
          '("\\([a-z0-9.]+\\)\.lists\.company\.com"))
This commit is contained in:
Hinrik Örn Sigurðsson
2015-11-13 23:59:45 +00:00
parent 781f0782f5
commit 77529b105e
3 changed files with 15 additions and 3 deletions

View File

@ -85,4 +85,9 @@
"A list of (MAILING-LIST-ID . SHORTNAME); these are used in
addition to the 'built-in' list `mu4e~user-lists'.")
(defvar mu4e-mailing-list-patterns nil
"A list of regex patterns to capture a shortname out of a list ID. For
the first regex that matches, its first matchgroup will be used as the
shortname.")
(provide 'mu4e-lists)