]> git.notmuchmail.org Git - notmuch/commit
emacs: Improve the definition and use of `notmuch-fcc-dirs'.
authorDavid Edmondson <dme@dme.org>
Mon, 8 Nov 2010 15:01:25 +0000 (15:01 +0000)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Nov 2010 01:16:28 +0000 (17:16 -0800)
commitea1c2bb5c5ab7115e3259d2e66e19398ce4cc19f
tree23ac4edce3781fb5489724e84838fdd3147e28b8
parentc471c4eb0488ee689ab96814e3879930bec32bc6
emacs: Improve the definition and use of `notmuch-fcc-dirs'.

Re-work the declaration and definition of `notmuch-fcc-dirs'. The
variable now allows three types of values:

- nil: no Fcc header is added,

- a string: the value of `notmuch-fcc-dirs' is the name of the
  folder to use,

- a list: the folder is chosen based on the From address of the
  current message using a list of regular expressions and
  corresponding folders:

     ((\"Sebastian@SSpaeth.de\" . \"privat\")
      (\"spaetz@sspaeth.de\" . \"OUTBOX.OSS\")
      (\".*\" . \"defaultinbox\"))

  If none of the regular expressions match the From address, no
  Fcc header will be added.
emacs/notmuch-maildir-fcc.el