<<< Date Index >>>     <<< Thread Index >>>

Re: Aliases are not working



On Sat, 3 Mar 2007 15:57:46 +0100 meino.cramer@xxxxxx wrote:

> On Sat, Mar 03, 2007 at 04:45:21PM +0200, Salvatore Iovene wrote:
> > Hi,
> > in my .muttrc I have a line like this:
> > 
> > set alias_file=~/.mail_aliases
> > 
> > Indeed, saving aliases works, and they are appended to that file.
> > If I just save an alias (or more), and then hit 'm' to compose, and
> > 'tab' to see my aliases, I can only see the ones that I just saved
> > in that mutt session.
> > If I restart mutt, that 'm'+'tab' combination shows no aliases,
> > like I had none, but they're all in place in ~/.mail_aliases.
> > 
> > Can anyone help fix this problem?
> > 
> > Thanks.
> > 
> > -- 
> > Salvatore Iovene
> > http://www.iovene.com
> 
> Hi Slavatore,
> 
>  what a coincidence ! just *ONE* minute before your mail
>  arrives, I had EXACTLY the same ....hrrrrmmm... magic with
>  mutt.
> 
>  The trick is, that you have to source the file with an extra 
>  command at the end (or whereever you want :) of your 
>  ${HOME}/.muttrc file like this:
> 
>     source ~/.mail.aliasses
> 
>  since ${HOME}/.muttrc is the only file it seems, which will be read
>  (beside the system wide version of the same file) by mutt itself.
> 
>  Keep hacking !
>  mcc
> 
>  PS: I dont know, why mutt alias-file command only uses the alias
>      file for writing and thinks, that reading the file is the
>      wrong way except the user instructs it. But I am not the author
>      of mutt, I am only an user. Just my two cents...you currency may
>      vary... ;)

Thank you too, it worked :)

-- 
Salvatore Iovene
http://www.iovene.com

Attachment: signature.asc
Description: PGP signature