Re: sourcing a 2nd alias file

2015-06-08 Thread Matthias Apitz
El día Monday, June 08, 2015 a las 02:03:55PM +0200, Michael Tatge escribió:

> > I want to have an additional alias file (i.e. separated from my normal
> > aliases). I tried:
> > 
> > set alias_file=~/.mutt-mail_aliases # where I keep my aliases
> > source ~/.mutt-mail_aliases # include my aliases
> > source ~/.mutt-xxx
> 
> so far so good.
> 
> > but in the 2nd file it does not recognize the 'alias' command-
> 
> Are you sure that 2nd file is syntacticly correct? What error are you
> getting exactly?

I nailed it down: the 2nd file was produced from some Winword .doc file
someone sent me with the list of the members; do not blame me; I saved it as
txt file and built the alias file ~/.mutt-xxx from it; the vim hided
to me that the txt file contained as 1st bytes the BOM \ufeff :-(
after deleting this all is fine;

Thanks for your help;

matthias

-- 
Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211
+49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände 
menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar 
humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 
2, 138)


Re: sourcing a 2nd alias file

2015-06-08 Thread Chris Spackman
On 2015/06/08 at 02:03pm, Michael Tatge wrote:
> Hi,
> 
> * On Mon, Jun 08, 2015 08:08AM +0200 Matthias Apitz (g...@unixarea.de) 
> muttered:
> > I want to have an additional alias file (i.e. separated from my normal
> > aliases). I tried:
> 
> so far so good.
> 
> > but in the 2nd file it does not recognize the 'alias' command-
> 
> Are you sure that 2nd file is syntacticly correct? What error are you
> getting exactly?
> 
> Michael

My muttrc sources five or six alias files and it works just fine. I
would second the guess that there might be an error in your syntax in
the second file.


-- 
Chris Spackman

GNU Terry Pratchett



Re: sourcing a 2nd alias file

2015-06-08 Thread Michael Tatge
* On Mon, Jun 08, 2015 07:14AM -0400 Patrick Shanahan (ptilopt...@gmail.com) 
muttered:
> * Matthias Apitz  [06-08-15 02:09]:
> > set alias_file=~/.mutt-mail_aliases # where I keep my aliases
> > source ~/.mutt-mail_aliases # include my aliases
> > source ~/.mutt-xxx
> only ideas and untried and unknown:
>   You have told mutt to *only* use ~/.mutt-mail_aliases, "set alias_file="
>   perhaps,
> set alias_file=~/.mutt-mail_aliases;~/.mutt-
>   or it may not be possible currently.

No. It should work as the OP wrote. alias_file points to one and only
one file.

3.3. alias_file

Type: path
Default: “~/.muttrc”

The default file in which to save aliases created by the 
function.

"alias" is a normal command and can be used in any sourced file.
alias_file simply tells mutt to save new aliases there.

Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


Re: sourcing a 2nd alias file

2015-06-08 Thread Michael Tatge
Hi,

* On Mon, Jun 08, 2015 08:08AM +0200 Matthias Apitz (g...@unixarea.de) muttered:
> I want to have an additional alias file (i.e. separated from my normal
> aliases). I tried:
> 
> set alias_file=~/.mutt-mail_aliases # where I keep my aliases
> source ~/.mutt-mail_aliases # include my aliases
> source ~/.mutt-xxx

so far so good.

> but in the 2nd file it does not recognize the 'alias' command-

Are you sure that 2nd file is syntacticly correct? What error are you
getting exactly?

Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


Re: sourcing a 2nd alias file

2015-06-08 Thread Patrick Shanahan
* Matthias Apitz  [06-08-15 02:09]:
> To manage some organization I want to have an additional alias file
> (i.e. separated from my normal aliases). I tried:
> 
> set alias_file=~/.mutt-mail_aliases # where I keep my aliases
> source ~/.mutt-mail_aliases # include my aliases
> source ~/.mutt-xxx
> 
> but in the 2nd file it does not recognize the 'alias' command-
> 
> Any idea? Thanks

only ideas and untried and unknown:
  You have told mutt to *only* use ~/.mutt-mail_aliases, "set alias_file="
  perhaps,
set alias_file=~/.mutt-mail_aliases;~/.mutt-
  or it may not be possible currently.
  
Except for your own "preference", why not combine them?

And perhaps this would be a good use of hooks, source and set the aliase
file according to the recipient.  And source is probably only required
once.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


sourcing a 2nd alias file

2015-06-07 Thread Matthias Apitz

Hello,

To manage some organization I want to have an additional alias file
(i.e. separated from my normal aliases). I tried:

set alias_file=~/.mutt-mail_aliases # where I keep my aliases
source ~/.mutt-mail_aliases # include my aliases
source ~/.mutt-xxx

but in the 2nd file it does not recognize the 'alias' command-

Any idea? Thanks

matthias


-- 
Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211
+49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände 
menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar 
humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 
2, 138)