Alexander Dahl
2018-08-22 13:36:54 UTC
Hei hei,
I have a limit pattern which works interactively, but which I can not
get to work as a folder hook. This is what I use when hitting the l
key in the index, and which works fine:
!=s "git commit"
If I want to set that as a folder hook, from the manual I understood,
that I must use push and <limit>, but I don't get the escaping right.
mutt always says:
<limit>: 'unknown command'
So I guess I'm doing the quoting wrong. This is what I have in my
~/.mutt/muttrc and in the separate folder-hooks file:
source ~/.mutt/folder-hooks
folder-hook . push "<limit>.<enter>"
folder-hook =Lists/buildroot 'push "<limit>!=s \"git commit\"<enter>"'
The first hook is to reset the limit on all folders, the second to set
the limit pattern on the folder for the buildroot mailing list.
Could someone please enlighten me?
Greets
Alex
I have a limit pattern which works interactively, but which I can not
get to work as a folder hook. This is what I use when hitting the l
key in the index, and which works fine:
!=s "git commit"
If I want to set that as a folder hook, from the manual I understood,
that I must use push and <limit>, but I don't get the escaping right.
mutt always says:
<limit>: 'unknown command'
So I guess I'm doing the quoting wrong. This is what I have in my
~/.mutt/muttrc and in the separate folder-hooks file:
source ~/.mutt/folder-hooks
folder-hook . push "<limit>.<enter>"
folder-hook =Lists/buildroot 'push "<limit>!=s \"git commit\"<enter>"'
The first hook is to reset the limit on all folders, the second to set
the limit pattern on the folder for the buildroot mailing list.
Could someone please enlighten me?
Greets
Alex
--
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN | speech censured, the first thought forbidden, the
X AGAINST | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie)
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN | speech censured, the first thought forbidden, the
X AGAINST | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie)