Changes between Version 1 and Version 2 of UseCases/MultiAccounts

Oct 31, 2013 6:35:51 PM (4 years ago)

it looks like the author attempted to escape the trac domain name snarfing with
but it didn't have the intended consequences. wikiml fixes. I haven't tested this
syntax so I'm assuming it's an error and I'm not breaking it.


  • UseCases/MultiAccounts

    v1 v2  
    44=== Essential stuff: reverse ===
    55You will need to set this variable in order for mutt to build the From: line of your replies using the address where you received the messages you are replying to.
    67 set reverse_name=yes
    79This will only work if your address matches your alternates. (see next section)
    1113If you want to also include the real names the person that e-mailed you used, you need to use this.
    1216 set reverse_realname=yes
    1319'''Note:''' This var is set to 'yes' by default, so remember to change it if you do not want to use those names.
    1521Also verify that the '''$use_from''' variable is set to "yes".
    16 It is correct by default, but may be unset say in Debian's global <nowiki>/etc/Muttrc</nowiki>.
     22It is correct by default, but may be unset say in Debian's global {{{ /etc/Muttrc }}}.
    1824=== Setting up the addresses: alternates ===
    1925The variable that holds the different addresses mutt can use is called 'alternates'. Its syntax was changed in mutt 1.5.6, so most of the sample configuration files you'll find might look like this:
    20  set alternates="^(john@isp1\\.com|john@isp2\\.com)$"
     27 set alternates="^(john@example.COM|john@example.ORG)$"
    2129When in reality, it will only work if you type it like this:
    22  alternates     ^john@isp1\\.com$     ^john@isp2\\.com$
     31 alternates     ^john@example.COM$     ^john@example.NET$
    2333Please note that you can't add a "real name" to the alternates variable. This is for addresses only. So if you set reverse_realname to 'no' and want to specify your realnames, see the next section to find out how to deal with them.
    2535=== Real names: send-hooks ===
    2636If you want to use different realnames for your different accounts, you can set a send-hook for each of them. Here's an example:
     38 send-hook     .                          'set realname="John Doe"'
     39 send-hook     "~f ^john@example.COM$"     'set realname="Johnny"'
     41=== Default account for new messages ===
    28  send-hook     .                          'set realname="John Doe"'
    29  send-hook     "~f ^john@isp2\\.com$"     'set realname="Johnny"'
    31 === Default account for new messages ===
    32 Up until now, you can reply to messages and mutt will automagically select the
    33 appropriate ''From:'' header based on the message you are answering's ''To:'' header.
     43Up until now, you can reply to messages and mutt will automatically select the
     44appropriate ''From:'' header based on the message you are answering ''To:'' header.
    3445For when composing a new message, declare statically default '''$from''' and '''$realname''':
    36  set
     48 set
    3749 set realname="John Doe"
    3952In addition to this static setup, you can change '''$from''' and '''$realname''' at will,
    4558whatever new mail or reply, you can use:
    4761 send-hook     .                       "unmy_hdr From:"
    48  send-hook     ^emm@example\\.com$     "my_hdr From: agent 007 <>"
     62 send-hook     ^$     "my_hdr From: agent 007 <john@example.COM>"
    5065This override has a weakness: