limit in folder hook?
Alexander Dahl
post at lespocky.de
Wed Aug 22 13:36:54 UTC 2018
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
--
/"\ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20180822/e9a31fa3/attachment.asc>
More information about the Mutt-users
mailing list