/* Constants:
* PG_SEL_MAX: default value for page_selector_max
- * SUBJ_TRIM_AT: the length at which we trim off subjects
*/
define('PG_SEL_MAX', 10);
-define('SUBJ_TRIM_AT', 50);
function elapsed($start)
{
return _("(no subject)");
}
- $trim_at = SUBJ_TRIM_AT;
+ global $truncate_subject; /* number of characters for Subject field (<= 0 for unchanged) */
+ $trim_at = $truncate_subject;
/* if this is threaded, subtract two chars per indentlevel */
if (($threadlevel > 0) && ($threadlevel <= 10))
'size' => SMOPT_SIZE_TINY
);
+ $optvals[SMOPT_GRP_MAILBOX][] = array(
+ 'name' => 'truncate_subject',
+ 'caption' => _("Length of Subject Field (0 for full)"),
+ 'type' => SMOPT_TYPE_INTEGER,
+ 'refresh' => SMOPT_REFRESH_NONE,
+ 'size' => SMOPT_SIZE_TINY
+ );
+
/*** Load the General Options into the array ***/
$optgrps[SMOPT_GRP_MESSAGE] = _("Message Display and Composition");