Re: a folder-hook question
'folder-hook . XXX' certainly works! Thanks, folks ;) Clay -- Isaac Claymore /\ASCII Ribbon Campaign Dawning Inc.\ /Respect for open standards Beijing, China X No HTML/RTF in email http://www.dawning.com.cn / \No M$ Word docs in email
Re: a folder-hook question
* Isaac Claymore [EMAIL PROTECTED] [09-30-02 23:31]: It seems that folder-hook is executed whenever a folder is entered, but is there a 'leave-folder-hook'? I need to reset something back to normal upon leaving a folder, after setting it to folder-specific value in a folder-hook. I cant seem to find such a hook, did I missed anything? or is there some other trick to do that? From TFM: To specify a default command, use the pattern `.'': folder-hook . set sort=date-sent Default will match any folder for which you do not have a folder-hook defined. Effectively a 'leave-folder-hook-reset-to-normal-folder-hook'.' -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
Re: a folder-hook question
Hi Isaac, * Isaac Claymore [EMAIL PROTECTED] [27. Sep. 2002]: It seems that folder-hook is executed whenever a folder is entered, but is there a 'leave-folder-hook'? Notwendig, but there is hope: I need to reset something back to normal upon leaving a folder, after setting it to folder-specific value in a folder-hook. folder-hooks are evaluated in the order they appear in the muttrc. You can use more than only one folder-hook when changing folders. So you *first* declare a default hook which matches every folder and produces your normal behavior: #by default sort messages according their date of arrival: folder-hook . set sort=date-received and then you declare the specific behavior you want in case you enter this specific folder: # in folder with copys of the emails i wrote sort according date folder-hook . set pgp_verify_sig=yes # in folders which are in my mailing list directory sort as threads: folder-hook +~ml/ set sort=threads So every time you enter a new folder first of all the default behavior is established and the specific behaviro only in the specified case(s). Ciao, Gregor -- The future is here. It's just not widely distributed yet. -- William Gibson
a folder-hook question
Hi, mutters. It seems that folder-hook is executed whenever a folder is entered, but is there a 'leave-folder-hook'? I need to reset something back to normal upon leaving a folder, after setting it to folder-specific value in a folder-hook. I cant seem to find such a hook, did I missed anything? or is there some other trick to do that? Thanks. Clay -- Isaac Claymore /\ASCII Ribbon Campaign Dawning Inc.\ /Respect for open standards Beijing, China X No HTML/RTF in email http://www.dawning.com.cn / \No M$ Word docs in email
Re: Folder-hook question
* On Fri, Feb 15, 2002 at 05:40:21PM -0800, * Gary Johnson [EMAIL PROTECTED] wrote: This is what I use: folder-hook +Incoming/mutt-users 'macro index M :push mail^[EMAIL PROTECTED]^M^M mail to list' ^^ Can't you just leave this part out? Note that I have 'askcc' set, so one of those ^Ms is an answer to the Cc: prompt. Nicolas
Re: Folder-hook question
On Sat, Feb 16, 2002 at 10:18:10AM +0100, Nicolas Rachinsky wrote: * On Fri, Feb 15, 2002 at 05:40:21PM -0800, * Gary Johnson [EMAIL PROTECTED] wrote: This is what I use: folder-hook +Incoming/mutt-users 'macro index M :push mail^[EMAIL PROTECTED]^M^M mail to list' ^^ Can't you just leave this part out? Apparently so. This seems to work as well: :macro pager M mail[EMAIL PROTECTED]^M^M I had thought that an index macro just executed commands in the index menu and would not be able to enter keystrokes into prompts from the mail command. I would have expected at least those last two '^M's in the second macro to have been executed after the mail command was completed. So I guess I don't understand mutt's macro processing as well as I though I did. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: Folder-hook question
* On Fri, Feb 15, 2002 at 06:12:00PM -0200, * Carlos Laviola [EMAIL PROTECTED] wrote: Hi, I'm wanting to do something like this guy did (apparently): http://www.xs4all.nl/~hanb/dot-mutt/folderhooks Sorry I can't look at the website, because I have no webaccess at the moment. And have a rule that makes it so that when I press m while in a certain folder, the message already has the list (say, [EMAIL PROTECTED]) at the To: header for me. Since the method used by Han doesn't seem to work, I ask you now: do you know if what I'm trying to do is possible? folder-hook . bind index m mail folder-hook dsa macro index m \maildsa\ \Mail verschicken\ There is an tab after the dsa to show me an list of aliases beginning with dsa, but I think if you replace the tab with an \n it would be your wanted behaviour. Nicolas
Re: Folder-hook question
On Fri, 15 Feb 2002, Carlos Laviola wrote: Hi, I'm wanting to do something like this guy did (apparently): http://www.xs4all.nl/~hanb/dot-mutt/folderhooks And have a rule that makes it so that when I press m while in a certain folder, the message already has the list (say, [EMAIL PROTECTED]) at the To: header for me. Since the method used by Han doesn't seem to work, I ask you now: do you know if what I'm trying to do is possible? folder-hook mutt my_hdr To: [EMAIL PROTECTED] You do have to hit enter to get it to accept the To: field, but at least you don't have to type it. Don't know how to set it up so that it automagically enters it though. msg24532/pgp0.pgp Description: PGP signature
Re: Folder-hook question
On Fri, Feb 15, 2002 at 03:26:32PM -0600, Knute wrote: On Fri, 15 Feb 2002, Carlos Laviola wrote: Hi, I'm wanting to do something like this guy did (apparently): http://www.xs4all.nl/~hanb/dot-mutt/folderhooks And have a rule that makes it so that when I press m while in a certain folder, the message already has the list (say, [EMAIL PROTECTED]) at the To: header for me. Since the method used by Han doesn't seem to work, I ask you now: do you know if what I'm trying to do is possible? folder-hook mutt my_hdr To: [EMAIL PROTECTED] You do have to hit enter to get it to accept the To: field, but at least you don't have to type it. Don't know how to set it up so that it automagically enters it though. This is what I use: folder-hook +Incoming/mutt-users 'macro index M :push mail^[EMAIL PROTECTED]^M^M mail to list' Note that I have 'askcc' set, so one of those ^Ms is an answer to the Cc: prompt. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: Folder-hook question
On 18:12 15 Feb 2002, Carlos Laviola [EMAIL PROTECTED] wrote: | And have a rule that makes it so that when I press m while in a certain | folder, the message already has the list (say, [EMAIL PROTECTED]) at | the To: header for me. Since the method used by Han doesn't seem to | work, I ask you now: do you know if what I'm trying to do is possible? I'm curious. I just use g (group reply) and it puts the list address there anyway. If I'm making a fresh thread I either use g and trim the headers (fresh subject, remove References: and In-Reply-To: stuff) or outright just mail to mutt-users, pissibly looking it up with ^T (external query). Of course, this doesn't answer your folder-hook query, but I'm wondering why you have to use folder-hook? -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ For reading rec.moto, I use one of those carbon-fiber Logitech mice w/a little 'No Fear' sticker on it. - Mike Hardcore DoD#5010 [EMAIL PROTECTED] Apologies to Primus