 | | From: | Andre Berger | | Subject: | folder-hook macro question | | Date: | Sun, 2 Jan 2005 15:59:32 +0100 |
|
|
 | Hi there, happy New!
I'm on mutt 1.5.6i-vvv-nntp and would like to change the behavior of the trigger ("F" here), when in nntp mode, to with no questions asked. I have tried many variations of
folder-hook nntp 'macro index F "push C"' folder-hook nntp 'macro pager F "push C"'
but none of them worked. I'm stuck.
-Andre
|
|
 | | From: | Alain Bench | | Subject: | Re: folder-hook macro question | | Date: | Mon, 3 Jan 2005 14:11:49 +0100 (CET) |
|
|
 | Hello André and Year,
On Sunday, January 2, 2005 at 3:59:32 PM +0100, André Berger wrote:
> to with no questions asked >| folder-hook nntp 'macro index F "push C"' > but none of them worked.
Long: Mutt has commands (as "set", "macro" or "lists" in muttrc), and functions (as , or , generally bound to keypresses).
Bridges: "push" is a command to enter functions (and keypresses). And mirror is a function to enter commands.
In macros you enter functions (or keys) directly, no need to push them. And better use function names than keys (clarity, solidity).
In short:
| folder-hook nntp 'macro index F ""'
Note the key is here to accept default folder name. Depending on your config you might also need to reply to or suppress the "Create/Append messages to folder? ([yes]/no):" prompts. I would have to use "y" here.
Bye! Alain. -- Microsoft Outlook Express users concerned about readability: For much better viewing quotes in your messages, check the little freeware program OE-QuoteFix by Dominik Jain on . It'll change your life. :-) Now exists also for Outlook.
|
|
 | | From: | Andre Berger | | Subject: | Re: folder-hook macro question | | Date: | Mon, 3 Jan 2005 18:55:28 +0100 |
|
|
 | * Alain Bench , 2005-01-03 14:11 +0100: > Hello André and Year, > > On Sunday, January 2, 2005 at 3:59:32 PM +0100, André Berger wrote: > > > to with no questions asked > >| folder-hook nntp 'macro index F "push C"' [...] > In short: > > | folder-hook nntp 'macro index F ""' > > Note the key is here to accept default folder name. > Depending on your config you might also need to reply to or suppress the > "Create/Append messages to folder? ([yes]/no):" prompts. I would have to > use "y" here.
Thanks Alan and Sven, as so often, things one tried many times and didn't work for no good reason all of a sudden somethimes do. So,
folder-hook !nntp 'bind index F flag-message' folder-hook !nntp 'bind pager F flag-message' folder-hook nntp 'macro index F "y"' folder-hook nntp 'macro pager F "y"'
works here (and now). Actually, my first attempts looked much like this, "push" was already a work-around.
-Andre
|
|
 | | From: | Sven Guckes | | Subject: | Re: folder-hook macro question | | Date: | 3 Jan 2005 01:46:26 GMT |
|
|
 | * Andre Berger [2005-01-02]: > I'm on mutt 1.5.6i-vvv-nntp and would like to change the > behavior of the trigger ("F" here), when > in nntp mode, to with no questions asked. > I have tried many variations of > folder-hook nntp 'macro index F "push C"' > folder-hook nntp 'macro pager F "push C"' > but none of them worked. I'm stuck.
i can see but one variation here. and i suppose that you might think "nntp" is the mode - but it isn't. "nntp" would be part of a folder name.
try matching the names of your nntp folders and mutt will trigger the macro for you.
Sven
|
|
 | | From: | Andre Berger | | Subject: | Re: folder-hook macro question | | Date: | Mon, 3 Jan 2005 03:24:58 +0100 |
|
|
 | * Sven Guckes , 2005-01-03 02:46 +0100: > * Andre Berger [2005-01-02]: > > I'm on mutt 1.5.6i-vvv-nntp and would like to change the > > behavior of the trigger ("F" here), when > > in nntp mode, to with no questions asked. > > I have tried many variations of > > folder-hook nntp 'macro index F "push C"' > > folder-hook nntp 'macro pager F "push C"' > > but none of them worked. I'm stuck. > > i can see but one variation here. > and i suppose that you might think > "nntp" is the mode - but it isn't. > "nntp" would be part of a folder name. > > try matching the names of your nntp folders > and mutt will trigger the macro for you.
Thanks Sven, nntp is indeed part of the folder name and works fine in constructs like
folder-hook !nntp 'bind index L list-reply' folder-hook !nntp 'bind pager L list-reply' folder-hook nntp 'bind index L followup-message' folder-hook nntp 'bind pager L followup-message'
just not with the code above. Would you agree it "should work"? I would look for possible conflicts then rather than for alternatives.
-Andre
|
|
 | | From: | Sven Guckes | | Subject: | Re: folder-hook macro question | | Date: | 3 Jan 2005 11:59:10 GMT |
|
|
 | * Andre Berger [2005-01-03]: > * Sven Guckes , 2005-01-03 02:46 +0100: >> * Andre Berger [2005-01-02]: >> > I'm on mutt 1.5.6i-vvv-nntp and would like to change the >> > behavior of the trigger ("F" here), when >> > in nntp mode, to with no questions asked. >> > folder-hook nntp 'macro index F "push C"' >> > folder-hook nntp 'macro pager F "push C"' >> >> i suppose that you might think >> "nntp" is the mode - but it isn't. >> "nntp" would be part of a folder name. > > nntp is indeed part of the folder name > and works fine in constructs like > > folder-hook !nntp 'bind index L list-reply' > folder-hook !nntp 'bind pager L list-reply' > folder-hook nntp 'bind index L followup-message' > folder-hook nntp 'bind pager L followup-message' > > just not with the code above. > Would you agree it "should work"?
hmm.. why use "push" at all? how about this:
folder-hook nntp 'macro index F ""' folder-hook nntp 'macro pager F ""'
Sven
|
|