Changes between Version 1 and Version 2 of UseCases/MultiAccounts


Ignore:
Timestamp:
Oct 31, 2013 6:35:51 PM (4 years ago)
Author:
MichaelRay
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • 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.
     6{{{
    67 set reverse_name=yes
     8}}}
    79This will only work if your address matches your alternates. (see next section)
    810
     
    1012
    1113If you want to also include the real names the person that e-mailed you used, you need to use this.
     14
     15{{{
    1216 set reverse_realname=yes
     17}}}
     18
    1319'''Note:''' This var is set to 'yes' by default, so remember to change it if you do not want to use those names.
    1420
    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 }}}.
    1723
    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)$"
     26{{{
     27 set alternates="^(john@example.COM|john@example.ORG)$"
     28}}}
    2129When in reality, it will only work if you type it like this:
    22  alternates     ^john@isp1\\.com$     ^john@isp2\\.com$
     30{{{
     31 alternates     ^john@example.COM$     ^john@example.NET$
     32}}}
    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.
    2434
    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:
     37{{{
     38 send-hook     .                          'set realname="John Doe"'
     39 send-hook     "~f ^john@example.COM$"     'set realname="Johnny"'
     40}}}
     41=== Default account for new messages ===
    2742
    28  send-hook     .                          'set realname="John Doe"'
    29  send-hook     "~f ^john@isp2\\.com$"     'set realname="Johnny"'
    30 
    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''':
    3546
    36  set from=john@isp1.com
     47{{{
     48 set from=john@example.com
    3749 set realname="John Doe"
     50}}}
    3851
    3952In addition to this static setup, you can change '''$from''' and '''$realname''' at will,
     
    4558whatever new mail or reply, you can use:
    4659
     60{{{
    4761 send-hook     .                       "unmy_hdr From:"
    48  send-hook     ^emm@example\\.com$     "my_hdr From: agent 007 <john@isp1.com>"
     62 send-hook     ^emm@example.com$     "my_hdr From: agent 007 <john@example.COM>"
     63}}}
    4964
    5065This override has a weakness: