1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8function prefs_messu_list()
9{
10	return [
11		'messu_mailbox_size' => [
12			'name' => tra('Maximum mailbox size'),
13			'description' => tra('Maximum number of messages allowed in the mailbox.'),
14			'type' => 'text',
15			'size' => '10',
16			'hint' => tr('0 for unlimited'),
17			'filter' => 'digits',
18			'units' => tra('messages'),
19			'dependencies' => [
20				'feature_messages',
21			],
22			'default' => '0',
23		],
24		'messu_archive_size' => [
25			'name' => tra('Maximum mail archive size'),
26			'description' => tra('Maximum number of archive messages allowed.'),
27			'type' => 'text',
28			'size' => '10',
29			'hint' => tr('0 for unlimited'),
30			'filter' => 'digits',
31			'units' => tra('messages'),
32			'dependencies' => [
33				'feature_messages',
34			],
35			'default' => '200',
36		],
37		'messu_sent_size' => [
38			'name' => tra('Maximum sent box size'),
39			'description' => tra('Maximum number of sent messages allowed in the mailbox.'),
40			'type' => 'text',
41			'size' => '10',
42			'hint' => tr('0 for unlimited'),
43			'filter' => 'digits',
44			'units' => tra('messages'),
45			'dependencies' => [
46				'feature_messages',
47			],
48			'default' => '200',
49		],
50		'messu_truncate_internal_message' => [
51			'name' => tra('Truncate internal message notification'),
52			'description' => tra('Number of characters to show in the message notification sent through email, with a link to read the full internal message.'),
53			'type' => 'text',
54			'size' => '10',
55			'filter' => 'digits',
56			'units' => tra('characters'),
57			'dependencies' => [
58				'feature_messages',
59			],
60			'default' => '2500',
61		],
62	];
63}
64