Deleting github commit messages: folder-hook/regex problem

2022-09-27 Thread Francesco Ariis
Hello mutt users, I want to automatically delete some github commit messages when I enter a folder. So I: 1. tried a to `limit` messages with this pattern: Limit: ~b "^@[a-zA-Z0-9_]+ pushed [0-9]+ commits?.$" !~F The pattern works, displaying a bunch of messages 2. wrote this folder-

Re: Deleting github commit messages: folder-hook/regex problem

2022-09-27 Thread Kevin J. McCarthy
On Tue, Sep 27, 2022 at 04:13:21PM +0200, Francesco Ariis wrote: 2. wrote this folder-hook in my muttrc: folder-hook fa-ml 'push ~b"^@[a-zA-Z0-9_]+ pushed [0-9]+ commits?.$"!~F' The third argument above, "push", will be evaluated twice by the muttrc parser. The first time, when read

Re: Deleting github commit messages: folder-hook/regex problem

2022-09-28 Thread Francesco Ariis
Kevin, Il 28 settembre 2022 alle 10:05 Kevin J. McCarthy ha scritto: > Or alternatively, add an escaped single quote around the second argument: > folder-hook fa-ml 'push '\''~b"^@[a-zA-Z0-9_]+ pushed > [0-9]+ commits?.$"!~F'\' This worked, thanks. “Parse time”/“run time” distinction is still