You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2005/10/21 00:46:51 UTC
svn commit: r327019 - in /httpd/mod_mbox/trunk/module-2.0: mod_mbox.c
mod_mbox.h
Author: maxime
Date: Thu Oct 20 15:46:45 2005
New Revision: 327019
URL: http://svn.apache.org/viewcvs?rev=327019&view=rev
Log:
Don't wrap messages with a size larger than MBOX_MAX_WRAP (set to 50k here)
Modified:
httpd/mod_mbox/trunk/module-2.0/mod_mbox.c
httpd/mod_mbox/trunk/module-2.0/mod_mbox.h
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox.c?rev=327019&r1=327018&r2=327019&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox.c Thu Oct 20 15:46:45 2005
@@ -149,7 +149,11 @@
{
int i, pos;
- if (!str || (strlen(str) < MBOX_WRAP_TO))
+ if (!str ||
+ (strlen(str) < MBOX_WRAP_TO) ||
+ /* Don't wrap messages with a size larger than
+ MBOX_MAX_WRAP */
+ (strlen(str) > MBOX_MAX_WRAP))
return str;
for (i=0, pos=0; i<strlen(str); i++, pos++) {
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox.h
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox.h?rev=327019&r1=327018&r2=327019&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox.h (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox.h Thu Oct 20 15:46:45 2005
@@ -61,6 +61,7 @@
#define MBOX_OUTPUT_AJAX 1
#define MBOX_WRAP_TO 90
+#define MBOX_MAX_WRAP 50000
#define MBOX_ATOM_NUM_ENTRIES 40