regex in hook question

2010-12-04 Thread Chip Camden
Hi, I'd like to create a message_hook based on from address that captures the from address for use in the hook. Is that doable? I'd imagine something like this: message-hook ~f(.*) 'set editor=myeditor -f \1' In this contrived example, I'd like to pass the value of the From: field as an

Re: regex in hook question

2010-12-04 Thread Johannes Weißl
Hello Chip, On Sat, Dec 04, 2010 at 05:08:38PM -0800, Chip Camden wrote: I'd like to create a message_hook based on from address that captures the from address for use in the hook. Is that doable? I'd imagine something like this: message-hook ~f(.*) 'set editor=myeditor -f \1' +1 I also

Re: a folder-hook question

2002-10-02 Thread Isaac Claymore
'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

Re: a folder-hook question

2002-10-01 Thread Patrick
* 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

Re: a folder-hook question

2002-10-01 Thread Gregor Zattler
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

a folder-hook question

2002-09-30 Thread Isaac Claymore
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

Re: Hook question - making a point

2002-03-18 Thread Jerome De Greef
* Sven Guckes ([EMAIL PROTECTED]) wrote: * Jerome De Greef [EMAIL PROTECTED] [2002-03-16 14:11]: BTW, doesn't ..* do the same as .+ ? it depends. really - it all depends on the language you currently have available. I was talking about Mutt ;) So was I. more specifically, I was

Re: Hook question - making a point

2002-03-18 Thread Jerome De Greef
Hi, * Sven Guckes ([EMAIL PROTECTED]) wrote: Hi! * Jerome De Greef [EMAIL PROTECTED] [2002-03-18 08:18]: send-hook ! . 'my_hdr From: JDG [EMAIL PROTECTED]' try again. does it work now? Nope... send-hook ~t . 'my_hdr From: JDG [EMAIL PROTECTED]' send-hook ! ~t . 'my_hdr

Re: Hook question

2002-03-16 Thread Jerome De Greef
* David T-G ([EMAIL PROTECTED]) wrote: Jerome -- ...and then Jerome De Greef said... % % I think I have the solution: Yay! % % send-hook '~t .*' 'my_hdr From: Jerome De Greef [EMAIL PROTECTED]' % send-hook !'~t .*' 'my_hdr From: Jerome De Greef[EMAIL PROTECTED]' Does this

Re: Hook question - making a point

2002-03-16 Thread Sven Guckes
* Jerome De Greef [EMAIL PROTECTED] [2002-03-16 09:25]: % send-hook '~t .*' 'my_hdr From: JDG [EMAIL PROTECTED]' % send-hook !'~t .*' 'my_hdr From: JDG [EMAIL PROTECTED]' Does this work, or do you think it should? I'd expect that you'd need ..* in your patterns instead of just .* 'cuz

Re: Hook question - making a point

2002-03-16 Thread Jerome De Greef
* Sven Guckes ([EMAIL PROTECTED]) wrote: * Jerome De Greef [EMAIL PROTECTED] [2002-03-16 09:25]: % send-hook '~t .*' 'my_hdr From: JDG [EMAIL PROTECTED]' % send-hook !'~t .*' 'my_hdr From: JDG [EMAIL PROTECTED]' Does this work, or do you think it should? I'd expect that you'd need

Re: Hook question - making a point

2002-03-16 Thread Sven Guckes
* Jerome De Greef [EMAIL PROTECTED] [2002-03-16 14:11]: BTW, doesn't ..* do the same as .+ ? it depends. really - it all depends on the language you currently have available. I was talking about Mutt ;) So was I. more specifically, I was talking about the regular expression library

Re: Hook question

2002-03-16 Thread Andre Berger
* Jerome De Greef [EMAIL PROTECTED], 2002-03-15 08:20 -0500: send-hook '~t .*' 'my_hdr From: Jerome De Greef [EMAIL PROTECTED]' send-hook !'~t .*' 'my_hdr From: Jerome De Greef[EMAIL PROTECTED]' The first hook is used whenever I hit 'r' and there is a 'To:' line followed by any address.

Re: Hook question - describe your problem!

2002-03-16 Thread Sven Guckes
* Andre Berger [EMAIL PROTECTED] [2002-03-16 18:34]: I would like to set my Bcc headers on that basis, but it seems to work randomly only! send-hook '~t .*' 'my_hdr Bcc: mymail' send-hook !'~t .*' 'unmy_hdr Bcc' I would be very happy if anyone could tell me what to do in order to

