Configuration hooks

This commit is contained in:
Stefan Kropp 2018-12-01 14:37:59 +01:00
parent dc9ac8de82
commit 7e13fd59a0
No known key found for this signature in database
GPG Key ID: 10055DD86AA05BB3
7 changed files with 74 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# -------------------------------------------------------------------------
# Name: empty_subject
# -------------------------------------------------------------------------
# This variable specifies the subject to be used when replying to an email
# with an empty subject. It defaults to "Re: your mail".
# -------------------------------------------------------------------------
# set empty_subject = "Re: your mail"

View File

@ -0,0 +1,9 @@
# -------------------------------------------------------------------------
# Name: folder-hook
# -------------------------------------------------------------------------
# When NeoMutt enters a folder which matches regex (or, when regex is
# preceded by an exclamation mark, does not match regex), the given command
# is executed.
# When several folder-hooks match a given mail folder, they are executed in
# the order given in the configuration file.

View File

@ -0,0 +1,10 @@
# -------------------------------------------------------------------------
# Name: mbox-hook
# -------------------------------------------------------------------------
# When NeoMutt changes to a mail folder which matches regex, mailbox will
# be used as the “mbox” folder, i.e. read messages will be moved to that
# folder when the mail folder is left.
# Note that execution of mbox-hooks is dependent on the $move configuration
# variable. If set to “no” (the default), mbox-hooks will not be executed.
# The first matching mbox-hook applies.

View File

@ -0,0 +1,10 @@
# -------------------------------------------------------------------------
# Name: message-hook
# -------------------------------------------------------------------------
# Before NeoMutt displays (or formats for replying or forwarding) a message
# which matches the given pattern (or, when it is preceded by an
# exclamation mark, does not match the pattern), the given command is
# executed. When multiple message-hooks match, they are executed in the
# order in which they occur in the configuration file.

View File

@ -0,0 +1,14 @@
# -------------------------------------------------------------------------
# Name: reply-hook
# -------------------------------------------------------------------------
# These commands can be used to execute arbitrary configuration commands
# based upon recipients of the message. pattern is used to match the
# message, see section “Message Matching in Hooks” in manual for details.
# command is executed when pattern matches.
#
# reply-hook is matched against the message you are replying to, instead of
# the message you are sending. send-hook is matched against all messages,
# both new and replies. Note, reply-hooks are matched before the
# send-hook, regardless of the order specified in the user's configuration
# file.

View File

@ -0,0 +1,21 @@
# -------------------------------------------------------------------------
# Name: send-hook
# -------------------------------------------------------------------------
# These commands can be used to execute arbitrary configuration commands
# based upon recipients of the message. pattern is used to match the
# message, see section “Message Matching in Hooks” in manual for details.
# command is executed when pattern matches.
#
# reply-hook is matched against the message you are replying to, instead of the
# message you are sending. send-hook is matched against all messages, both new
# and replies. Note, reply-hooks are matched before the send-hook, regardless
# of the order specified in the user's configuration file.
#
# send2-hook is matched every time a message is changed, either by editing
# it, or by using the compose menu to change its recipients or subject.
# send2-hook is executed after send-hook, and can, e.g., be used to set
# parameters such as the $sendmail variable depending on the message's sender
# address. Note, send-hooks are only executed once after getting the initial
# list of recip ients.

View File

@ -8,4 +8,4 @@
07 - IMAP
08 - POP3
09 - Notmuch
10 - Hooks