No aliases for me...?

This is a discussion on No aliases for me...? within the Mutt forums in Other Technologies category; 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...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-12-2007, 07:04 AM
Mats
Guest
 
Default No aliases for me...?

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
Reply With Quote
  #2  
Old 06-12-2007, 07:14 AM
Frank Ursel
Guest
 
Default Re: No aliases for me...?

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
Reply With Quote
  #3  
Old 06-12-2007, 07:16 AM
Martin Gagnon
Guest
 
Default Re: No aliases for me...?

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
Reply With Quote
  #4  
Old 06-12-2007, 07:20 AM
Martin Gagnon
Guest
 
Default Re: No aliases for me...?

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

Reply With Quote
  #5  
Old 06-12-2007, 07:30 AM
Thomas Walter
Guest
 
Default Re: No aliases for me...?

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

Reply With Quote
  #6  
Old 06-12-2007, 10:12 AM
Mats
Guest
 
Default Re: No aliases for me...?

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 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?

/Mats
Reply With Quote
  #7  
Old 06-12-2007, 01:11 PM
Gary Johnson
Guest
 
Default Re: No aliases for me...?

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
Reply With Quote
  #8  
Old 06-12-2007, 02:19 PM
Mats
Guest
 
Default Re: No aliases for me...?

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:59 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.