Mercurial > noffle
diff src/database.c @ 282:baa6408d1bbc noffle
[svn] * src/database.c,src/post.c,src/protocol.h,src/protocol.c: When posting,
check the article for those headers that are specified in section
5 of the IETF draft and ensure they only occur once.
* src/post.c: Clean up a conditional.
author | bears |
---|---|
date | Mon, 06 Jan 2003 18:16:18 +0000 |
parents | 5eece4dfd945 |
children | 994e9ab2c24f |
line wrap: on
line diff
--- a/src/database.c Fri Dec 27 21:48:25 2002 +0000 +++ b/src/database.c Mon Jan 06 18:16:18 2003 +0000 @@ -1,7 +1,7 @@ /* database.c - $Id: database.c 413 2002-12-27 21:48:25Z bears $ + $Id: database.c 414 2003-01-06 18:16:18Z bears $ Uses GNU gdbm library. Using Berkeley db (included in libc6) was cumbersome. It is based on Berkeley db 1.85, which has severe bugs @@ -275,6 +275,8 @@ /* Read header */ while ( ( artTxt = Utl_getHeaderLn( lineEx, artTxt ) ) != NULL ) { + Bool continuation; + if ( lineEx[ 0 ] == '\0' ) { DynStr_appLn( db.txt, lineEx ); @@ -282,7 +284,7 @@ } /* Remove fields already in overview and handle x-noffle headers correctly in case of cascading NOFFLEs */ - if ( Prt_getField( field, value, lineEx ) ) + if ( Prt_getField( field, value, &continuation, lineEx ) ) { if ( strcmp( field, "x-noffle-status" ) == 0 ) {