<<< Date Index >>>     <<< Thread Index >>>

Re: send-hook upon preceding To:



  On Feb 28 at 12:49, Hanspeter Roth spoke:

> Ok. I append a somewhat stripped version which behaves the same as
> of the reply-hooks.

Sorry, I forgot the attachment.

-Hanspeter
#
# ~/.muttrc
#

set delete
set edit_hdrs
set folder=~/mail
set mbox=+received
set record=+sent
set postponed=+.postponed
set postpone=ask-no
set move=no
set sort=reverse-mailbox-order
set charset="iso-8859-1"
set nomark_old
set forward_format="Fw: %s"
set dsn_notify='failure,delay'  # success # when to return an error message
set dsn_return=hdrs             # what to return in the error message
set noautoedit
set askcc
set noconfirmappend
set include
set print=ask-no
set abort_unmodified=ask-yes
set nofcc_attach

set editor="vim %s +\`awk ' /^$/ {print i+2; exit } {i++}' %s\`"

set pgp_verify_sig=no

bind pager [ half-up
bind pager ] half-down
bind pager $ bottom
bind editor \cp history-up
bind editor \cn history-down

macro compose <f7> ":set ispell='ispell -x'\n:set ?ispell\n"
macro compose <f8> ":set ispell='ispell -x -Tlatin1 -d deutsch'\n:set ?ispell\n"
macro index \cb |urlview\n
macro pager \cb |urlview\n

ignore *
unignore from date subject to cc
unignore organization organisation
unignore posted-to x-mailing-list
unignore X-Mailer User-Agent
unignore Reply-To Mail-Followup-To

set hostname=gicco.homeip.net
set envelope_from
my_hdr From: Hanspeter Roth <hanspeter.roth@xxxxxxxxxxx>

subscribe debian-user debian-laptop debian-legal freebsd-current@xxxxxxxxxxx 
freebsd-doc@xxxxxxxxxxx freebsd-emulation@xxxxxxxxxxx emulation@xxxxxxxxxxx 
gnome@xxxxxxxxxxx freebsd-gnome@xxxxxxxxxxx hackers@xxxxxxxxxxx 
freebsd-hackers@xxxxxxxxxxx freebsd-hardware@xxxxxxxxxxx 
freebsd-isdn@xxxxxxxxxxx freebsd-multimedia multimedia@xxxxxxxxxxx 
net@xxxxxxxxxxx freebsd-net@xxxxxxxxxxx ports@xxxxxxxxxxx 
freebsd-ports@xxxxxxxxxxx questions@xxxxxxxxxxx freebsd-questions@xxxxxxxxxxx 
realtime@freebsd freebsd-realtime stable@xxxxxxxxxxx freebsd-stable@xxxxxxxxxxx 
mutt-users misc@xxxxxxxxxxx ports@xxxxxxxxxxx tech@xxxxxxxxxxx 
gnu-screen@xxxxxxxxxxxxxxx icewm-devel icewm-user@xxxxxxxxxxxxxxxxxxxxx


set default_hook="~C %s"

send-hook '~t .' \
        'set record=+sent; \
         my_hdr From: Hanspeter Roth <hanspeter.roth@xxxxxxxxx>; \
         unmy_hdr Reply-To; \
         set dsn_notify="failure,delay"; \
         color status  black white; \
         set locale=C; \
         set ispell="ispell -Tlatin1 -d deutsch -x"; \
         set attribution="  On %{%b %d} at %{%H:%M}, %n spoke:\n"'

send-hook '~t "${LOGNAME}"' 'my_hdr From: $LOGNAME'

send-hook '~t "${LOGNAME}@" '\
        'my_hdr From: Hanspeter Roth <hanspeter.roth@xxxxxxxxx>'

send-hook '~t "@(localhost|gicco|snoopy|goofy|scsi)"' 'my_hdr From: $LOGNAME'

send-hook '(hampi|idefix|request@|majordomo|subscribe)' \
        'unset record; \
         set dsn_notify="failure,delay"'

send-hook ~l \
        'my_hdr From: Hanspeter Roth <hampi@xxxxxxxxxxxx>; \
         set dsn_notify="failure,delay,success"; \
         color status  magenta white; \
         set locale=C; \
         set ispell="ispell -x"; \
         set attribution="  On %{%b %d} at %{%H:%M}, %n spoke:\n"'

send-hook '~C gnats-submit' \
        'my_hdr From: Hanspeter Roth <hampi@xxxxxxxxxxxx>; \
         set dsn_notify="failure,delay"; \
         color status  magenta white; \
         set locale=C; \
         set ispell="ispell -x"; \
         set attribution="  On %{%b %d} at %{%H:%M}, %n spoke:\n"'

send-hook @(localhost|gicco|snoopy) \
        'unset record'

send-hook am-utils@xxxxxxxxxxxx 'my_hdr Reply-To: am-utils@xxxxxxxxxxxx'
send-hook vtcl-user           'my_hdr Reply-To: vtcl-user@xxxxxxxxxxxxxxxxxxxxx'

reply-hook '~C hampi@xxxxxxxxxxxx' \
        'my_hdr From: Hanspeter Roth <hampi@xxxxxxxxxxxx>; \
         color status  magenta yellow'

set default_hook="~f %s !~P | (~P ~C %s)"

source ~/.mail_aliases
set alias_file=~/.mail_aliases

set pager_context=4
set pager_index_lines=10
set pager_stop

#
# Settings based on mailbox
#
set index_format="%4C %Z %{%d %H:%M} %-15.15F %4l %s"
folder-hook .     'set index_format="%4C %Z %{%d %H:%M} %-15.15F %4l %s" ;\
                   set resolve; exec first-entry'
folder-hook backup 'set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s" ;
folder-hook '~d <1d' \
                  'set index_format="%4C %Z %{ %H:%M} %-15.15F (%4l) %s"'
folder-hook sent* 'set index_format="%4C %{%b %d} %-17.17t (%4l) %s" ;\
                   set resolve'
folder-hook spam*  'set resolve'

folder-hook read  'push T~r>2w!~F\n\;'
folder-hook spam  'push T~z>20000!~F\n'