Re: Add alias during session
=- Jing Xue wrote on Mon 5.Feb'07 at 19:12:29 -0500 -= Those added with a don't have to be sourced. But a only adds the sender's address. The only way to add an arbitrary alias seems to be to edit the alias file directly - and then to make it effective {...} the alias file would have to be sourced. =- [EMAIL PROTECTED] wrote on Mon 5.Feb'07 at 21:48:33 -0600 -= Is there really no way to do a generic create-alias, where you don't have to change the information of the current sender? I've often wanted to do this - just hit 'a', but not have to erase all the information I don't want first (I just want it blank so I can enter what I want). a) open an empty folder, where there is no current addr. ;) b) use kill-line (often ^U) to erase whole line at once, in case you're bothered by delete char-by-char. Much faster. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL of it: you get what you give.
Re: Add alias during session
On Tue, Feb 06, 2007 at 02:50:08PM +0100, Rado S wrote: a) open an empty folder, where there is no current addr. ;) b) use kill-line (often ^U) to erase whole line at once, in case you're bothered by delete char-by-char. Much faster. OK, these help, but they're still not ideal. Wouldn't it be good to have another create-alias that just starts with everything blank, instead of making the user open a blank folder or erase all the information? -benjie
Re: Add alias during session
=- [EMAIL PROTECTED] wrote on Tue 6.Feb'07 at 8:49:52 -0600 -= Wouldn't it be good to have another create-alias that just starts with everything blank, instead of making the user open a blank folder or erase all the information? Of course everything that automates repeated operation is good, but you have to question: does it pay off to have this feature extra? How often do _you_ need it? How many people use it _like you_? Even though I remember that last _year_ 1-2 times I wanted to do that, that's too rare for my taste to put more code into mutt. For those exceptional cases I can live with editing the file or hitting ^U 2 times/alias. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL of it: you get what you give.
Re: Add alias during session
On Tue, Feb 06, 2007 at 06:18:40PM +0100, Rado S wrote: =- [EMAIL PROTECTED] wrote on Tue 6.Feb'07 at 8:49:52 -0600 -= Wouldn't it be good to have another create-alias that just starts with everything blank, instead of making the user open a blank folder or erase all the information? Of course everything that automates repeated operation is good, but you have to question: does it pay off to have this feature extra? How often do _you_ need it? How many people use it _like you_? Even though I remember that last _year_ 1-2 times I wanted to do that, that's too rare for my taste to put more code into mutt. For those exceptional cases I can live with editing the file or hitting ^U 2 times/alias. The times I want to add an alias completely separate from a current message are few and far between. For me, I wouldn't think adding a new blank alias feature would be worth it. However, one situation comes up fairly often... I want to add an alias for someone in the message, but not who mutt thinks is the sender. This happens on mailing lists, usually. When replying, mutt asks Reply to [EMAIL PROTECTED] ([yes]/no)? or some such, and no gets me the real person (rather than the list). With a to add an alias I get no such choice - it always wants to add the list address. That's pretty much *never* what I want. -- Darrin Chandler | Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/darrin/ |
Re: Add alias during session
On Tue, Feb 06, 2007 at 02:50:08PM +0100, Rado S wrote: Those added with a don't have to be sourced. But a only adds the sender's address. The only way to add an arbitrary alias seems to be to edit the alias file directly - and then to make it effective {...} the alias file would have to be sourced. At first I thought automatic re-reading would be a good thing, then I realized that the way we update it (editing) means that an automatic update would probably slurp in a file while it is still inconsistent. -- Good code works. Great code can't fail. -- URL:http://www.subspacefield.org/~travis/ For a good time on my UBE blacklist, email [EMAIL PROTECTED] pgpjmXTEYOIKB.pgp Description: PGP signature
Re: Add alias during session
On Tue, Feb 06, 2007 at 06:18:40PM +0100, Rado S wrote: Of course everything that automates repeated operation is good, but you have to question: does it pay off to have this feature extra? How many people use it _like you_? I do. I just started with mutt recently and I'm having to put things into my aliases the first time I send to a person or list. Probably it will not be as frequent as time goes on. Still, it'd be nice to have it so people could bind it to a key or not, based on personal preference. Also, being able to show unbound keys would be nice :-) -- Good code works. Great code can't fail. -- URL:http://www.subspacefield.org/~travis/ For a good time on my UBE blacklist, email [EMAIL PROTECTED] pgpUOGnPc8UT2.pgp Description: PGP signature
Re: Add alias during session
=- Darrin Chandler wrote on Tue 6.Feb'07 at 11:08:54 -0700 -= However, one situation comes up fairly often... I want to add an alias for someone in the message, but not who mutt thinks is the sender. This happens on mailing lists, usually. When replying, mutt asks Reply to [EMAIL PROTECTED] ([yes]/no)? or some such, and no gets me the real person (rather than the list). With a to add an alias I get no such choice - it always wants to add the list address. That's pretty much *never* what I want. http://bugs.mutt.org/ = change-request -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL of it: you get what you give.
Re: Add alias during session
* On 2007.02.05, in [EMAIL PROTECTED], * [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there really no way to do a generic create-alias, where you don't have to change the information of the current sender? I've often wanted to do this - just hit 'a', but not have to erase all the information I don't want first (I just want it blank so I can enter what I want). macro index A enter-commandsource '~/bin/mutt-add-alias |'enter mutt-add-alias is attached. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago #!/bin/sh ALIAS_FILE=${MUTT_ALIASES:-$HOME/.mutt/aliases} q='' exec 91 exec /dev/tty /dev/tty 21 get_vals () { printf New alias name${alias:+ [$alias]}: read line alias=${line:-$alias} printf Enter e-mail address${addr:+ [$addr]}: read line addr=${line:-$addr} printf Enter comment/name${name:+ [$name]}: read line name=${line:-$name} new=`echo $name | tr -d ''` if [ ! $new = $name ]; then printf (Removing double-quotes from $q$name$q.)\n name=$new fi } notfinished=true while $notfinished; do printf \n get_vals printf \n notfinished= while [ $notfinished = ]; do printf Is this correct: $alias = $name $addr [yes]? read line case $line in |y*|j*|s*|o*) notfinished=false ;; n*) notfinished=true ;; *) echo Yes or no is good. ;; esac done done printf alias %-16s %s %s\n $alias $q$name$q $addr $ALIAS_FILE printf \nAdded alias $q$alias$q for $q$name$q $addr\n\n cat $ALIAS_FILE 9
Re: Add alias during session
* Darrin Chandler [EMAIL PROTECTED] [02-06-07 13:15]: [...] The times I want to add an alias completely separate from a current message are few and far between. For me, I wouldn't think adding a new blank alias feature would be worth it. [...] add lbdb to your system and utilize it for snarfing addresses: Description : The Little Brother's Database (lbdb) consists of a set of small tools that collect mail addresses from several sources and offer these addresses to the external query feature of the Mutt mail reader. To use the fetch address feature, put the following lines in your .procmailrc: :0hc | lbdb-fetchaddr To use the database in mutt, put the following line into your .muttrc: set query_command=lbdbq %s excerpt from man page: DESCRIPTION lbdbq is the client program for the little brother's database. It will attempt to invoke various modules to gather information about persons matching something. E.g., it may look at a list of addresses from which you have received mail, it may look at YP maps, or it may try to finger some‐ thing@various hosts. The behavior is configurable: Upon startup, lbdbq will source the shell scripts: /etc/lbdb.rc $HOME/.lbdbrc $HOME/.lbdb/lbdbrc $HOME/.lbdb/rc if they exist. 14:20 wahoo:~ grep lbdb .muttrc set query_command=lbdbq '%s' # calling lbdbq macro alias Q !lbdbq .lbdb query 14:21 wahoo:~ lbdbq Darrin\ Chandler lbdbq: 1 matches [EMAIL PROTECTED]Darrin Chandler 14:21 wahoo:~ lbdbq chandler lbdbq: 6 matches [EMAIL PROTECTED] Barb Chandler [EMAIL PROTECTED] Janie Siegel [EMAIL PROTECTED] David Chandler [EMAIL PROTECTED]Darrin Chandler [EMAIL PROTECTED] Joel Phipps [EMAIL PROTECTED]simon188342 -- Patrick ShanahanRegistered Linux User #207535 http://wahoo.no-ip.org@ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/
Re: Add alias during session
* Travis H. [EMAIL PROTECTED] [02-06-07 13:35]: [...] I do. I just started with mutt recently and I'm having to put things into my aliases the first time I send to a person or list. Probably it will not be as frequent as time goes on. Still, it'd be nice to have it so people could bind it to a key or not, based on personal preference. [...] see my post a few minutes ago about lbdb -- Patrick ShanahanRegistered Linux User #207535 http://wahoo.no-ip.org@ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/
Re: Add alias during session
On Tue, Feb 06, 2007 at 07:27:59PM +0100, Rado S wrote: =- Darrin Chandler wrote on Tue 6.Feb'07 at 11:08:54 -0700 -= However, one situation comes up fairly often... I want to add an alias for someone in the message, but not who mutt thinks is the sender. This happens on mailing lists, usually. When replying, mutt asks Reply to [EMAIL PROTECTED] ([yes]/no)? or some such, and no gets me the real person (rather than the list). With a to add an alias I get no such choice - it always wants to add the list address. That's pretty much *never* what I want. http://bugs.mutt.org/ = change-request Ok. I was also considering doing a patch some time and sending it in. Which is preferred? -- Darrin Chandler | Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/darrin/ |
Re: Add alias during session
=- Darrin Chandler wrote on Tue 6.Feb'07 at 12:42:56 -0700 -= When replying, mutt asks Reply to [EMAIL PROTECTED] ([yes]/no)? or some such, and no gets me the real person (rather than the list). With a to add an alias I get no such choice - it always wants to add the list address. That's pretty much *never* what I want. http://bugs.mutt.org/ = change-request Ok. I was also considering doing a patch some time and sending it in. Which is preferred? Make the patch, attach it to the PR you'll create then. Add 'patch' in the keyword field. If you hope somebody else might fix it in the meantime, create it _now_ and add the patch + keyword later. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL of it: you get what you give.
Re: Add alias during session
On date Sunday 2007-02-04 12:16:11 -0500, Jing Xue muttered: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? I can start an editor to edit my .mutt/alias but I can't see the changes until restarting mutt. create-alias, usually bound to a, makes the new alias immediately effective, and immediately writes the alias in the $alias_file. Maybe you have to refresh the buffer you're seeing with your editor to see the change. Cheers -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Re: Add alias during session
On Sun, Feb 04, 2007 at 11:41:15PM -0800, William Yardley wrote: :source aliasfile after adding the alias. Maybe I'm on crack, but I already don't have to source the alias file for a new alias to work - after adding it with a, it Just Works. w I just tried it. It really does Just Work. Maybe mutt should be changed to iMutt :)) -- H. L. Mencken's Law: Those who can -- do. Those who can't -- teach. Martin's Extension: Those who cannot teach -- administrate. GPG public key: http://datasnok.org/gpginfo
Re: Add alias during session
On Sun, Feb 04, 2007 at 11:41:15PM -0800, William Yardley wrote: On Sun, Feb 04, 2007 at 11:06:52PM +0100, Christian Ebert wrote: * Jing Xue on Sunday, February 04, 2007 at 12:16:11 -0500: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? :source aliasfile after adding the alias. Maybe I'm on crack, but I already don't have to source the alias file for a new alias to work - after adding it with a, it Just Works. Those added with a don't have to be sourced. But a only adds the sender's address. The only way to add an arbitrary alias seems to be to edit the alias file directly - and then to make it effective, as Christian pointed out (would have been obvious had I RTFM ;-)), the alias file would have to be sourced. -- Jing Xue
Re: Add alias during session
On Mon, Feb 05, 2007 at 11:36:16AM +0100, Stefano Sabatini wrote: On date Sunday 2007-02-04 12:16:11 -0500, Jing Xue muttered: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? I can start an editor to edit my .mutt/alias but I can't see the changes until restarting mutt. create-alias, usually bound to a, makes the new alias immediately effective, and immediately writes the alias in the $alias_file. Maybe you have to refresh the buffer you're seeing with your editor to see the change. After three people pointed out the obvious, I went back and read my OP and realized it was indeed confusing. What I meant was to look for some way to add _any arbitrary_ alias and make it effective immediately. -- Jing Xue
Re: Add alias during session
On Mon, Feb 05, 2007 at 07:18:37PM -0500, Jing Xue wrote: On Mon, Feb 05, 2007 at 11:36:16AM +0100, Stefano Sabatini wrote: On date Sunday 2007-02-04 12:16:11 -0500, Jing Xue muttered: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? I can start an editor to edit my .mutt/alias but I can't see the changes until restarting mutt. create-alias, usually bound to a, makes the new alias immediately effective, and immediately writes the alias in the $alias_file. Maybe you have to refresh the buffer you're seeing with your editor to see the change. After three people pointed out the obvious, I went back and read my OP and realized it was indeed confusing. What I meant was to look for some way to add _any arbitrary_ alias and make it effective immediately. What I always end up doing is a and then editing the alias to be what I really want. This seems like a silly way to do it, but it's less work than using an external editor and then sourcing the alias file. I've often wished for a way to alias something besides the (supposed) sender, but I don't do it enough to make it worth doing myself. ;) -- Darrin Chandler | Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/darrin/ |
Re: Add alias during session
On Mon, Feb 05, 2007 at 05:30:03PM -0700, Darrin Chandler wrote: On Mon, Feb 05, 2007 at 07:18:37PM -0500, Jing Xue wrote: On Mon, Feb 05, 2007 at 11:36:16AM +0100, Stefano Sabatini wrote: On date Sunday 2007-02-04 12:16:11 -0500, Jing Xue muttered: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? I can start an editor to edit my .mutt/alias but I can't see the changes until restarting mutt. create-alias, usually bound to a, makes the new alias immediately effective, and immediately writes the alias in the $alias_file. Maybe you have to refresh the buffer you're seeing with your editor to see the change. After three people pointed out the obvious, I went back and read my OP and realized it was indeed confusing. What I meant was to look for some way to add _any arbitrary_ alias and make it effective immediately. What I always end up doing is a and then editing the alias to be what I really want. This seems like a silly way to do it, but it's less work than using an external editor and then sourcing the alias file. I've often wished for a way to alias something besides the (supposed) sender, but I don't do it enough to make it worth doing myself. ;) Is there really no way to do a generic create-alias, where you don't have to change the information of the current sender? I've often wanted to do this - just hit 'a', but not have to erase all the information I don't want first (I just want it blank so I can enter what I want). -benjie
Add alias during session
I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? I can start an editor to edit my .mutt/alias but I can't see the changes until restarting mutt. Thanks. -- Jing Xue
Re: Add alias during session
* Jing Xue on Sunday, February 04, 2007 at 12:16:11 -0500: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? :source aliasfile after adding the alias. c -- _B A U S T E L L E N_ lesen! --- http://www.blacktrash.org/baustellen.html
Re: Add alias during session
On Sun, Feb 04, 2007 at 11:06:52PM +0100, Christian Ebert wrote: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? :source aliasfile after adding the alias. Or turn the whole sequence into a macro. -- The driving force behind innovation is sublimation. -- URL:http://www.subspacefield.org/~travis/ For a good time on my UBE blacklist, email [EMAIL PROTECTED] pgp2yjaVsNSgp.pgp Description: PGP signature
Re: Add alias during session
On Sun, Feb 04, 2007 at 11:06:52PM +0100, Christian Ebert wrote: * Jing Xue on Sunday, February 04, 2007 at 12:16:11 -0500: I know 'a' adds an alias for the current sender, but is there any other more generic way to add alias _and_ make it effective immediately? :source aliasfile after adding the alias. Maybe I'm on crack, but I already don't have to source the alias file for a new alias to work - after adding it with a, it Just Works. w