Macro to apply on current mailbox
Oleg A. Mamontov
oleg at mamontov.net
Mon Feb 15 22:02:38 UTC 2021
On Mon, Feb 15, 2021 at 10:40:18PM +0100, Angel M Alganza wrote:
>On Tue, Feb 16, 2021 at 12:26:54AM +0300, Oleg A. Mamontov wrote:
>
>>>Then what should I do to mbsync the current maildir?
>>>Hitting ESC-o doesn't seem to do it.
>>
>>Yes, it is.
>>For debug I suggest to simplify macro as:
>>---
>>macro index,pager <esc>o "<shell-escape>mbsync full:$record"
>
>Nice. It shows that:
>
> Shell command: mbsync full:
>
>So, I must be doing something wrong.
Yes, it seems so :)
I guess your folder names differ from mine. You can debug step by step,
start from keeping only the first assignment:
---
set record = ^
---
Launch mutt and check the result pressing :echo $record<Enter>
Then, you can adjust the sed pattern as needed and check the result again.
>Ángel
--
Cheers,
Oleg A. Mamontov
mailto: oleg at mamontov.net
skype: lonerr11
cell: +7 (903) 798-1352
More information about the Mutt-users
mailing list