Re: Hook question - describe your problem!

2002-03-16 Thread Andre Berger
* Sven Guckes [EMAIL PROTECTED], 2002-03-16 20:26 -0500: * Andre Berger [EMAIL PROTECTED] [2002-03-16 18:34]: I would like to set my Bcc headers on that basis, but it seems to work randomly only! send-hook '~t .*' 'my_hdr Bcc: mymail' send-hook !'~t .*' 'unmy_hdr Bcc' I would be

Re: Hook question

2002-03-15 Thread Jerome De Greef
I think I have the solution: send-hook '~t .*' 'my_hdr From: Jerome De Greef [EMAIL PROTECTED]' send-hook !'~t .*' 'my_hdr From: Jerome De Greef[EMAIL PROTECTED]' The first hook is used whenever I hit 'r' and there is a 'To:' line followed by any address. The second hook is used when I hit 'F'

Re: Hook question

2002-03-15 Thread David T-G
Jerome -- ...and then Jerome De Greef said... % % I think I have the solution: Yay! % % send-hook '~t .*' 'my_hdr From: Jerome De Greef [EMAIL PROTECTED]' % send-hook !'~t .*' 'my_hdr From: Jerome De Greef[EMAIL PROTECTED]' Does this work, or do you think it should? I'd expect that you'd

Another auto hook question

2002-03-15 Thread Shawn McMahon
Ok, I've got a send-hook like this: send-hook ([EMAIL PROTECTED]|[EMAIL PROTECTED]) set pgp_create_traditional However, it still makes the MIME-type application:pgp. Is there a way to make it lie and call them text? Crackmonkey bounces funky MIME-types. msg25576/pgp0.pgp Description:

Re: Another auto hook question

2002-03-15 Thread Justin R. Miller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Said Shawn McMahon on Fri, Mar 15, 2002 at 12:38:02PM -0500: Ok, I've got a send-hook like this: send-hook ([EMAIL PROTECTED]|[EMAIL PROTECTED]) set pgp_create_traditional However, it still makes the MIME-type application:pgp. Is there

Re: Another auto hook question

2002-03-15 Thread Shawn McMahon
This one time, at band camp, Justin R. Miller wrote: You need to either use a macro to pipe to gpg, or you need to try the Outlook compatibility patch. I believe that the patch was going to be rolled into the main distribution? Maybe I'm misunderstanding things, but it seems to me that

Re: Another auto hook question

2002-03-15 Thread David T-G
Shawn -- ...and then Shawn McMahon said... % % This one time, at band camp, Justin R. Miller wrote: % % You need to either use a macro to pipe to gpg, or you need to try the % Outlook compatibility patch. I believe that the patch was going to be ... % % What am I missing here? Please

Hook question

2002-03-14 Thread Jerome De Greef
Hi, I use the nntp patch from vvv. I have folder hooks to change my email for the newsgroups to avoid spam. When i press F to write a follow-up, my address is changed accordingly. Now my question is: is there a way to have my 'normal address' used when I hit 'r' to personnaly reply to a

Re: Hook question

2002-03-14 Thread Andre Berger
* Jerome De Greef [EMAIL PROTECTED], 2002-03-14 09:13 -0500: Hi, I use the nntp patch from vvv. I have folder hooks to change my email for the newsgroups to avoid spam. When i press F to write a follow-up, my address is changed accordingly. Now my question is: is there a way to have my

Re: Hook question

2002-03-14 Thread Andre Berger
* Jerome De Greef [EMAIL PROTECTED], 2002-03-14 09:13 -0500: Hi, I use the nntp patch from vvv. I have folder hooks to change my email for the newsgroups to avoid spam. When i press F to write a follow-up, my address is changed accordingly. Now my question is: is there a way to have my

Re: Hook question

2002-03-14 Thread David T-G
Andre, et al -- ...and then Andre Berger said... % % folder-hook nntp send-hook '~t ^.*$' 'my_hdr From: news' % folder-hook !nntp send-hook '~t ^.*$' 'my_hdr From: mail' Since one doesn't change folders without leaving the folder, you might say, couldn't the send-hooks be left out and you just

Re: Hook question

2002-03-14 Thread Jerome De Greef
* Andre Berger ([EMAIL PROTECTED]) wrote: * Jerome De Greef [EMAIL PROTECTED], 2002-03-14 09:13 -0500: Hi, I use the nntp patch from vvv. I have folder hooks to change my email for the newsgroups to avoid spam. When i press F to write a follow-up, my address is changed accordingly.

