On Thu, Jan 27, 2022 at 10:46:53PM +0300, Oleg A. Mamontov wrote:
> I successfully use the below approach for syncing current folder with
> the same on IMAP:
> ---
> folder-hook . "source ~/.mutt/on-folder-change.muttrc"
> ---
>
> where on-folder-change.muttrc is:
> ---
> set record = ^
> set
I successfully use the below approach for syncing current folder with
the same on IMAP:
---
folder-hook . "source ~/.mutt/on-folder-change.muttrc"
---
where on-folder-change.muttrc is:
---
set record = ^
set my_folder = `echo $record | sed 's#.*/##'`
macro index,pager o ":unset wait_keyclear;
On Thu, Jan 27, 2022 at 06:07:39PM +, Sam Kuper wrote:
> On Thu, Jan 27, 2022 at 05:31:01PM +, Chris Green wrote:
> > Is there a way of accessing the current mailbox name (i.e. for maildir
> > the directory name) in mutt?
>
> IIRC, the caret symbol (^) can be used as a shortcut for the
On Thu, Jan 27, 2022 at 05:31:01PM +, Chris Green wrote:
> Is there a way of accessing the current mailbox name (i.e. for maildir
> the directory name) in mutt?
IIRC, the caret symbol (^) can be used as a shortcut for the current
mailbox.
Possibly relevant sections of the manual:
Is there a way of accessing the current mailbox name (i.e. for maildir
the directory name) in mutt?
This is so I can put it in things like a 'set editor='
command to pass to the 'editor'.
--
Chris Green