+ /*
+ * RFC 5322 specifies that a message cannot contain a line
+ * greater than 998 characters (excluding the CRLF). If we
+ * get one of those lines and linelen is NOT set, then abort.
+ */
+
+ if (checkllinelen && !linelen &&
+ (strlen(buffer) > MAXLONGLINE + 1)) {
+ adios(NULL, "Line in content exceeds maximum line limit (%d)",
+ MAXLONGLINE);
+ }
+