| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi I have some trouble using aliases in mutt. I have this line in my ~/.muttrc set alias_file=~/.mutt_aliases # where I keep my aliases And in .mutt_aliases it looks like this alias mutt-users Mutt User List <mutt-users@mutt.org> When I write a mail and then write "to: mutt-users" it doesn't extract when I use the [TAB]. I use vim as editor, maybe it works better in vi? But then I will get some problem with last three characters in my language. I'm thinking about using "ab" in vimrc instead, but I want to make it work the mutt-way. /Mats |
|
#2
| |||
| |||
| Mats schrieb: > Hi > I have some trouble using aliases in mutt. I have this line in my > ~/.muttrc > set alias_file=~/.mutt_aliases # where I keep my aliases > > And in .mutt_aliases it looks like this alias mutt-users Mutt User List > <mutt-users@mutt.org> > > When I write a mail and then write "to: mutt-users" it doesn't extract > when I use the [TAB]. > I use vim as editor, maybe it works better in vi? But then I will get > some problem with last three characters in my language. I'm thinking > about using "ab" in vimrc instead, but I want to make it work the > mutt-way. Are you trying to use tab for completion within vim? This won't work. If you start writing a mail with 'm' mutt ask you for a to: so there you can use auto completion. From within vim this is not possible. After you composed your message you can use autocompletion in compose menu too. Frank |
|
#3
| |||
| |||
| On Tue, Jun 12, 2007 at 11:04:23AM +0000, Mats wrote: > Hi > I have some trouble using aliases in mutt. > I have this line in my ~/.muttrc > set alias_file=~/.mutt_aliases # where I keep my aliases > > And in .mutt_aliases it looks like this > alias mutt-users Mutt User List <mutt-users@mutt.org> > > When I write a mail and then write "to: mutt-users" it doesn't > extract when I use the [TAB]. > I use vim as editor, maybe it works better in vi? But then I will > get some problem with last three characters in my language. I'm > thinking about using "ab" in vimrc instead, but I want to make it > work the mutt-way. I don't see what the editor have to do with the completion of the Alias.. Normally.. when you type "w" or "r" from mutt, you got: "to: ..." in the bottom of the screen. There, the TAB completion should work, and that's before the editor start. -- Martin |
|
#4
| |||
| |||
| On Tue, Jun 12, 2007 at 11:16:52AM +0000, Martin Gagnon wrote: > On Tue, Jun 12, 2007 at 11:04:23AM +0000, Mats wrote: > > Hi > > I have some trouble using aliases in mutt. > > I have this line in my ~/.muttrc > > set alias_file=~/.mutt_aliases # where I keep my aliases > > > > And in .mutt_aliases it looks like this > > alias mutt-users Mutt User List <mutt-users@mutt.org> > > > > When I write a mail and then write "to: mutt-users" it doesn't > > extract when I use the [TAB]. > > I use vim as editor, maybe it works better in vi? But then I will > > get some problem with last three characters in my language. I'm > > thinking about using "ab" in vimrc instead, but I want to make it > > work the mutt-way. > > I don't see what the editor have to do with the completion of the > Alias.. Normally.. when you type "w" or "r" from mutt, you got: > "to: ..." in the bottom of the screen. There, the TAB completion > should work, and that's before the editor start. > little correction, I want to say: "m" or "r", not "w".. -- Martin |
|
#5
| |||
| |||
| On 2007-06-12, Mats <unix@comhem.se> wrote: > Hi Hej Mats, > I have some trouble using aliases in mutt. > I have this line in my ~/.muttrc > set alias_file=~/.mutt_aliases # where I keep my aliases > > And in .mutt_aliases it looks like this > alias mutt-users Mutt User List <mutt-users@mutt.org> That looks all good. > When I write a mail and then write "to: mutt-users" it doesn't > extract when I use the [TAB]. If you are sure that mutt use the right config file it sounds like you missed to source the alias file. ,----[man muttrc (alias_file)] | Note: Mutt will not automatically source this file; you must | explicitly use the "source" command for it to be executed. `---- This means you should have a line like this in your ~/.muttrc: source ~/.mutt_aliases Tom |
|
#6
| |||
| |||
| Thomas Walter <cryopiordo@kriocoudek.mailexpire.com> wrote: > On 2007-06-12, Mats wrote: >> Hi > Hej Mats, :-) >> When I write a mail and then write "to: mutt-users" it doesn't >> extract when I use the [TAB]. > If you are sure that mutt use the right config file it sounds like you > missed to source the alias file. > ,----[man muttrc (alias_file)] > | Note: Mutt will not automatically source this file; you must > | explicitly use the "source" command for it to be executed. > `---- > This means you should have a line like this in your ~/.muttrc: > source ~/.mutt_aliases And that worked perfectly! Thanks Thomas. Eh, one more thing, if I want a alias for a whole group (cc , is the following theright way? alias group <first@swe.com>, <second@swe.com>, <third@swe.com> What I mean is, is it necessary in that case with the less and greater than signs? Or can I drop them? /Mats |
|
#7
| |||
| |||
| Mats <mats@cyborg.c83-250-138-187.bredband.comhem.se> wrote: > Eh, one more thing, if I want a alias for a whole group (cc , is> the following the right way? > > alias group <first@swe.com>, <second@swe.com>, <third@swe.com> > What I mean is, is it necessary in that case with the less and > greater than signs? Or can I drop them? You can drop them as long as your group list contains only addresses and not real names. So this will work fine: alias group first@swe.com, second@swe.com, third@swe.com You would need the < and > if you included real names, e.g., alias group Alpha <first@swe.com>, Beta <second@swe.com>, Gamma <third@swe.com> HTH, Gary |
|
#8
| |||
| |||
| Gary Johnson <garyjohn@spk.agilent.com> wrote: > You can drop them as long as your group list contains only addresses > and not real names. So this will work fine: > > alias group first@swe.com, second@swe.com, third@swe.com > > You would need the < and > if you included real names, e.g., > > alias group Alpha <first@swe.com>, Beta <second@swe.com>, Gamma <third@swe.com> Thank's a lot Gary. That means that I will be able to handle some minor "maillists" more easily. /Regards from Sweden |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.