[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Limit size of emails sent using commit-email.pl

From: VK Sameer <sameer_at_collab.net>
Date: 2005-01-17 04:55:25 CET

On Wed, 2005-01-12 at 19:43, Max Bowsher wrote:
> VK Sameer wrote:
> > Hello,
> >
> > Minor patch to commit-email.pl.in to truncate large commit emails. I've
> > added two variables, one for difflines and one for the email body later,
> > not sure if that's overkill.
>
> Do we really need two? It seems overly complicated to me.
> I'd be perfectly happy with either one or the other, but I don't like the
> idea of both.

OK, removed the max diff size variable. I just wasn't sure if there
could be a situation where non-diff content could be large as well.

Regards
Sameer

Add variable to control email message size based on email body size

* commit-email.pl.in
  $max_email_body_size: New variable
  check_truncate(): New function to truncate an array of strings
  Added call to check (and possibly truncate) size of @body

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

  • text/x-patch attachment: stored
Received on Mon Jan 17 04:57:17 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.