Re: Piping /etc/aliases to newaliases

2009-04-06 Thread Victor Duchovni
On Mon, Apr 06, 2009 at 11:36:32PM +0200, mouss wrote: > Bryce Nesbitt a ??crit : > > Sure, I 'm fighting the system. But I'm willing to alter the system > > also so there is less fighting :-). > > > > And there IS a reason to prefer one over the other: > > neatness in a large aliases file, and

Re: Piping /etc/aliases to newaliases

2009-04-06 Thread mouss
Bryce Nesbitt a écrit : > Sure, I 'm fighting the system. But I'm willing to alter the system > also so there is less fighting :-). > > And there IS a reason to prefer one over the other: > neatness in a large aliases file, and clean documentation. > When things are lined up in columns it is easi

Re: Piping /etc/aliases to newaliases

2009-04-05 Thread Bryce Nesbitt
> Mouss wrote: > you are fighting against the system. and usually at least, the system > wins and you lose. > > there is no reason to prefer: > > joe jim # blah blah > > to > > # blah blah > joejim Sure, I 'm fighting the system. But I'm willing to alter the system also so there is less fi

Re: Piping /etc/aliases to newaliases

2009-03-31 Thread mouss
Bryce Nesbitt a écrit : > Here is try two at the end of line comment script for /etc/aliases. Can > anyone do this more elegantly? > > #!/bin/sh > # Created so we can have end of line comments in /etc/aliases > sed 's/#.*$//;/^$/d' < /etc/aliases > /tmp/aliases_tmp ; > /usr/sbin/sendmail -bi -oA/

Re: Piping /etc/aliases to newaliases

2009-03-31 Thread Victor Duchovni
On Tue, Mar 31, 2009 at 10:59:41AM -0700, Bryce Nesbitt wrote: > Here is try two at the end of line comment script for /etc/aliases. Can > anyone do this more elegantly? > > #!/bin/sh > # Created so we can have end of line comments in /etc/aliases > sed 's/#.*$//;/^$/d' < /etc/aliases > /tmp/ali

Re: Piping /etc/aliases to newaliases

2009-03-31 Thread Wietse Venema
Bryce Nesbitt: > Here is try two at the end of line comment script for /etc/aliases. Can > anyone do this more elegantly? > > #!/bin/sh > # Created so we can have end of line comments in /etc/aliases > sed 's/#.*$//;/^$/d' < /etc/aliases > /tmp/aliases_tmp ; > /usr/sbin/sendmail -bi -oA/tmp/alias

Re: Piping /etc/aliases to newaliases

2009-03-31 Thread Bryce Nesbitt
Here is try two at the end of line comment script for /etc/aliases. Can anyone do this more elegantly? #!/bin/sh # Created so we can have end of line comments in /etc/aliases sed 's/#.*$//;/^$/d' < /etc/aliases > /tmp/aliases_tmp ; /usr/sbin/sendmail -bi -oA/tmp/aliases_tmp ; mv /tmp/aliases_tmp.

Re: Piping /etc/aliases to newaliases

2009-03-27 Thread LuKreme
On 26-Mar-2009, at 18:23, Bryce Nesbitt wrote: Would anyone else appreciate end of line comments, as an extension to /etc/aliases and *.pcre? What character should introduce such comments? Actually? No. I find end-of-line comments to be far more trouble than they are worth. # 20090101

Re: Piping /etc/aliases to newaliases

2009-03-27 Thread mouss
Bryce Nesbitt a écrit : > Noel Jones wrote: >> You can't pipe to newaliases. >> You can use a proto file with comments and some script to create the >> input file that newaliases requires. This seems a natural for a >> Makefile. >> -- Noel Jones > I was aiming for something that was "no mistakes

Re: Piping /etc/aliases to newaliases

2009-03-26 Thread Bryce Nesbitt
Noel Jones wrote: > You can't pipe to newaliases. > You can use a proto file with comments and some script to create the > input file that newaliases requires. This seems a natural for a > Makefile. > -- Noel Jones I was aiming for something that was "no mistakes" proof for other system administ

Re: Piping /etc/aliases to newaliases

2009-03-25 Thread Noel Jones
Bryce Nesbitt wrote: Dear Postfix Experts, Is there a way to get a pipe going to newaliases / sendmail -I / postalias? I felt a strong need to have end of line comment characters in /etc/aliases ;-). So my first shot at that was: sed 's/#.*$//' aliases | newalises Which failed spectacula

Re: Piping /etc/aliases to newaliases

2009-03-25 Thread Wietse Venema
Bryce Nesbitt: > Dear Postfix Experts, > > Is there a way to get a pipe going to newaliases / sendmail -I / postalias? All the supported features are in the DOCUMENTATION. Wietse > I felt a strong need to have end of line comment characters in > /etc/aliases ;-). So my first shot at t