Re: Folder-hook question

2002-02-16 Thread Nicolas Rachinsky
* 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?

Re: Folder-hook question

2002-02-16 Thread Gary Johnson
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'

Folder-hook question

2002-02-15 Thread Carlos Laviola
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

Re: Folder-hook question

2002-02-15 Thread Nicolas Rachinsky
* 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

Re: Folder-hook question

2002-02-15 Thread Knute
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

Re: Folder-hook question

2002-02-15 Thread Gary Johnson
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

Re: Folder-hook question

2002-02-15 Thread Cameron Simpson
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

Re: save-hook question

2001-01-13 Thread Okan Demirmen - mutt
yes, i have considered prcomail and other such filtering, but i would like the mail to stay in my inbox, and when i have read it, i like to hit "s" "enter"...lazy and quick... On Fri, Jan 12, 2001 at 11:00:23PM -0500, John P. Verel wrote: On 01/12/01, 10:27:19PM -0500, Okan Demirmen - mutt

save-hook question

2001-01-12 Thread Okan Demirmen - mutt
newbie-type: some patience required, unless stupidity is too obvious... can a save-hook have a regex in it?...if so, i might be totally clueless... i am trying to save mail to folders, whose names are based on a mailing list...wihtout creating a save-hook for every single mailing list i

mutt and hook question

2000-10-24 Thread Marco Giardini
I'd like that all the outgoing mail to a certain e.mail address are saved automatically in a special folder instead of in the outbox one. Is it possible? If yes, how? Thanks for replying .oesse. -- -- Marco Giardini

Re: mutt and hook question

2000-10-24 Thread Jack McKinney
Big Brother tells me that Marco Giardini wrote: I'd like that all the outgoing mail to a certain e.mail address are saved automatically in a special folder instead of in the outbox one. Is it possible? If yes, how? Thanks for replying fcc-hook [EMAIL PROTECTED] +special-folder -- "Restore

Re: Send hook question

2000-10-10 Thread Hal Burgiss
On Tue, Oct 10, 2000 at 12:51:31AM -0400, David T-G wrote: Hal -- ...and then Hal Burgiss said... % % Yea, it works fine with autoedit off, but I like autoedit too :( What does autoedit get you that you can't have otherwise? Do you have edit_hdrs set, maybe, and like to play with your

Re: Send hook question

2000-10-10 Thread Ulf Erikson
mostly I think the autoedit is a bit easier (ie I am lazy :), especially when replying. The 'To' and 'Subject' normally have already been decided in this case. I rarely change To or Subject on a reply. Now, for a new mail, it makes perfect sense. Perhaps you are

Re: Send hook question

2000-10-10 Thread Hal Burgiss
On Tue, Oct 10, 2000 at 03:52:49PM +0200, Ulf Erikson wrote: mostly I think the autoedit is a bit easier (ie I am lazy :), especially when replying. The 'To' and 'Subject' normally have already been decided in this case. I rarely change To or Subject on a reply.

Re: Send hook question

2000-10-09 Thread David T-G
Hal -- ...and then Hal Burgiss said... % % Yea, it works fine with autoedit off, but I like autoedit too :( What does autoedit get you that you can't have otherwise? Do you have edit_hdrs set, maybe, and like to play with your headers there? I find that edit_hdrs lets me muck around to my

Re: Send hook question

2000-10-06 Thread Michael Tatge
Hal Burgiss muttered: do you have 'autoedit' set? He does. And that's why the send-hooks do not work. So, Hal the solution is obvious - give up that autoedit stuff. Yea, it works fine with autoedit off, but I like autoedit too :( You confuse me with your from header for a minute ;)

Re: Send hook question

2000-10-06 Thread Hal Burgiss
On Fri, Oct 06, 2000 at 07:27:38PM +0200, Michael Tatge wrote: Hal Burgiss muttered: I don't have a clue how combine autoedit and send-hooks. Harold says it is possible so maybe you should start a new muttrc from scratch and you'll see which line confuses mutt. Sounds challenging. Would

Re: Send hook question

2000-10-05 Thread Michael Tatge
Hal Burgiss muttered: Should the below not work? I could swear it used to ;) Recently even. Despite much playing with this, I cannot get the header to handle the exceptions. unset use_from Don't know why you do that, but according to the docs it shouldn't hurt. It might be worth testing

Re: Send hook question

2000-10-05 Thread Hal Burgiss
On Thu, Oct 05, 2000 at 01:30:40AM -0600, Harold Oga wrote: On Wed, Oct 04, 2000 at 11:29:30PM -0400, Hal Burgiss wrote: On Wed, Oct 04, 2000 at 06:25:47PM -0600, Harold Oga wrote: send-hook . 'my_hdr From: Hal Burgiss [EMAIL PROTECTED]' send-hook '~C redhat-list' 'my_hdr From: Hal

Re: Send hook question

2000-10-05 Thread Hal Burgiss
On Thu, Oct 05, 2000 at 11:45:33AM +0200, Michael Tatge wrote: Hal Burgiss muttered: Should the below not work? I could swear it used to ;) Recently even. Despite much playing with this, I cannot get the header to handle the exceptions. unset use_from Don't know why you do that,

