- var $hdecode = array('from','name','organization','subject');
- var $parse_hdr = array('content-disposition', 'content-transfer-encoding', 'content-type', 'date', 'followup-to', 'from',
- 'message-id', 'newsgroups', 'organization', 'references', 'subject', 'x-face');
- var $show_hdr = array('from', 'subject', 'newsgroups', 'followup', 'date', 'organization', 'references', 'x-face');
+#######
+# Configuration variables
+#######
+
+### General ###
+ static public $profile = Array( 'signature' => '',
+ 'headers' => array('From' => 'Anonymous <anonymouse@example.com>'),
+ 'display' => 0,
+ 'lastnews' => 0,
+ 'locale' => 'fr_FR',
+ 'subscribe' => array(),
+ 'autoup' => 1);
+ static public $boxpattern;
+
+### Spool ###
+ static public $spool_max = 3000;
+ static public $spool_tbefore = 5;
+ static public $spool_tafter = 5;
+ static public $spool_tmax = 50;
+
+### Message processing ###
+ static public $msgparse_headers = array('content-disposition', 'content-transfer-encoding',
+ 'content-type', 'content-id', 'date', 'followup-to',
+ 'from', 'message-id', 'newsgroups', 'organization',
+ 'references', 'subject', 'x-face', 'in-reply-to',
+ 'to', 'cc', 'reply-to');
+
+### Message display ###
+ static public $msgshow_headers = array('from', 'newsgroups', 'followup-to', 'to', 'cc', 'reply-to',
+ 'organization', 'date', 'references', 'in-reply-to');
+ static public $msgshow_mimeparts = array('multipart/report', 'multipart/mixed', 'text/html', 'text/plain', 'text/enriched', 'text', 'message');
+ static public $msgshow_xface = true;
+ static public $msgshow_wrap = 78;
+
+ /** Match an url
+ * Should be included in a regexp delimited using /, !, , or @ (eg: "/$url_regexp/ui")
+ * If it matches, return 3 main parts :
+ * \\1 and \\3 are delimiters
+ * \\2 is the url
+ *
+ * eg : preg_match("!$url_regexp!i", "[http://www.polytechnique.org]", $matches);
+ * $matches[1] = "["
+ * $matches[2] = "http://www.polytechnique.org"
+ * $matches[3] = "]"
+ */
+ static public $msgshow_url = '(["\[])?((?:[a-z]+:\/\/|www\.)(?:[\.\,\;\!]*[a-z\@0-9~%$£µ&i#\-+=_\/\?]+)+)(["\]])?';