Info Node: (bbdb.info)VM automatic adding of labels
(bbdb.info)VM automatic adding of labels
VM automatic adding of labels
.............................
`bbdb/vm-auto-add-label-list' is a List used by
`bbdb/vm-auto-add-label' to automatically label messages. Each element
in the list is either a string or a list of two strings. If a single
string then it is used as both the field value to check for and the
label to apply to the message. If a list of two strings, the first is
the field value to search for and the second is the label to apply.
`bbdb/vm-auto-add-label-field bbdb-define-all-aliases-field' is the
field used by `bbdb/vm-auto-add-label' to automatically label messages.
Value is either a single symbol or a list of symbols of bbdb fields that
`bbdb/vm-auto-add-label' uses to check for labels to apply to messages.
Defaults to `bbdb-define-all-aliases-field' which is typically
`mail-alias'.
`bbdb/vm-auto-add-label' automatically adds labels to messages based
on the `bbdb/vm-auto-add-label-field bbdb-define-all-aliases-field'
field. Add this to `bbdb-notice-hook' and if using VM each message
that bbdb notices will be checked. If the sender has a value in the
`bbdb/vm-auto-add-label-field' in their BBDB record that matches a
value in `bbdb/vm-auto-add-label-list' then a VM label will be added to
the message.
This works great when `bbdb-user-mail-names' is set. As a result
mail that you send to people (and copy yourself on) is labeled as well.