Re: Send hook question

2000-10-05 Thread Hal Burgiss
On Thu, Oct 05, 2000 at 11:45:33AM +0200, Michael Tatge wrote: Hal Burgiss muttered: unset use_from Don't know why you do that, but according to the docs it shouldn't hurt. It might be worth testing without this line, though. Still no go. -- Hal B [EMAIL PROTECTED] [EMAIL

Re: Send hook question

2000-10-05 Thread Peter Jaques
do you have 'autoedit' set? if you do, here's what happens: when you hit 'm' to start a message, there is no recipient specified, so 'from' gets set to the default value. you have to let mutt prompt for the recipient before you edit, so that it can set the 'from' header. peter On 5 Oct 00,

Re: Send hook question

2000-10-05 Thread Mikko Hänninen
Dan Boger [EMAIL PROTECTED] wrote on Thu, 05 Oct 2000: FWIW, I've been trying to do something very similar... mutt 1.2.5i send-hook . 'set [EMAIL PROTECTED]' send-hook .*lugnet\.com 'set [EMAIL PROTECTED]' from what I can tell, the send hook DOES work, only AFTER I actually send the

Re: Send hook question

2000-10-05 Thread Hal Burgiss
Peter Jaques muttered: Please post your whole muttrc. http://feenix.eyep.net/xstuff/muttrc do you have 'autoedit' set? He does. And that's why the send-hooks do not work. So, Hal the solution is obvious - give up that autoedit stuff. HTH, Michael -- Our informal mission is to improve

Re: Send hook question

2000-10-05 Thread Harold Oga
On Thu, Oct 05, 2000 at 08:08:48PM +0200, Hal Burgiss wrote: Peter Jaques muttered: Please post your whole muttrc. http://feenix.eyep.net/xstuff/muttrc do you have 'autoedit' set? He does. And that's why the send-hooks do not work. So, Hal the solution is obvious - give up that autoedit

Re: Send hook question

2000-10-05 Thread Hal Burgiss
On Thu, Oct 05, 2000 at 08:08:48PM +0200, Hal Burgiss wrote: Peter Jaques muttered: Please post your whole muttrc. http://feenix.eyep.net/xstuff/muttrc do you have 'autoedit' set? He does. And that's why the send-hooks do not work. So, Hal the solution is obvious - give up that

Send hook question

2000-10-04 Thread Hal Burgiss
Should the below not work? I could swear it used to ;) Recently even. Despite much playing with this, I cannot get the header to handle the exceptions. unset use_from send-hook . 'my_hdr From: Hal Burgiss [EMAIL PROTECTED]' send-hook redhat-list 'my_hdr From: Hal Burgiss [EMAIL PROTECTED]'

Re: Send hook question

2000-10-04 Thread Harold Oga
On Wed, Oct 04, 2000 at 07:58:13PM -0400, Hal Burgiss wrote: Should the below not work? I could swear it used to ;) Recently even. Despite much playing with this, I cannot get the header to handle the exceptions. unset use_from send-hook . 'my_hdr From: Hal Burgiss [EMAIL PROTECTED]' send-hook

save-hook question

2000-06-08 Thread Adahma
Would it be possible to setup a save-hook that would open the browser in a specific subdirectory so that I could easily the right mailbox? TIA, Adahma

Re: save-hook question

2000-06-08 Thread Mikko Hänninen
Adahma [EMAIL PROTECTED] wrote on Thu, 08 Jun 2000: Would it be possible to setup a save-hook that would open the browser in a specific subdirectory so that I could easily the right mailbox? I just tried this: save-hook "~f adahma" +foo ... and created the directory ~/Mail/foo When I

Re: save-hook question

