[rancid] Re: [patch] Using diffstat in the output mail

john heasley heas at shrubbery.net
Mon May 22 16:14:46 UTC 2006


Mon, May 22, 2006 at 12:25:24PM +0200, Christian Hammers:
> Hello
> 
> I modified the mail output to include the output of diffstat. This gives
> me a nice overview of what has changed without having to browse through
> the long mail:
> 
>  switch1.intern           |    4 +++-
>  routerxx.intern          |    4 +++-
>  sw04-xxx-yyy.westend.com |    4 +++-
>  3 files changed, 9 insertions(+), 3 deletions(-)
> 
> bye,
> -christian-

Can't you do this with procmail?

> --- old/bin/control_rancid.in   2006-03-15 10:05:33.000000000 +0100
> +++ new/bin/control_rancid.in   2006-03-16 09:33:44.964493641 +0100
> @@ -392,6 +392,8 @@
>  Subject: $subject
>  Precedence: bulk
>  
> +`diffstat $TMP.diff`
> +
>  `cat $TMP.diff`
>  EMAIL
>  fi
> 
> 
> -- 
> Christian Hammers             WESTEND GmbH  |  Internet-Business-Provider
> Technik                       CISCO Systems Partner - Authorized Reseller
>                               L?tticher Stra?e 10      Tel 0241/701333-11
> ch at westend.com                D-52064 Aachen              Fax 0241/911879
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



More information about the Rancid-discuss mailing list