diff src/database.c @ 127:3c71e28c8eef noffle

[svn] Release-1-0 mergedocs/NOTES
author bears
date Tue, 25 Jul 2000 13:14:54 +0100
parents 2bedacfe1ba7
children 39838e7d38be
line wrap: on
line diff
--- a/src/database.c	Tue Jul 25 13:12:50 2000 +0100
+++ b/src/database.c	Tue Jul 25 13:14:54 2000 +0100
@@ -1,7 +1,7 @@
 /*
   database.c
 
-  $Id: database.c 149 2000-06-19 21:56:12Z bears $
+  $Id: database.c 183 2000-07-25 12:14:54Z 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
@@ -515,6 +515,15 @@
     return db.date;
 }
 
+Over *
+Db_over( const char *msgId )
+{
+    if ( ! loadArt( msgId ) )
+	return NULL;
+    return new_Over( db.subj, db.from, db.date, msgId,
+		     db.ref, db.bytes, db.lines );
+}
+
 Bool
 Db_contains( const char *msgId )
 {