Use explicit serialization (revert r291).
[banana.git] / banana / banana.inc.php.in
index 3ca5da6..1ebd1ea 100644 (file)
@@ -33,8 +33,8 @@ class Banana
     static public $spool_root    = '/var/spool/banana';
     static public $spool_max     = 3000;
     static public $spool_tbefore = 5;
-    static public $spool_tafter  = 5;
-    static public $spool_tmax    = 50;
+    static public $spool_tcontext= 10;
+    static public $spool_tmax    = 10;
     static public $spool_boxlist = true;
 
 ### Message processing ###
@@ -46,7 +46,7 @@ class Banana
 
 ### Message display ###
     static public $msgshow_headers   = array('from', 'newsgroups', 'followup-to', 'to', 'cc', 'reply-to',
-                                       'organization', 'date', 'references', 'in-reply-to');
+                                             'organization', 'date');
     static public $msgshow_mimeparts = array('multipart/report', 'multipart/mixed',
                                              'text/html', 'text/plain', 'text/enriched', 'text', 'message');
     static public $msgshow_xface     = true;
@@ -681,6 +681,7 @@ class Banana
             if (php_sapi_name() != 'cli') {
                 if ($group == @$_SESSION['banana_group'] && isset($_SESSION['banana_spool'])) {
                     Banana::$spool = unserialize($_SESSION['banana_spool']);
+                    unset($_SESSION['banana_spool']);
                     $clean = @(Banana::$profile['lastnews'] != $_SESSION['banana_lastnews']);
                 } else {
                     unset($_SESSION['banana_message']);
@@ -736,7 +737,7 @@ class Banana
         return true;
     }
 
-    static private function load($file)
+    static public function load($file)
     {
         $file = strtolower($file) . '.inc.php';
         if (!@include_once dirname(__FILE__) . "/$file") {