This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Too large messages on glibc-cvs@
- From: Petr Baudis <pasky at suse dot cz>
- To: Jim Meyering <jim at meyering dot net>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>, libc-ports at sourceware dot org
- Date: Mon, 9 Nov 2009 17:46:46 +0100
- Subject: Re: Too large messages on glibc-cvs@
- References: <1244556143.2831.ezmlm-warn@sourceware.org><20090609144835.GC8501@machine.or.cz><20090609205838.65E49FC3C5@magilla.sf.frob.com><87tz2p3yhn.fsf@meyering.net><20091104121439.GE3708@machine.or.cz><87ws26s1wl.fsf@meyering.net>
On Wed, Nov 04, 2009 at 05:14:18PM +0100, Jim Meyering wrote:
> Petr Baudis wrote:
> > On Tue, Jun 09, 2009 at 11:09:56PM +0200, Jim Meyering wrote:
> >> Roland McGrath wrote:
> >> > Jim is our local expert on the git scripts.
> >> > But I'm sure this issue is not new among all other projects using git.
> >> > If anybody else has script hacks for this stuff, please come forward.
> >>
> >> I noticed those, too. I wrote/posted a tiny script to insert into the
> >> existing hook. I'll actually test and install it Thursday or Friday.
> >
> > I'm now adding this hook to repo.or.cz and I'd like to do this too,
> > I'm wondering, how did you do this?
>
> Hi Petr,
>
> I wrote this limit-pipe script:
>
> http://sourceware.org/ml/libc-ports/2009-05/msg00056.html
>
> but I never got around to making the hook use it.
Ah, thanks. In the end, I went with much simpler hack in mail.sh, since
I'm using a customized one myself anyway...
> size_limit()
> {
> size=0
> while IFS= read line; do
> size=$((size+${#line}))
> if [ $size -gt $1 ]; then
> echo "...e-mail trimmed, has been too large."
> break
> fi
> echo "$line"
> done
> }
--
Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth