#3932: from address not changing with sidebar inbox ---------------------------+----------------------------------- Reporter: ArchChris | Owner: mutt-dev Type: defect | Status: new Priority: major | Milestone: Component: header cache | Version: 1.8.2 Resolution: | Keywords: from address, sidebar ---------------------------+-----------------------------------
Comment (by ArchChris): Replying to [comment:3 kevin8t8]: > There isn't a concept of "inbox" in mutt, so I'm still not clear exactly what you are saying. > > Your example macro is manually sourcing "source path/to/rc" before "<change-folder>!<enter>". How are you expecting the sidebar to do this? > > Are you using folder-hooks to source different configuration files? If this is the case, would you mind providing a subset of your muttrc with the folder hooks and perhaps one of the "inbox" configuration files? > > ok, so mutt isn't a concept of "inbox", but it is used for working with inboxes. or are you using it as a text editor? tell me. i don't know. also, it can be used to manage more than one inbox. are we discussing definition details now or solving problems? also, i'm pretty sure i'm quite clear about what the problem is. but let me throw in some details. the mutt website says, in 1.8.1 you removed some issues in the sidebar. are you responsible for the sidebar or not. i'm not a developer. i am a user. i don't know how the sidebar "does this". i made the according settings. now i use the up and down arrows to select a folder/inbox in the sidebar and i use the right arrow key to open the selected folder/inbox. that's it. the catch is, no matter which inbox i open, if i send an email, which is intended to be sent from the email address of the inbox i'm currently working with, the from address is actually taken from whatever inbox i had open BEFORE i switched to the current one. so, if i am looking at the message list in inbox "one", then select inbox "two" in the sidebar with the up and down arrow keys, then hit the right arrow key to open "two" ... if i want to sent an email now, this email is sent >>from<< "one", not from "two", despite me currently starting the sending process at "two", not "one". no, you might still be confused. so, let me use example email addresses. i'm looking at the list of emails i received for o...@email.com. going up and down with j and k, opening the messages with <enter>. leaving them with i. i'm done with messages for o...@email.com. so now i use the up and down arrow keys to select the folder for t...@email.com in the sidebar. to open the message list i hit the right arrow key. now i'm looking at the messages t...@email.com has received. again, i can browse through the messages with j and k, open them with <enter> and leave them with the i key. if i hit m now, to send a message, i can enter a to email, a subject, the text, and right before i send the message, i can see an overview which says, the from address is now o...@email.com. and that is the from address the email is sent from. WHY? i'm in t...@email.com at this point. i want to send the message from t...@email.com. the according config file says, the from address is t...@email.com. and if i switch to the NEXT inbox, whatever it is or actually, if i switch to the same inbox again, it changes to t...@email.com. why doesn't the from email change as soon as i open the t...@email.com folder and not at second try or switching away from t...@email.com? by the way, this is a rethorical question. i don't really need an answer why. i need a solution, so i can send the emails with the from address of the inbox i'm starting the sending process from. i hope that's clear now. am i using folder hooks in the configuration files? yes. they look like this:[[BR]] folder-hook 'inbox-name' 'source path/to/rc' the rc file for each inbox looks like this: 1 set realname="something"[[BR]] 2 set from="from@email.address"[[BR]] 3 set folder="inbox/folder"[[BR]] 4 set mbox_type=maildir[[BR]] 5 set editor=nano[[BR]] 6 set mbox=+mbox[[BR]] 7 mailboxes +inbox[[BR]] 8 set spoolfile="+inbox"[[BR]] 9 set record="+sent"[[BR]] 10 set postponed="+drafts"[[BR]] 11[[BR]] 12 set my_pass="mailpassword"[[BR]] 13 set my_user="s...@as.from"[[BR]] 14 set use_from = yes[[BR]] 15 set smtp_url="smtps://$my_user:$my_p...@provider.server.com"[[BR]] 16 set ssl_force_tls = yes of course the line numbers are not saved. they are just shown in my editor and copied in the cli. but they are not actually in the config file. to prevent further misunderstandings: this has nothing to do with misconfiguration, since not only has this been working before, but using the key bindings everything actually works. again: the only problem is, if i switch from one inbox to the other using the sidebar, in case i want to send a message, the from address is one step behind, resulting in all emails getting sent with the wrong from address. -- Ticket URL: <https://dev.mutt.org/trac/ticket/3932#comment:4> Mutt <http://www.mutt.org/> The Mutt mail user agent