[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-commits] nmh ChangeLog h/mh.h
From: |
David Levine |
Subject: |
[Nmh-commits] nmh ChangeLog h/mh.h |
Date: |
Thu, 23 Oct 2008 18:38:22 +0000 |
CVSROOT: /sources/nmh
Module name: nmh
Changes by: David Levine <levine> 08/10/23 18:38:22
Modified files:
. : ChangeLog
h : mh.h
Log message:
* h/mh.h: raised NAMESZ from 128 to 999. RFC 2822 limits line
lengths to 998 characters, so a header name can be at most that
long.
m_getfld limits header names to 2 less than NAMESZ, which is
fine,
because header names must be followed by a colon. Add one for
terminating NULL.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/ChangeLog?cvsroot=nmh&r1=1.298&r2=1.299
http://cvs.savannah.gnu.org/viewcvs/nmh/h/mh.h?cvsroot=nmh&r1=1.9&r2=1.10
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/nmh/nmh/ChangeLog,v
retrieving revision 1.298
retrieving revision 1.299
diff -u -b -r1.298 -r1.299
--- ChangeLog 23 Oct 2008 18:14:52 -0000 1.298
+++ ChangeLog 23 Oct 2008 18:38:22 -0000 1.299
@@ -1,5 +1,13 @@
2008-10-23 David Levine <address@hidden>
+ * h/mh.h: raised NAMESZ from 128 to 999. RFC 2822 limits line
+ lengths to 998 characters, so a header name can be at most that long.
+ m_getfld limits header names to 2 less than NAMESZ, which is fine,
+ because header names must be followed by a colon. Add one for
+ terminating NULL.
+
+2008-10-23 David Levine <address@hidden>
+
* sbr/m_getfld.c: in warning message, use NAMESZ-2 instead of
NAMESZ-1 bytes because the message says "exceeds", not
"is greater than or equal to".
Index: h/mh.h
===================================================================
RCS file: /sources/nmh/nmh/h/mh.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- h/mh.h 2 Jun 2008 22:37:01 -0000 1.9
+++ h/mh.h 23 Oct 2008 18:38:22 -0000 1.10
@@ -2,7 +2,7 @@
/*
* mh.h -- main header file for all of nmh
*
- * $Id: mh.h,v 1.9 2008/06/02 22:37:01 pm215 Exp $
+ * $Id: mh.h,v 1.10 2008/10/23 18:38:22 levine Exp $
*/
#include <h/nmh.h>
@@ -223,7 +223,15 @@
* m_getfld() message parsing
*/
-#define NAMESZ 128 /* Limit on component name size */
+#define NAMESZ 999 /* Limit on component name size.
+ RFC 2822 limits line lengths to
+ 998 characters, so a header name
+ can be at most that long.
+ m_getfld limits header names to 2
+ less than NAMESZ, which is fine,
+ because header names must be
+ followed by a colon. Add one for
+ terminating NULL. */
#define LENERR (-2) /* Name too long error from getfld */
#define FMTERR (-3) /* Message Format error */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-commits] nmh ChangeLog h/mh.h,
David Levine <=