On Thu, Aug 31, 2017 at 09:16:46AM +0200, Kai Weber wrote: > I have a quite common multi account setup with multiple folders for my > account. I use folder-hooks to switch various settings based on the folder I > change into. > > I have some macros to go directly to one folder: > > macro index ,i "<change-folder>=personal/INBOX<return>" > > If I use this macro to go to a folder, when composing a mail adding > attachments does not work as expected: > > 1. Use the macro to go into a folder > 2. Start composing a mail > 3. try to add attachments by pressing "a" > 4. If it says Attach file ('?' for list): press "?" > 5. Error message is: No such file or directory =personal > > It seems, <change-folder> does also change to the directory =personal while > switching folders by browsing through the mailbox list does not change the > directory and stays in my $HOME directory.
Browsing folders using '?' does change some state: it records the most recent directory so the next browsing starts in the same place. Just entering the folder name and hitting enter doesn't do that. I'll have to dig in a bit to see the problem, but some repeatable instructions would help. Does this happen if you start mutt, hit ",i", and then compose a message. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature