On Fri, Feb 05, 2021 at 10:11:45AM -0800, Kevin J. McCarthy wrote:
> On Thu, Feb 04, 2021 at 01:48:09PM +0100, Michael Klemm wrote:
> > .muttrc:
> > folder-hook 'server1 'source ~/.muttrc.server1'
> > folder-hook 'server2' 'source ~/.muttrc.server2'
> > 
> > macro index <f1> '<change-folder>imaps://server1<enter>'
> > macro index <f2> '<change-folder>imaps://server2<enter>'
> 
> It looks like the above two macros don't include the string 'INBOX'. When
> you start Mutt, it will open $spoolfile, so that may be why it's working
> only on startup?

That was one part of the problem!  Mailbox access worked with out having
INBOX in there.  Making the folder path explicit fixed the issue of
record being set to the wrong place.

> > folder-hook INBOX 'set record="+Sent Items"'
> 
> Note that folder-hooks allow multiple commands with the same regexp.  So the
> folder-hooks with the same regexp in .muttrc.server1 and .muttrc.server2
> will NOT overwrite each other.  You may want to make their regexps more
> specific to each server and just define them in the outer muttrc.

Right.  With the change above, the folder name actually was not reset,
as now the regex was matching multiple times.  So, I made the regex
explicit and it now contains the URL of the mailbox.


Thanks for your help!  Very much appreciated!


Kind regards,
        -michael


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to