mutt — multiaccount support












3















Can anybody help me with mutt configuration?



I need to configure mutt to support mutiple accounts the same time.



At this moment my config file for personal email looks like this:



~ $ cat ~/.mutt/personal

set imap_user = «%personal_email%@gmail.com»
set imap_pass = «%personal_email_pass%»
set smtp_url = «smtps://%personal_email%@smtp.gmail.com:465/»
set smtp_pass = «%personal_email_pass%»
set from = «%personal_email%»
set realname = «%username%»
set hostname = gmail.com
set folder = «imaps://%personal_email%@imap.gmail.com:993»
set spoolfile = «imaps://%personal_email%@imap.gmail.com/INBOX»
set postponed = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Drafts»
set record = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Sent Mail»


"~/.mutt/work" looks the same way, except the values of "%personal_email%" and "%personal_email_pass%", of course.



"~/.muttrc" looks like this:



~ $ cat ~/.muttrc

source «~/.mutt/personal»

macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/personal<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/work<enter><change-folder>!<enter>'


When I press F2 or F3 mutt really changes an account, but when I'm trying to change mailbox (via 'c' -> '?') it opens a mailbox of the first account (in my case "personal") even when the current account is "work".



Why? What am I doing wrong? How can I fix it?










share|improve this question

























  • You might have better luck with the mutt user mailing list.

    – Faheem Mitha
    Apr 8 '14 at 15:17
















3















Can anybody help me with mutt configuration?



I need to configure mutt to support mutiple accounts the same time.



At this moment my config file for personal email looks like this:



~ $ cat ~/.mutt/personal

set imap_user = «%personal_email%@gmail.com»
set imap_pass = «%personal_email_pass%»
set smtp_url = «smtps://%personal_email%@smtp.gmail.com:465/»
set smtp_pass = «%personal_email_pass%»
set from = «%personal_email%»
set realname = «%username%»
set hostname = gmail.com
set folder = «imaps://%personal_email%@imap.gmail.com:993»
set spoolfile = «imaps://%personal_email%@imap.gmail.com/INBOX»
set postponed = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Drafts»
set record = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Sent Mail»


"~/.mutt/work" looks the same way, except the values of "%personal_email%" and "%personal_email_pass%", of course.



"~/.muttrc" looks like this:



~ $ cat ~/.muttrc

source «~/.mutt/personal»

macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/personal<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/work<enter><change-folder>!<enter>'


When I press F2 or F3 mutt really changes an account, but when I'm trying to change mailbox (via 'c' -> '?') it opens a mailbox of the first account (in my case "personal") even when the current account is "work".



Why? What am I doing wrong? How can I fix it?










share|improve this question

























  • You might have better luck with the mutt user mailing list.

    – Faheem Mitha
    Apr 8 '14 at 15:17














3












3








3








Can anybody help me with mutt configuration?



I need to configure mutt to support mutiple accounts the same time.



At this moment my config file for personal email looks like this:



~ $ cat ~/.mutt/personal

set imap_user = «%personal_email%@gmail.com»
set imap_pass = «%personal_email_pass%»
set smtp_url = «smtps://%personal_email%@smtp.gmail.com:465/»
set smtp_pass = «%personal_email_pass%»
set from = «%personal_email%»
set realname = «%username%»
set hostname = gmail.com
set folder = «imaps://%personal_email%@imap.gmail.com:993»
set spoolfile = «imaps://%personal_email%@imap.gmail.com/INBOX»
set postponed = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Drafts»
set record = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Sent Mail»


"~/.mutt/work" looks the same way, except the values of "%personal_email%" and "%personal_email_pass%", of course.



"~/.muttrc" looks like this:



~ $ cat ~/.muttrc

source «~/.mutt/personal»

macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/personal<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/work<enter><change-folder>!<enter>'


When I press F2 or F3 mutt really changes an account, but when I'm trying to change mailbox (via 'c' -> '?') it opens a mailbox of the first account (in my case "personal") even when the current account is "work".



Why? What am I doing wrong? How can I fix it?










share|improve this question
















Can anybody help me with mutt configuration?



I need to configure mutt to support mutiple accounts the same time.



At this moment my config file for personal email looks like this:



~ $ cat ~/.mutt/personal

set imap_user = «%personal_email%@gmail.com»
set imap_pass = «%personal_email_pass%»
set smtp_url = «smtps://%personal_email%@smtp.gmail.com:465/»
set smtp_pass = «%personal_email_pass%»
set from = «%personal_email%»
set realname = «%username%»
set hostname = gmail.com
set folder = «imaps://%personal_email%@imap.gmail.com:993»
set spoolfile = «imaps://%personal_email%@imap.gmail.com/INBOX»
set postponed = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Drafts»
set record = «imaps://%personal_email%@imap.gmail.com/[Gmail]/Sent Mail»


"~/.mutt/work" looks the same way, except the values of "%personal_email%" and "%personal_email_pass%", of course.



"~/.muttrc" looks like this:



~ $ cat ~/.muttrc

source «~/.mutt/personal»

macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/personal<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/work<enter><change-folder>!<enter>'


When I press F2 or F3 mutt really changes an account, but when I'm trying to change mailbox (via 'c' -> '?') it opens a mailbox of the first account (in my case "personal") even when the current account is "work".



Why? What am I doing wrong? How can I fix it?







mutt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 8 '14 at 23:03









Gilles

538k12810881605




538k12810881605










asked Apr 8 '14 at 13:55









FrozenHeartFrozenHeart

3713716




3713716













  • You might have better luck with the mutt user mailing list.

    – Faheem Mitha
    Apr 8 '14 at 15:17



















  • You might have better luck with the mutt user mailing list.

    – Faheem Mitha
    Apr 8 '14 at 15:17

















You might have better luck with the mutt user mailing list.

– Faheem Mitha
Apr 8 '14 at 15:17





You might have better luck with the mutt user mailing list.

– Faheem Mitha
Apr 8 '14 at 15:17










2 Answers
2






active

oldest

votes


















2














Some trickery with hooks. You might want to think twice about storing passwords into .muttrc. At least take care to use application specific passwords instead of your main Google account password when you do something as insecure as this.



# Gmail account passwords and usernames
set my_gmail_user1 = "<account 1, without @gmail or anything>"
set my_gmail_user2 = "<account 2, without @gmail or anything>"
set my_gmail_pass1 = "<password, hopefully an app-specific one>"
set my_gmail_pass2 = "<password, hopefully an app-specific one>"

# Account hooks
account-hook . "unset imap_user ; unset imap_pass"
account-hook "imaps://$my_gmail_user1@imap.gmail.com" "
set imap_user = $my_gmail_user1
imap_pass = $my_gmail_pass1"
account-hook "imaps://$my_gmail_user2@imap.gmail.com" "
set imap_user = $my_gmail_user2
imap_pass = $my_gmail_pass2"

# Gmail folders
set folder = imaps://$my_gmail_user1@imap.gmail.com/
mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
set spoolfile = +INBOX
folder-hook imaps://$my_gmail_user1@imap.gmail.com/ "
set folder = imaps://$my_gmail_user1@imap.gmail.com/
spoolfile = +INBOX
postponed = +[Gmail]/Drafts
record = +[Gmail]/'Sent Mail'
from = 'First User Real Name <$my_gmail_user1@gmail.com> '
realname = 'First User Real Name'
smtp_url = smtps://$my_gmail_user1@smtp.gmail.com
smtp_pass = $my_gmail_pass1"
set folder = imaps://$my_gmail_user2@imap.gmail.com/
mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
set spoolfile = +INBOX
folder-hook imaps://$my_gmail_user2@imap.gmail.com/ "
set folder = imaps://$my_gmail_user2@imap.gmail.com/
spoolfile = +INBOX
postponed = +[Gmail]/Drafts
record = +[Gmail]/'Sent Mail'
from = 'First User Real Name <$my_gmail_user2@gmail.com> '
realname = 'First User Real Name'
smtp_url = smtps://$my_gmail_user2@smtp.gmail.com
smtp_pass = $my_gmail_pass2"


