## ======================================================================== ## File: $HOME/.mutt.personal ## Purpose: Setup file for the Mail program "Mutt" ## Author: Sven Guckes setup-mutt.personal(at)guckes.net ## Latest change: Sun Oct 25 22:05:23 CET 2020 ## Size: ca 33KB ## Availability: http://www.guckes.net/setup/mutt.personal ## Comments are very very welcome - please send an email! :-) ## ======================================================================== ## ======================================================================== ## "Who am I?" well - "me, myself, and I." ## ## the first thing to do is to tell mutt about yourself. ## "realname" for your real name and ## "from" for your *address*. (many people get this wrong.) ## you might need to enforce the domain name with "hostname" ## and "hidden_host" (yes, this isn't exactly intuitive, but so what?). ## ## if you use a copy of this file then you ## MUST adjust these settings for yourself! ## you have been warned, right?! ## ======================================================================== # use_from: # tell mutt to generate the From: header # using the values of realname+from: set use_from # # realname: # the realname. *my* name. this one does not change. ever. set realname="Sven Guckes" # # folks - please please please - use your full realname! # i know that some people really have loooooooooooong names # (you spanish and indian people probably know that), # so i suggest you simply choose *one* firstname and the # most significant one of your last names. this will do. # many people save mails by name, and this usually comes # to saving them in "~/Mail/firstname.lastname" folders. # see this page for more: # http://www.guckes.net/faq/using.realname.html # # from: set from=guckes@guckes.net # # default hook for the address: # folder-hook . "set from=guckes@guckes.net" # folder-hook . "set from=guckes@gmx.de" # i am using a hook here because when i change to the folder # of some mailing lists i might have to change my address # so i can send (list-reply) to that list. and when i # change back to any of the other lists then this # default folder-hook will restore my default address. # # hostname: # actually, i do not use hostnames at all. # after all i do not want multiple copies of spam # which somehow happens when you post public messages # as me@host1.mydomain and me@host2.mydomain .. # # so i use my own domain name as hostname only # instead of whatever is set in /etc/resolv.conf. set hostname="guckes.net" # # mind you, when hidden_host is set then the part # before the first dot is regarded as a hostname # and mutt would take that away. # therefore it should be unset: unset hidden_host # by the way, the $hostname gets used in the # Message-ID field, too. which is good. # now mutt knows which address to use for *sending* mails. # but when it *receives* mails then it needs to know about # all the other addresses i use for sending, too. # this is done via the "alternates" variable: ## ======================================================================== ## ALTERNATES - "Who Am I?" in addresses ## ======================================================================== ## "alternates" tells mutt about your addresses. Mutt thus can show mails ## addresses to you in the folder index as "personal" using the flag '+'. ## Mails which do not contain any of your addresses in the header ## are considered "unpersonal" and are flagged with an 'X'. ## And when you "group-reply" to a mail then all your personal ## can be filtered out so you will not receive an extra copy. [980515] ## You can list all your addresses as a list: ## set alternates=(address1|address2|address3) ## But the use of regular expressions is soooo much fun! :-) # set alternates=.*@guckes.net|\ # (fubtel@go.to|comp.editors@go.to|linuxtag@travel.to)|\ # (sven|guckes)(-[-.a-z0-9]*)?@\ # ([-+a-zA-Z0-9]+\.)?\ # ((inf|math|zedat).fu-berlin.de|f-451.net|hrz.tu-chemnitz.de|gmx.de|gmx.net|trash.net|unix.vi|\ # ganeshas-project.org|linux-in-der-grundschule.de|linuxfaq.de|openwebschool.de|\ # (antiword|hal91|magicpoint|pingos|slang|slrn|vi-editor|vim).(de|net|org))|\ # gnu-screen-owner # NOTE! with mutt-1.5.6 there is no alternates variable any more. # instead, there is now an "alternates" *command*. # so now you can give a *list* of "alternates" commands # instead of typing up a long value. alternates @guckes.net alternates @guckes.in-berlin.de alternates guckes@(antilope|kudu|me|user)[.]?in-berlin.de alternates gnu-screen-owner alternates sven.d.guckes@gmail.com alternates maillists-yahoo@guckes.net alternates sven_guckes@yahoo.com # OLD addresses: # alternates guckes@(f-451.net|hrz.tu-chemnitz.de|gmx.de|gmx.net|trash.net|unix.vi) # alternates guckes@(antiword|hal91|magicpoint|pingos|slang|slrn|vi-editor|vim).org # alternates guckes@(ganeshas-project.org|linux-in-der-grundschule.de|linuxfaq.de|openwebschool.de) # alternates guckes@me.com # alternates sg@grical.org # alternates sven.guckes@netwatcher24.de # alternates sven.guckes@netwatcher.at # alternates guckes@(hostnames.)?kunstlabor.at # alternates (fubtel@go|comp.editors@go|linuxtag@travel).to # alternates (sven|guckes)(-[-.a-z0-9]*)?@([-+a-zA-Z0-9]+\.)?(inf|math|zedat).fu-berlin.de # alternates 26c3@lightningtalks.de # alternates m.nt.gsf.hrr.dfl.shm.b@m.r..t # alternates sven.guckes@infotage # set alternates=.*@guckes.net|\ # (sven|guckes)(-[-.a-z0-9]*)?@([-+a-zA-Z0-9]+\.)?\ # ((inf|math|zedat).fu-berlin.de|hrz.tu-chemnitz.de) ## ======================================================================== ## An example for the use of an internal language ## ======================================================================== # # constructing such a long regular expression gives a # good example for why an internal language can be nice: # a language would allow to create *arbitrary* variables # with some values - and also allow to combine them to # new variables using some operators, eg "+=" to add more # to an existing value of a variable. # # here is my example: # # # login names - usually "guckes", but sometimes "sven": # let USER="(sven|guckes)([-.a-z0-9]*)?" # # # a regexp that matches possible host names: # let HOSTS="([-+a-zA-Z0-9]+\.)?" # # # university: # let DOMAINS="(inf|math|mi).fu-berlin.de" # # # free mail services: # let DOMAINS="epost.de|gmx.de|gmx.net" # # # my own domains: # let DOMAINS+="|guckes.net|(antiword|pingos|slrn|vi-editor|vim).org" # # # free shell accounts: # let DOMAINS+="|trash.net" # # # other accounts: # let DOMAINS+="|kens.com|linuxfaq.de" # # # put alternation brackets around everything: # let DOMAINS="($DOMAINS)" # # # some redirected addresses: # let SPECIAL="(fubtel@go.to|comp.editors@go.to)" # # # put it all together: # let ADDRESSES="$USER@$HOSTS$DOMAINS|$SPECIAL" # # # now the "alternates" is simply the regexp # # which contains all possible $ADDRESSES: # set alternates=$ADDRESSES ## ======================================================================== ## COLOR Setup - personal color settings ## ======================================================================== # source my personal color setup: # this part of the setup defines # how to colorize mails in the folder index, # header lines and text n the mail body # (when viewing them with the *internal* pager). source ~/.mutt/color ## ======================================================================== ## GPG Setup ## ======================================================================== # set the pgp_* variables for use with "gpg" (GNUpg). source ~/.mutt/gpg.rc ## ======================================================================== ## Mailing Lists Setup ## ======================================================================== # 2003-06-11 source ~/.mutt/maillists ## ======================================================================== ## Personalized Hooks ## ======================================================================== # i used "personalized hooks" for people to put their mails # into "+Firstname.Lastname" folders. that's all. # this file is not public as it contains personal email addresses. source ~/.mutt/personalized_hooks ## ======================================================================== ## POP Setup - Mailbox at GMX.DE ## ======================================================================== # my setup for downloading mails from a POP server. # POP means "Post Office Protocol" which defines # the way mails are exchanged from a server to a client. # Mutt here is the client (program) which uses POP # to fetch the mails from a POP server. # source ~/.mutt/pop.gmx # source ~/.mutt/pop.in-berlin ## ======================================================================== ## SAVE-HOOKS ## ======================================================================== # 2016-12-15 # all those hooks for the "save-message" command: source ~/.mutt/save-hooks # all that NEW stuff ;) source ~/.mutt/NEW ## ======================================================================== ## MY_HDR - setting header lines for *all* mails ## ======================================================================== # In this section I'll define some header lines which # mutt will add when I compose *new* mails for sending away. # X-Mailer: This gives info about the mailer I use. # Now, Mutt already identifies itself as the # Mail User Agent by adding the line "User-Agent:". # However, this line does not contain the address of its web site # (as many mailers do). So I'll add it with this line: # my_hdr X-Mailer: Mutt http://www.mutt.org/ # 2017-07-21: time to change this! my_hdr User-Agent-Homepage: http://www.neomutt.org/ # 2003-03-13, 2014-08-26, 2016-11-25 switch to long IDs # tell people about my PGP key and its fingerprint: # my_hdr X-PGP-57F77F09: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x57F77F09 # my_hdr X-PGP-57F77F09: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBFD6EE5857F77F09 # my_hdr X-PGP-57F77F09-FP: 11 28 37 E2 CB 46 72 67 9E 8E 22 18 DA F9 C0 96 # my_hdr X-PGP-0185391B: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0185391B my_hdr X-PGP-0185391B: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xEAB97F200185391B my_hdr X-PGP-0185391B-FP: 32CE 5648 6E6D 6D6D 33E5 3A38 EAB9 7F20 0185 391B # # 2020-02-11 time for the "OpenPGP:" header # https://www.ietf.org/archive/id/draft-josefsson-openpgp-mailnews-header-07.txt my_hdr OpenPGP: id=EAB97F200185391B preference=signencrypt (keysigningparty,anyone?) \ url=http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xEAB97F200185391B # X-Uptime: Just a fun line to tell other about the uptime of my host. # "Hey, look here, no reboot for N days! # Eat your heart out, Windows lusers." ;-) # This makes use of the "backticks evaluation": # my_hdr X-Uptime: `uptime` # # However, the uptime command is too verbose, so I'll use # a sed command to strip away the unnecessary information. # Example: # input: 4:41am up 63 days, 13:26, 2 users, load average: 0.04, 0.03, 0.03 # output: 63 days # # my_hdr X-Uptime: `uptime | sed -e 's/.*up \([^,]*\),.*/\1/'` # 2017-01-07 my_hdr X-Uptime: `uptime -p` # my_hdr X-Uptime: `uptime -s` # # or use a shell script which simply extracts the time in days: # 'my_hdr X-Uptime: `uptime.sh`' # # here's the script "update.sh": # #!/bin/sh # uptime | sed -e 's/.*up \(.*\) day(s),.*/\1 days/' # # Then again - it's a little too verbose # and might shock Windows lusers # have pity on them. NOT! ;-) # X-URL: # The Web addresses of my webpages. Call it vanity, if you like. # I simply prefer this to adding a sginature to every mail I send. my_hdr X-URL: http://www.guckes.net/ # X-Accept-Language: # Tell people which languages I speak # (German [de] and English [en]): my_hdr X-Accept-Language: de en # X-Editor: # The editor I used to write my messages: # my_hdr X-Editor: Vim 6.2 http://www.vim.org/ # my_hdr X-Editor: Vim 6.3.25 [2004-09-07] http://www.vim.org/ # my_hdr X-Editor: Vim 6.3.58 [2005-01-19] http://www.vim.org/ # my_hdr X-Editor: Vim 6.3.61 [2005-02-05] http://www.vim.org/ # my_hdr X-Editor: Vim 6.3.68 [2005-04-02] http://www.vim.org/ # my_hdr X-Editor: Vim 6.3.78 [2005-06-15] http://www.vim.org/ # my_hdr X-Editor: Vim 6.4.01 [2005-10-15] http://www.vim.org/ # my_hdr X-Editor: Vim 6.4.06 [2005-10-15] http://www.vim.org/ # my_hdr X-Editor: Vim 6.4.07 [2005-10-15] http://www.vim.org/ # my_hdr X-Editor: Vim 7.0g [2006-04-30] http://www.vim.org/ # my_hdr X-Editor: Vim 7.0.152 [2006-05-07] http://www.vim.org/ # my_hdr X-Editor: Vim 7.0.165 [2006-11-15] http://www.vim.org/ # switch to another host which has an older version: # my_hdr X-Editor: Vim 7.0.122 [2006-05-07] http://www.vim.org/ # my_hdr X-Editor: Vim 7.1.226 [2007-05-12] http://www.vim.org/ # my_hdr X-Editor: Vim 7.1.266 [2008-02-27] http://www.vim.org/ # my_hdr X-Editor: Vim 7.2.79 [2009-01-11] http://www.vim.org/ # my_hdr X-Editor: Vim 7.2.314 [2007-05-12] http://www.vim.org/ # six years missing.. o_O # my_hdr X-Editor: Vim 7.3.854 [2013-03-18] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4a [2013-07-06] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.430 [2014-08-31] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.591 [2015-01-25] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.738 [2015-06-18] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.791 [2015-10-12] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.898 [2015-10-24] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.922 [2015-11-11] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1026 [2016-01-02] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1127 [2016-01-17] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1229 [2016-02-01] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1444 [2016-02-28] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1831 [2016-05-16] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.1902 [2016-06-05] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.2066 [2016-07-18] http://www.vim.org/ # my_hdr X-Editor: Vim 7.4.2152 [2016-08-06] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0069 [2016-11-07] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0142 [2017-01-05] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0259 [2017-02-02] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0494 [2017-03-19] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0567 [2017-04-19] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0596 [2017-05-02] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0678 [2017-06-26] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0730 [2017-07-19] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0839 [2017-07-19] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.0871 [2017-08-05] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1111 [2017-09-15] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1214 [2017-10-24] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1428 [2018-01-11] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1504 [2018-02-11] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1599 [2018-03-11] http://www.vim.org/ # my_hdr X-Editor: Vim 8.0.1727 [2018-04-17] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.37 [2018-06-07] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.124 [2018-06-28] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.255 [2018-08-08] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.538 [2018-11-20] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.847 [2019-01-30] http://www.vim.org/ # my_hdr X-Editor: Vim 8.1.2044 [2019-09-16] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.0086 [2020-01-04] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.0219 [2020-02-06] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.0346 [2020-03-02] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1377 [2020-08-06] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1484 [2020-08-19] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1507 [2020-09-04] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1598 [2020-09-05] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1657 [2020-09-11] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1712 [2020-09-20] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1814 [2020-10-09] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1905 [2020-10-25] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.1970 [2020-11-10] http://www.vim.org/ # my_hdr X-Editor: Vim 8.2.2005 [2020-11-18] http://www.vim.org/ my_hdr X-Editor: Vim 8.2.2027 [2020-11-21] http://www.vim.org/ # I'd prefer the editor identified itself - # however, this is more hassle than it is worth. ;-) # X-Location: # Tell the reader where I currently am (physically). # My home town ("default"): my_hdr X-Location: Europe, Germany, Berlin # # 2009-08-12 -- 2009-08-17 # my_hdr X-Location: Europe, Netherlands, Vierhouten, www.HAR2009.nl # # 2009-05-13 -- 2009-05-15 # my_hdr X-Location: Europe, Denmark, Copenhagen # # 2007-12-06 -- 2007-12-10 # my_hdr X-Location: Europe, Sweden, Goeteborg # # 2006-12-06 # my_hdr X-Location: Europe, Germany, Herford # 2006-12-03 - 2006-12-06 # my_hdr X-Location: Europe, Netherlands, Leiden # 2006-12-02 - 2006-12-03 # 2016-11-10 - 2016-11-14 # my_hdr X-Location: Europe, Netherlands, Eindhoven # # 2006-12-01 # my_hdr X-Location: Europe, Germany, Moenchengladbach # # 2006-11-30 # my_hdr X-Location: Europe, Germany, Bonn # # 2006-11-26 - 2006-11-29 # my_hdr X-Location: Europe, Germany, Esslingen # # 2006-09-11, 2007-04-04 -- 2007-04-09 # 2009-05-15 - 2009-05-17 # my_hdr X-Location: Europe, Germany, Hamburg # # 2006-03-26 - 2006-03-30 # my_hdr X-Location: Europe, Germany, Ulm # 2006-03-25 # my_hdr X-Location: Europe, Germany, Augsburg # # 2013-05-12 -- ... # my_hdr X-Location: Europe, Germany, Chiemsee # # 2005-05-19 - 2005-05-21 # 2006-05-26 - 2006-05-27 # 2007-05-11 - 2007-05-12 # my_hdr X-Location: Europe, Austria, Eisenstadt # # 2005-02-27 + 2005-02-28 # my_hdr X-Location: Europe, Germany, Koeln # # 2004-11-18 -- 2004-11-23 # my_hdr X-Location: Europe, Germany, Essen # # 2004-10-30 -- 2004-10-31 # 2014-09-12 -- 2014-09-15 # my_hdr X-Location: Europe, Germany, Dresden # # 2004-08-21 -- 2004-08-28 # my_hdr X-Location: Europe, Germany, Ludwigsburg # # 2003-12-13 # my_hdr X-Location: Europe, Netherlands, Utrecht # 2003-12-12 # my_hdr X-Location: Europe, Netherlands, Leiden # # And my location while I was travelling: # 2003-06-23 # 2015-06-15 -- 2015-06-18 # 2016... # 2017-06-25 -- 2017-06-28 # my_hdr X-Location: Europe, Germany, Staufen # # 2002-06-28 -- 2002-06-30 # 2003-06-04 -- 2002-06-11 # 2004-05-04 # 2004-05-09 -- 2004-05-14 # 2004-05-23 -- 2004-06-04 # 2004-08-13 -- 2004-08-16 # 2005-01-29 -- 2005-02-04 # 2005-05-22 -- 2005-05-31 # 2006-04-14 -- 2006-04-21 # 2006-05-25 -- 2006-06-04 # 2006-06-19 # 2006-09-01 # 2007-03-09 -- 2007-03-18 # 2007-05-11 # 2007-05-13 -- 2007-05-18 # 2007-05-30 -- 2007-06-04 # 2007-11-16 -- 2007-11-26 # 2008-04-15 -- 2008-04-23 # 2008-11-10 -- 2008-11-19 # 2009-04-14 -- 2009-04-29 # 2009-11-16 -- 2009-11-24 # 2010-04-28 -- 2010-05-01 # 2010-11-19 -- 2010-12-06 # 2011-04-06 -- 2011-04-08 # 2011-05-19 -- 2011-05-20 # 2012-04-23 -- 2012-04-27 # 2012-05-04 -- 2012-05-16 # 2013-04-15 -- 2013-05-09 # 2014-04-08 -- 2014-04-20 # 2014-05-21 -- 2014-05-25 # 2014-06-01 -- 2014-06-04 # 2014-08-26 -- 2014-08-27 # 2014-09-07 -- 2014-09-11 # 2015-04-29 -- 2015-06-11 # 2015-08-31 -- 2015-09-02 # 2015-09-12 -- 2015-09-17 # 2016-04-25 -- 2016-04-29 # 2016-05-03 -- 2016-05-07 # 2017-04-25 -- 2017-04-28 # 2017-05-02 -- 2017-05-10 # my_hdr X-Location: Europe, Austria, Vienna # # 2014-08-28 -- 2014-08-30 # 2015-09-02 -- 2015-09-06 # my_hdr X-Location: Europe, Austria, Weiz # # 2004-05-05 -- 2004-05-09 # 2004-07-02 -- 2004-08-07 # 2004-08-16 -- 2004-08-21 # 2004-08-28 -- 2004-10-15 # 2008-04-19 -- 2008-04-20 # 2009-04-23 -- 2009-04-27 # 2010-04-23 -- 2010-04-28 # 2011-04-03 -- 2011-04-06 # 2011-04-08 -- 2011-04-11 # 2012-04-27 -- 2012-05-04 # 2013-04-19 -- 2013-04-24 # 2014-04-03 -- 2014-04-08 # 2014-08-31 -- 2014-09-05 # 2015-02-17 -- 2015-02-25 # 2015-04-24 -- 2015-04-29 # 2015-09-06 -- 2015-09-09? # 2016? # 2017-04-28 -- 2017-05-02 # my_hdr X-Location: Europe, Austria, Graz # # 2006-06-14 -- 2006-06-18 # 2006-09-02 -- 2006-09-06 # 2013-05-09 -- 2013-05-12 # 2014-05-26 -- 2014-06-01 # 2014-09-05 -- 2014-09-07 # 2015-06-12 # my_hdr X-Location: Europe, Austria, Linz # # 2002-06-06 -- 2002-06-09 # 2003-07-10 -- 2003-07-13 # my_hdr X-Location: Europe, Germany, Karlsruhe # # 2006-09-06 -- 2006-09-08 # my_hdr X-Location: Europe, Germany, Jena # # 2002-05-25 # my_hdr X-Location: Europe, Germany, Magdeburg # # 2002-05-17 -- 2002-05-20 # my_hdr X-Location: Europe, Germany, Flensburg # # 2005-03-04 -- 2005-03-06 # 2004... # 2003... # 2002-03-09 -- 2002-03-10 # 2001-11-27 # 2001-03-10 -- 2001-03-10 # my_hdr X-Location: Europe, Germany, Chemnitz # # 2001-06-05 -- 2001-07-08: # my_hdr X-Location: Europe, Germany, Stuttgart # # 2001-06-29 -- 2001-06-24: # my_hdr X-Location: Europe, Austria, St.Poelten # # 2001-05-18 ++ 2001-05-19 # my_hdr X-Location: Europe, Germany, Magdeburg # # 2001-05-04 -- 2001-05-06 # my_hdr X-Location: Europe, Germany, Braunschweig # # # 2000-06-29 -- 2000-07-02: # my_hdr X-Location: Europe, Germany, Stuttgart # # 2000-06-21 -- 2000-06-25: # 2014-04-21 # my_hdr X-Location: Europe, Czech Republic, Prague # # 1999-09-21 -- 1999-10-21: # my_hdr X-Location: USA, California, San Francisco, UC Berkeley # my_hdr X-Location: USA, California, Sacramento # # 2015-05-21 -- 2015-05-22 # my_hdr X-Location: Europe, Italy, Varese # 2015-05-22 -- 2015-05-27 # my_hdr X-Location: Europe, Italy, Milano # # 2015-06-12 -- 2015-06-15 # my_hdr X-Location: Europe, Germany, Tuebingen # # 2015-06-18 # my_hdr X-Location: Europe, Germany, Hildesheim # X-IRC: # Internet Relay Chat and all that. # My favourite apps as channel names: # my_hdr X-IRC: Sveng #fub #lynx #mutt #slrn #vim #zsh # my_hdr X-IRC: ircII 2.8.16beta (19960317) # just for fun.. # my_hdr X-message-flag: reinstalling windows... ## ======================================================================== ## LOCAL_SITE - domains which are "local" to own domain ## ======================================================================== ## "local_site" defines the "local sites (aka domains)" ## so mutt knows which addresses to treat as "local". ## This knowledge is use eg to define a signature to be used ## when replying to a "local address". ## Standard example from the manual.txt: ## set local_site=(^|\\.)cs\\.hmc\\.edu$ # set local_site=(chem|math|phil)\\.domain # so this would work for these three subdomains: # chem.domain # math.domain # phil.domain # or just use the whole domain as local: # set local_site=.domain ## ======================================================================== ## FOLDER-HOOKS ## ======================================================================== # quickly select enw mails within the past two weeks - # and leave out the doubles: folder-hook . 'macro index ,N "~N ~d <2w ! ~="\n' folder-hook ROHRPOST 'macro index ,N "~N ~d <2w ! ~= ~b berlin"\n' # folder-hook rohrpost "push '~N ~d <2w ! ~=\n ~b berlin'" # note: this macro will be adjusted for some folders, eg +IN/VIM. # Set the defaults for folders: folder-hook . set timeout=120 # Set defaults for sorting method: folder-hook . set sort=threads # folder-hook '!' set sort=mailbox-order folder-hook ~/Mailbox set sort=mailbox-order folder-hook ~/Mailbox "push " # 020524: use a bigger increment for the counter # when starting up on the big folders: # folder-hook . set read_inc=100 # folder-hook \! set read_inc=500 # folder-hook +MUTT set read_inc=500 # folder-hook +VIM set read_inc=500 # folder-hook SPAM set read_inc=2000 # 2007-04-27: just make it 1000, dammit! # folder-hook . set read_inc=1000 # 2016-02-21: why not 10000?! :-) folder-hook . 'set read_inc=10000' folder-hook VIM 'set read_inc=2000' folder-hook INBOX 'set read_inc=1000' folder-hook WIRELESS 'set read_inc=1000' # 2018-08-23 # set net_inc=0 # obsolte by mutt-2.0.1 set time_inc=2000 # 010115: TEST # folder-hook empty set signature="emptysig" # Adding header lines with "folder-hook"s: # # Remove all "my_hdr" definitions: folder-hook . unmy_hdr * # # default rule to match *all* folders: # folder-hook . my_hdr From: Sven Guckes
# NOTE: Setting an explicit From: line unfortunately overwrites # the From: line set with the "reverse_name" feature. :-( # 2004-12-20 # unsetting reverse_realname ensures that my $realname # gets used for the name part in the From: line, ie: # incoming mail: To: not-my-name # outgoing mail: From: Sven Guckes unset reverse_realname # The MAILBOX (denoted by its shortcut '!'): # folder-hook '!' set timeout=120 # NOTE: The '!' must be escaped with a backslash - # otherwise it is read as part of the pattern where it means "not". # General Mailing Lists # show part of the index when looking at mailings lists: # folder-hook ~l "color index green black ~P" # folder-hook ~l set pager_index_lines=10 # Unfortunately, you cannot use "~l" here # as "folder-hook" expects a regexpr - not a pattern. # MUTT # colorize *direct* replies to my mails folder-hook MUTT "color index brightgreen black '~i fu-berlin.de'" # colorize further replies to my mails folder-hook MUTT "color index green black '~x fu-berlin.de'" # see the latest changes which were comitted via cvs: # folder-hook MUTT 'macro index ,N "~d <2w ~N ~f roessler ~s cvs ! ~b no.changes' # # use #N to limit the display by only those mails which I want to see: # folder-hook MUTT 'macro index ,N " \ # ~N ~d <2w ! ~= ! ~P ! ~s '(maildir|encryp|gpg|pgp|gnupg|imap|cvs)\' ! ~b no.changes"' # # LIMIT: # ~N ~d <2w ! ~= ! ~P ! ~s pgp ! ~b no.changes # in detail: # ~N new mails # ~d <2w Date: - less than two weeks # ! ~= no duplicates (bah!) # ! ~P not Personal (From: myself) # ! ~s foo no Subject: with "foo" # ! ~b bar no "bar" in message *body* # # the hook adds a level of quoting which somehow fails. # so I'll just stuff the commands into another setup file # abd have it sourced. much easier that way. :-) source ~/.mutt/list.mutt # VIM # Adjust the hdr_format: # folder-hook VIM set hdr_format="%M %2N %-15.15F (%6c) %s" # colorize mails from the author folder-hook VIM "color index brightred black '~f bram'" # For all mailing lists (pattern "~l"): # colorize mails from myself folder-hook ~l "color index brightgreen black ~P" # colorize replies to my mails # folder-hook ~l "color index green black '~h in-reply-to:.*math.fu-berlin.de'" folder-hook ~l "color index green black '~h in-reply-to:.*guckes.net'" # colorize further followups to my mails # folder-hook ~l "color index green black '~x math.fu-berlin.de'" folder-hook ~l "color index green black '~x guckes.net'" ## ======================================================================== ## MESSAGE-HOOKS ## ======================================================================== ## mostly for using a special display_filter for special people.. # 2007-05-14 block ausgeblendet # # message-hook . 'set display_filter=""' # message-hook . 'set display_filter="/bin/sed -f $HOME/.mutt/df.default"' # # message-hook luc- 'set display_filter="/bin/sed -f $HOME/.mutt/luc.sed"' # # message-hook "~f mailservice@d" 'set display_filter="/bin/sed -f $HOME/.mutt/df.donnerwetter"' # # message-hook "~f @linuxland.de" 'set display_filter="/bin/sed -f $HOME/.mutt/df.linuxland"' # # folder-hook +IN/SCREEN 'set display_filter="/bin/sed -f $HOME/.mutt/df.default"' # # message-hook "~f deshmukh@" 'set display_filter="/bin/sed -f $HOME/.mutt/df.deshmukh"' # message-hook "~f 79219@" 'set display_filter="/bin/sed -f $HOME/.mutt/df.ms"' # # 2004-12-02 # message-hook lax 'set display_filter="/bin/sed -f $HOME/.mutt/df.lax"' # 2007-05-14 # set display_filter="/bin/sed -f $HOME/.mutt/df.default" # 2016-01-25 # set display_filter="/bin/sed -f $HOME/.mutt/df.simple" # 2016-01-27 # using two filters now - a "simple" one - and a "special" one: # set display_filter="/bin/sed -f $HOME/.mutt/df.simple -f $HOME/.mutt/df.special" # 2016-01-27 adding "-r" set display_filter="/bin/sed -r -f $HOME/.mutt/df.simple -f $HOME/.mutt/df.special" # adjust the recognition of quoted text # default rule for all messages: # message-hook . 'set quote_regexp="^> "' # # damn this "X-Mailer: Apple Mail (2.481)"! # it sends text with this header line # Content-Type: text/plain; charset=US-ASCII; format=flowed # but with "format=flowed" mutt then *has* to ig # message-hook "~h format=flowed" 'set quote_regexp="^>"' # message-hook "~f md@linux.it" 'set quote_regexp="^ >"' # Marco d'Itri # this guy quotes with "_>" instead of ">_" (default) # so this forces everyone to adapt to his style # when he wants mutt to recognize the quoted text: ## ======================================================================== ## SEND-HOOKS ## ======================================================================== # EXAMPLES # Set signatures according to whom you send email to: # send-hook . "set signature=~/.P/sig/default" # send-hook @.*domain "set signature=~/.P/sig/domain" # send-hooks for SIGNATURES! # default rule for setting the signature file - NONE! *grin* # send-hook . 'set signature=""' send-hook . 'unset signature' # this is easier to read # rule of thumb: append a signature only when it gives info in context. # Setting an appropriate address when sending to special addresses: # send-hook . "unmy_hdr From: *" # Such constructs do NOT work! # # you must give the *exact* command line to have it removed: # send-hook . 'unmy_hdr From: Sven Guckes ' # when mailing to GMX addresses - use the private GMX address: # send-hook @gmx.de 'set from=guckes@gmx.de' # send-hook @gmx.net 'set from=guckes@gmx.net' # when mailing to domains for which i have an address # then use my personal mailing address to identify as # "one of them": send-hook @linuxfaq.de 'set from=guckes@linuxfaq.de' send-hook @vim.org 'set from=guckes@vim.org' # yes, a change of sender address might not always be # a good idea. # If your name contains dots and/or commas # then you must put them in quotes. Example: # set realname="'Gates, Bill H. III'" from=billg@microsoft.com # Send a CC (or BCC) to address2 whenever sending to address1: # send-hook "~C address1" "my_hdr Cc: address2" # send-hook "~C address1" "my_hdr Bcc: address2" # Correcting the header on replies to mails from # Thomas E. Dickey (the maintainer of the xterm faq). # He uses a mailer which replies to you like this: # To: ADDRESS (NAME
) # *sigh* # # The following simply corrects this with an explicit From: line. # Not elegant, but it does the job. # # send-hook dickey@.*his.com "my_hdr From: Sven Guckes " # send-hook dickey@.*his.com "set signature=~/.P/sig/sig.dickey" # 020620: # default attribution: ## [2017-09-26] send-hook . 'set attribution="* %n <%a> [%(%Y-%m-%d %H:%M)]:"' # Set a special attribution (a la CrossPoint) for Peer Heinlein: # send-hook heinlein \ #'set attribution="%a hat mir am %(%d.%m.%Y)\\neine mail zu %s geschickt...\\nHier ist meine Antwort!' ## ======================================================================== ## SIGNATURES ## ======================================================================== # send-hook '~h X-Mailer:.*Outlook' 'set signature="~/.sig.oe"' # Unfortunately, this does not work as # "this pattern (~h) is not supported in this mode".. :-( ## ======================================================================== ## SIGNATURES at random (what a silly concept) ## ======================================================================== # Creating a random signature by using a script: # # set signature="~/bin/randomsig|" # # cat ~/bin/randomsig # #!/bin/sh # cat /path/signature.default.txt # fortune /path/file # Using a random signature for a special address: # send-hook '~t address' `/usr/games/fortune cookiefile > ~/.signature` ## ======================================================================== ## FAQs ## ======================================================================== # FAQ: How do I let mutt save to folder "=folder" # when sending mail to "address"? # A: Use "send-hook" combined with "my_hdr" or with "record": # send-hook address my_hdr Fcc: +folder # send-hook address 'set record=+folder' # when browsing one of the folders which contains *sent* mail? # A: Use a folder-hook to change the "simple_search" method: # folder-hook . 'set simple_search="~f %s | ~s %s"' # folder-hook Sent-.* 'set simple_search="~t %s | ~s %s"' # 2013-01-27 # finally added "!~G", ie no messages with encrypted data. set simple_search="!~G (~f %s | ~s %s)" # 2011-01-12: # added "!~G" so encrypted messages are excluded from search. # mutt asks for the passphrase for every encrypted message - and # that is pretty annoying for folders with many such messages. :-/ set simple_search="!~G ~f %s | ~s %s" # 2006-11-02 # do not wait up for sendmail to finish # but rather put it into the background: set sendmail_wait="-1" # 2017-11-18 set crypt_replysign ## ======================================================================== ## TODO -> NEW ## ======================================================================== # 2009-03-18, 2007-04-13: new stuff has been moved to ~/.mutt/NEW # send-hook poeltl "set signature=~/.sig.vienna.2009-04" # tell vim that this file is a setup file for mutt: # vim: set ai et ft=muttrc comments=n\:# isk+=.,\:,/,~,@-@: THPXRF EOF