2000-06-08 Thread David T-G
Adahma -- ...and then Adahma said... % Would it be possible to setup a save-hook that would open the % browser in a specific subdirectory so that I could easily the right % mailbox? It sounds like what you want is a macro, but perhaps you might want a save-hook that changes the directory based

Re: Save-hook question

2000-02-03 Thread Michael S. Tsirkin
Hello! You seem to be using the compressed folders patch? I'll look into it. Quoting r. Stewart V. Wright ([EMAIL PROTECTED]) "Save-hook question": Hi all, ... As a second question - how can I convince mutt that there is new mail in compressed folders? I have procmail deliver

Re: Save-hook question

2000-02-03 Thread David DeSimone
Stewart V. Wright [EMAIL PROTECTED] wrote: fcc-save-hook ~A +People/%O.gz However, recently one of my correspondents has had their email name changed to all capitals, so now rather than being saved in People/personx.gz mutt wants to create People/PERSONX.gz Someone

Save-hook question

2000-02-02 Thread Stewart V. Wright
Hi all, I have the following hook set in my .muttrc : fcc-save-hook~A +People/%O.gz Effectively unless I specify it elsewhere my mail gets saved to People/MailName.gz However, recently one of my correspondents has had their email name changed to all capitals, so now rather

Re: just another send-hook question

1999-11-12 Thread David DeSimone
Richard P. Groenewegen [EMAIL PROTECTED] wrote: send-hook '~t [EMAIL PROTECTED]' 'whatever' but I'll only want this send-hook to work if [EMAIL PROTECTED] is the only recipient. Isn't there a pattern modifier "^" that means "only"? send-hook '^~t [EMAIL PROTECTED]' 'whatever'

Re: just another send-hook question

1999-11-12 Thread Byrial Jensen
On Fri, Nov 12, 1999 at 07:10:25 +0100, Richard P. Groenewegen wrote: Hi, Here's something that's either trivial or impossible. I want something like send-hook '~t [EMAIL PROTECTED]' 'whatever' but I'll only want this send-hook to work if [EMAIL PROTECTED] is the only

just another send-hook question

1999-11-11 Thread Richard P. Groenewegen
Hi, Here's something that's either trivial or impossible. I want something like send-hook '~t [EMAIL PROTECTED]' 'whatever' but I'll only want this send-hook to work if [EMAIL PROTECTED] is the only recipient. On a related note: how do I limit to all messages send to [EMAIL

Re: send-hook question

1999-08-06 Thread Christian Schult
Salvatore Greco wrote: I am having a syntax hassle with my send-hooks after and upgrade. Below is a snippet of some of my send-hooks -- [send-hooks from .muttrc] send-hook '~A' 'set signature=~/.signature; my_hdr From: Salvatore Greco [EMAIL PROTECTED]; my_hdr Reply-To: [EMAIL

send-hook question

1999-08-05 Thread Salvatore Greco
Good day :) I am having a syntax hassle with my send-hooks after and upgrade. Below is a snippet of some of my send-hooks -- [send-hooks from .muttrc] send-hook '~A' 'set signature=~/.signature; my_hdr From: Salvatore Greco [EMAIL PROTECTED]; my_hdr Reply-To: [EMAIL PROTECTED]' send-hook

Re: a hook question

1999-07-21 Thread David Ellement
On 990720, at 14:40:58, Robert Chien wrote: basically, i want to set signature to .signature.work when sending email to people at work, and set signature to just .signature for the rest. [...] when i send email to co-workers, i can address it as "foo" or "foo@west" (notice the unqualified

Re: a hook question

1999-07-21 Thread David DeSimone
Robert Chien [EMAIL PROTECTED] wrote: basically, i want to set signature to .signature.work when sending email to people at work, and set signature to just .signature for the rest. I do that, too. Here's my setup: I want to use "localsig" if the message is one in which ALL of the recipients

a hook question

1999-07-20 Thread Robert Chien
hello mutt users, i need some help with using hook in the following situation: basically, i want to set signature to .signature.work when sending email to people at work, and set signature to just .signature for the rest. i've been playing with different hooks without any success, because it's

Odd hook question

1999-05-25 Thread Jeffrey Haas
I'm looking to do something resembling the following pseudo-code: I have some arbitrary field, say sender (~e in mutt) I want to say: ~e =~ /^(.*)@(.*)$/ if -d $2, then savehook becomes $2/$1. Suggestions, or time to look at hacking in a feature? (As soon as I can get autoconf to behave...)