Now all there is left to it is to fire up mutt, then hit y and select the folder for an account you want.



If you want more secure setup, your favorite search engine can tell you how to secure IMAP/POP passwords for Mutt with PGP. Realname/from is left as an exercise for the reader.






share|improve this answer
























  • I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

    – Chris W.
    Apr 23 '14 at 16:44











  • While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

    – Gen.Stack
    2 hours ago



















0














I am using mutt in a similar way and also noticed that mutt does not offer to open right away a mailbox belonging to the currently active account (not being the first one) when just typing c.



You may, however, type c then = and TAB thrice and you will be shown the mailboxes of the currently active account. Hitting TAB again will even allow you to switch between your different accounts' mailboxes.



So far, AFAICT, within mutt there lies no solution (yet) to your question "Why does mutt - when typing c - offer to open a mailbox belonging to the first account, regardless of the fact that another/second account is active.".



My best guess is, it's either a deliberate design choice or a bug no one cared to fix yet. Using [neo]mutt's sidebar might also alleviate the UX.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f123738%2fmutt-multiaccount-support%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Some trickery with hooks. You might want to think twice about storing passwords into .muttrc. At least take care to use application specific passwords instead of your main Google account password when you do something as insecure as this.



    # Gmail account passwords and usernames
    set my_gmail_user1 = "<account 1, without @gmail or anything>"
    set my_gmail_user2 = "<account 2, without @gmail or anything>"
    set my_gmail_pass1 = "<password, hopefully an app-specific one>"
    set my_gmail_pass2 = "<password, hopefully an app-specific one>"

    # Account hooks
    account-hook . "unset imap_user ; unset imap_pass"
    account-hook "imaps://$my_gmail_user1@imap.gmail.com" "
    set imap_user = $my_gmail_user1
    imap_pass = $my_gmail_pass1"
    account-hook "imaps://$my_gmail_user2@imap.gmail.com" "
    set imap_user = $my_gmail_user2
    imap_pass = $my_gmail_pass2"

    # Gmail folders
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user1@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user1@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user1@smtp.gmail.com
    smtp_pass = $my_gmail_pass1"
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user2@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user2@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user2@smtp.gmail.com
    smtp_pass = $my_gmail_pass2"


    Now all there is left to it is to fire up mutt, then hit y and select the folder for an account you want.



    If you want more secure setup, your favorite search engine can tell you how to secure IMAP/POP passwords for Mutt with PGP. Realname/from is left as an exercise for the reader.






    share|improve this answer
























    • I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

      – Chris W.
      Apr 23 '14 at 16:44











    • While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

      – Gen.Stack
      2 hours ago
















    2














    Some trickery with hooks. You might want to think twice about storing passwords into .muttrc. At least take care to use application specific passwords instead of your main Google account password when you do something as insecure as this.



    # Gmail account passwords and usernames
    set my_gmail_user1 = "<account 1, without @gmail or anything>"
    set my_gmail_user2 = "<account 2, without @gmail or anything>"
    set my_gmail_pass1 = "<password, hopefully an app-specific one>"
    set my_gmail_pass2 = "<password, hopefully an app-specific one>"

    # Account hooks
    account-hook . "unset imap_user ; unset imap_pass"
    account-hook "imaps://$my_gmail_user1@imap.gmail.com" "
    set imap_user = $my_gmail_user1
    imap_pass = $my_gmail_pass1"
    account-hook "imaps://$my_gmail_user2@imap.gmail.com" "
    set imap_user = $my_gmail_user2
    imap_pass = $my_gmail_pass2"

    # Gmail folders
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user1@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user1@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user1@smtp.gmail.com
    smtp_pass = $my_gmail_pass1"
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user2@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user2@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user2@smtp.gmail.com
    smtp_pass = $my_gmail_pass2"


    Now all there is left to it is to fire up mutt, then hit y and select the folder for an account you want.



    If you want more secure setup, your favorite search engine can tell you how to secure IMAP/POP passwords for Mutt with PGP. Realname/from is left as an exercise for the reader.






    share|improve this answer
























    • I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

      – Chris W.
      Apr 23 '14 at 16:44











    • While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

      – Gen.Stack
      2 hours ago














    2












    2








    2







    Some trickery with hooks. You might want to think twice about storing passwords into .muttrc. At least take care to use application specific passwords instead of your main Google account password when you do something as insecure as this.



    # Gmail account passwords and usernames
    set my_gmail_user1 = "<account 1, without @gmail or anything>"
    set my_gmail_user2 = "<account 2, without @gmail or anything>"
    set my_gmail_pass1 = "<password, hopefully an app-specific one>"
    set my_gmail_pass2 = "<password, hopefully an app-specific one>"

    # Account hooks
    account-hook . "unset imap_user ; unset imap_pass"
    account-hook "imaps://$my_gmail_user1@imap.gmail.com" "
    set imap_user = $my_gmail_user1
    imap_pass = $my_gmail_pass1"
    account-hook "imaps://$my_gmail_user2@imap.gmail.com" "
    set imap_user = $my_gmail_user2
    imap_pass = $my_gmail_pass2"

    # Gmail folders
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user1@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user1@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user1@smtp.gmail.com
    smtp_pass = $my_gmail_pass1"
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user2@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user2@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user2@smtp.gmail.com
    smtp_pass = $my_gmail_pass2"


    Now all there is left to it is to fire up mutt, then hit y and select the folder for an account you want.



    If you want more secure setup, your favorite search engine can tell you how to secure IMAP/POP passwords for Mutt with PGP. Realname/from is left as an exercise for the reader.






    share|improve this answer













    Some trickery with hooks. You might want to think twice about storing passwords into .muttrc. At least take care to use application specific passwords instead of your main Google account password when you do something as insecure as this.



    # Gmail account passwords and usernames
    set my_gmail_user1 = "<account 1, without @gmail or anything>"
    set my_gmail_user2 = "<account 2, without @gmail or anything>"
    set my_gmail_pass1 = "<password, hopefully an app-specific one>"
    set my_gmail_pass2 = "<password, hopefully an app-specific one>"

    # Account hooks
    account-hook . "unset imap_user ; unset imap_pass"
    account-hook "imaps://$my_gmail_user1@imap.gmail.com" "
    set imap_user = $my_gmail_user1
    imap_pass = $my_gmail_pass1"
    account-hook "imaps://$my_gmail_user2@imap.gmail.com" "
    set imap_user = $my_gmail_user2
    imap_pass = $my_gmail_pass2"

    # Gmail folders
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user1@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user1@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user1@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user1@smtp.gmail.com
    smtp_pass = $my_gmail_pass1"
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    mailboxes = +INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam =[Gmail]/Trash
    set spoolfile = +INBOX
    folder-hook imaps://$my_gmail_user2@imap.gmail.com/ "
    set folder = imaps://$my_gmail_user2@imap.gmail.com/
    spoolfile = +INBOX
    postponed = +[Gmail]/Drafts
    record = +[Gmail]/'Sent Mail'
    from = 'First User Real Name <$my_gmail_user2@gmail.com> '
    realname = 'First User Real Name'
    smtp_url = smtps://$my_gmail_user2@smtp.gmail.com
    smtp_pass = $my_gmail_pass2"


    Now all there is left to it is to fire up mutt, then hit y and select the folder for an account you want.



    If you want more secure setup, your favorite search engine can tell you how to secure IMAP/POP passwords for Mutt with PGP. Realname/from is left as an exercise for the reader.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 8 '14 at 16:45









    Sami LaineSami Laine

    925511




    925511













    • I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

      – Chris W.
      Apr 23 '14 at 16:44











    • While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

      – Gen.Stack
      2 hours ago



















    • I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

      – Chris W.
      Apr 23 '14 at 16:44











    • While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

      – Gen.Stack
      2 hours ago

















    I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

    – Chris W.
    Apr 23 '14 at 16:44





    I'm interested in using different accounts based on recipient. Looks like you can do this with send-hooks, but how to set things back after the mail is sent?

    – Chris W.
    Apr 23 '14 at 16:44













    While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

    – Gen.Stack
    2 hours ago





    While this answer might illustrate how to setup multiple accounts with mutt the TO already accomplished this task. So this does not in any way answer the question: "Why does mutt offer to open a mailbox (by typing "c") belonging to the first account regardless of the fact that the second account is active."

    – Gen.Stack
    2 hours ago













    0














    I am using mutt in a similar way and also noticed that mutt does not offer to open right away a mailbox belonging to the currently active account (not being the first one) when just typing c.



    You may, however, type c then = and TAB thrice and you will be shown the mailboxes of the currently active account. Hitting TAB again will even allow you to switch between your different accounts' mailboxes.



    So far, AFAICT, within mutt there lies no solution (yet) to your question "Why does mutt - when typing c - offer to open a mailbox belonging to the first account, regardless of the fact that another/second account is active.".



    My best guess is, it's either a deliberate design choice or a bug no one cared to fix yet. Using [neo]mutt's sidebar might also alleviate the UX.






    share|improve this answer






























      0














      I am using mutt in a similar way and also noticed that mutt does not offer to open right away a mailbox belonging to the currently active account (not being the first one) when just typing c.



      You may, however, type c then = and TAB thrice and you will be shown the mailboxes of the currently active account. Hitting TAB again will even allow you to switch between your different accounts' mailboxes.



      So far, AFAICT, within mutt there lies no solution (yet) to your question "Why does mutt - when typing c - offer to open a mailbox belonging to the first account, regardless of the fact that another/second account is active.".



      My best guess is, it's either a deliberate design choice or a bug no one cared to fix yet. Using [neo]mutt's sidebar might also alleviate the UX.






      share|improve this answer




























        0












        0








        0







        I am using mutt in a similar way and also noticed that mutt does not offer to open right away a mailbox belonging to the currently active account (not being the first one) when just typing c.



        You may, however, type c then = and TAB thrice and you will be shown the mailboxes of the currently active account. Hitting TAB again will even allow you to switch between your different accounts' mailboxes.



        So far, AFAICT, within mutt there lies no solution (yet) to your question "Why does mutt - when typing c - offer to open a mailbox belonging to the first account, regardless of the fact that another/second account is active.".



        My best guess is, it's either a deliberate design choice or a bug no one cared to fix yet. Using [neo]mutt's sidebar might also alleviate the UX.






        share|improve this answer















        I am using mutt in a similar way and also noticed that mutt does not offer to open right away a mailbox belonging to the currently active account (not being the first one) when just typing c.



        You may, however, type c then = and TAB thrice and you will be shown the mailboxes of the currently active account. Hitting TAB again will even allow you to switch between your different accounts' mailboxes.



        So far, AFAICT, within mutt there lies no solution (yet) to your question "Why does mutt - when typing c - offer to open a mailbox belonging to the first account, regardless of the fact that another/second account is active.".



        My best guess is, it's either a deliberate design choice or a bug no one cared to fix yet. Using [neo]mutt's sidebar might also alleviate the UX.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 hours ago

























        answered 2 hours ago









        Gen.StackGen.Stack

        1195




        1195






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f123738%2fmutt-multiaccount-support%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)