[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] What about articles without subject?



In just about any error situation, leafnode tries to fix its problems by 
deleting the offending article.

Well, I've lost an article because there was no subject.
I could get it after:

--- leafnode-1.9.19/xoverutil.c	Sat Nov 10 11:05:51 2001
+++ leafnode-1.9.20/xoverutil.c	Sat Nov 10 21:10:38 2001
@@ -136,6 +136,10 @@
 		h = NULL;
 	    }
 	}
+	if ( !subject ) {
+	    subject = strdup( "<No subject>" );
+            bytes += 23;
+	}
 	if ( from && date && subject && msgid && bytes ) {
 	    result = critmalloc( strlen( from ) + strlen( date ) +
 				 strlen( subject ) + strlen( msgid ) +


HTH

Sergio


-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list