From: martin f. krafft Date: Fri, 18 Jan 2019 18:33:30 +0000 (+1300) Subject: Change attribution when message is obviously German X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/3d750b5ad889430a621abcc5b9a843d63fd97e6a?ds=inline Change attribution when message is obviously German --- diff --git a/.mutt/confvars b/.mutt/confvars index 07bbcef..aa8ff2d 100644 --- a/.mutt/confvars +++ b/.mutt/confvars @@ -292,7 +292,7 @@ set alias_file="$my_confdir/aliases" # reply. For a full listing of defined printf(3)-like sequences see the section # on $index_format. # -set attribution="Quoting \"%n\", who wrote on %{%Y-%m-%d} at %{%H:%M %Z}:" +set attribution="$my_attribution_en" # 3.19. attribution_locale diff --git a/.mutt/muttrc b/.mutt/muttrc index 5127f1f..faa17af 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -2,6 +2,9 @@ set my_confdir="$HOME/.mutt" +set my_attribution_de="Zitiere aus E-Mail von \"%n\" vom %{%Y-%m-%d} um %{%H:%M Uhr %z}:" +set my_attribution_en="Quoting \"%n\", who wrote on %{%Y-%m-%d} at %{%H:%M Uhr %z}:" + source $my_confdir/confvars source $my_confdir/colours source $my_confdir/headers @@ -27,3 +30,4 @@ source "test -f $my_mutt_mailboxes && cat $my_mutt_mailboxes|" set alias_file="$my_confdir/aliases" source "test -f $alias_file && cat $alias_file 2>/dev/null || echo unset alias_file|" +message-hook '~b "(Danke|Grü(ß|ss)e|Gru(ß|ss)|LG|Liebe|geehrte|Herr|Frau)"' 'set attribution="$my_attribution_de"'