static public $spool_tbefore = 5;
static public $spool_tafter = 5;
static public $spool_tmax = 50;
+ static public $spool_boxlist = true;
### Message processing ###
static public $msgparse_headers = array('content-disposition', 'content-transfer-encoding',
* $matches[2] = "http://www.polytechnique.org"
* $matches[3] = "]"
*/
- static public $msgshow_url = '(["\[])?((?:[a-z]+:\/\/|www\.)(?:[\.\,\;\!]*[a-z\@0-9~%$£µ&i#\-+=_\/\?]+)+)(["\]])?';
+ static public $msgshow_url = '(["\[])?((?:[a-z]+:\/\/|www\.)(?:[\.\,\;\!]*[a-z\@0-9~%$£µ&i#\-+=_\/\?]+)+)(["\]])?';
### Message edition ###
static public $msgedit_canattach = true;
if (!$this->loadSpool($group)) {
return _b_('Impossible charger la liste des messages de ') . $group;
}
- $groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true);
+ if (Banana::$spool_boxlist) {
+ $groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true);
+ Banana::$page->assign('groups', $groups);
+ }
Banana::$page->assign('msgbypage', Banana::$spool_tmax);
- Banana::$page->assign('groups', $groups);
return true;
}
if (Banana::$profile['autoup']) {
Banana::$spool->markAsRead($artid);
}
- $groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true);
- Banana::$page->assign('groups', $groups);
+ if (Banana::$spool_boxlist) {
+ $groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true);
+ Banana::$page->assign('groups', $groups);
+ }
Banana::$page->assign_by_ref('message', $msg);
Banana::$page->assign('headers', Banana::$msgshow_headers);
return true;
{
Banana::load('spool');
if (!Banana::$spool || Banana::$spool->group != $group) {
+ $clean = false;
if ($group == @$_SESSION['banana_group'] && isset($_SESSION['banana_spool'])) {
Banana::$spool = unserialize($_SESSION['banana_spool']);
$clean = @(Banana::$profile['lastnews'] != $_SESSION['banana_lastnews']);
$this->assign('profile', Banana::$profile);
$this->assign('spool', Banana::$spool);
$this->assign('protocole', Banana::$protocole);
+ $this->assign('showboxlist', Banana::$spool_boxlist);
$this->register_function('url', array($this, 'makeUrl'));
$this->register_function('link', array($this, 'makeLink'));