Next: Fancy Mail Splitting, Previous: Mail Sources, Up: Getting Mail
These variables are (for the most part) pertinent to all the various mail back ends.
nnmail-read-incoming-hooknnmail-split-hookgnus-article-decode-encoded-words is one likely function to add
to this hook.
nnmail-pre-get-new-mail-hooknnmail-post-get-new-mail-hooknnmail-pre-get-new-mail-hook (is called just before
starting to handle the new mail) and
nnmail-post-get-new-mail-hook (is called when the mail handling
is done). Here's and example of using these two hooks to change the
default file modes the new mail files get:
(add-hook 'nnmail-pre-get-new-mail-hook
(lambda () (set-default-file-modes #o700)))
(add-hook 'nnmail-post-get-new-mail-hook
(lambda () (set-default-file-modes #o775)))
nnmail-use-long-file-namesnil, the mail back ends will use long file and directory
names. Groups like ‘mail.misc’ will end up in directories
(assuming use of nnml back end) or files (assuming use of
nnfolder back end) like mail.misc. If it is nil,
the same group will end up in mail/misc.
nnmail-delete-file-functiondelete-file by default.
nnmail-cache-accepted-message-idsnil, put the Message-IDs of articles imported into
the back end (via Gcc, for instance) into the mail duplication
discovery cache. The default is nil.
nnmail-cache-ignore-groupsMessage-ID cache.
This can be useful, for example, when using Fancy Splitting
(see Fancy Mail Splitting) together with the function
nnmail-split-fancy-with-parent.