Ejemplo n.º 1
0
 p(
     _('Technical system settings'), False, {
         'fd_cache_size':
         p(_('Max files kept open at once'), int, 500),
         'minfree_mb':
         p(_('Required free disk space (MB)'), int, 1024),
         'history_length':
         (_('History length (lines, <0=no save)'), int, 100),
         'http_host':
         p(_('Listening host for web UI'), 'hostname', 'localhost'),
         'http_port':
         p(_('Listening port for web UI'), int, 33411),
         'http_path':
         p(_('HTTP path of web UI'), 'webroot', ''),
         'http_no_auth':
         X(_('Disable HTTP authentication'), bool, False),
         'ajax_timeout': (_('AJAX Request timeout'), int, 10000),
         'postinglist_kb': (_('Posting list target size in KB'), int, 64),
         'sort_max': (_('Max results we sort "well"'), int, 2500),
         'snippet_max': (_('Max length of metadata snippets'), int, 275),
         'debug':
         p(_('Debugging flags'), str, ''),
         'experiments': (_('Enabled experiments'), str, ''),
         'gpg_keyserver':
         (_('Host:port of PGP keyserver'), str, 'pool.sks-keyservers.net'),
         'gpg_home':
         p(_('Override the home directory of GnuPG'), 'dir', None),
         'gpg_binary':
         p(_('Override the default GPG binary path'), 'file', None),
         'local_mailbox_id': (_('Local read/write Maildir'), 'b36', ''),
         'mailindex_file': (_('Metadata index file'), 'file', ''),
Ejemplo n.º 2
0
DEFAULT_SENDMAIL = '|/usr/sbin/sendmail -i %(rcpt)s'
CONFIG_PLUGINS = []
CONFIG_RULES = {
    'version': p(_('Mailpile program version'), str, APPVER),
    'homedir': p(_('Location of Mailpile data'), False, '(unset)'),
    'timestamp': [_('Configuration timestamp'), int, int(time.time())],
    'master_key': k(_('Master symmetric encryption key'), str, ''),
    'sys': p(_('Technical system settings'), False, {
        'fd_cache_size': p(_('Max files kept open at once'), int,         500),
        'minfree_mb':    p(_('Required free disk space (MB)'), int,      1024),
        'history_length': (_('History length (lines, <0=no save)'), int,  100),
        'http_host':     p(_('Listening host for web UI'),
                           'hostname', 'localhost'),
        'http_port':     p(_('Listening port for web UI'), int,         33411),
        'http_path':     p(_('HTTP path of web UI'), 'webroot',            ''),
        'http_no_auth':  X(_('Disable HTTP authentication'),      bool, False),
        'ajax_timeout':   (_('AJAX Request timeout'), int,              10000),
        'postinglist_kb': (_('Posting list target size in KB'), int,       64),
        'sort_max':       (_('Max results we sort "well"'), int,         2500),
        'snippet_max':    (_('Max length of metadata snippets'), int,     275),
        'debug':         p(_('Debugging flags'), str,                      ''),
        'experiments':    (_('Enabled experiments'), str,                  ''),
        'gpg_keyserver':  (_('Host:port of PGP keyserver'),
                           str, 'pool.sks-keyservers.net'),
        'gpg_home':      p(_('Override the home directory of GnuPG'),
                           'dir', None),
        'gpg_binary':    p(_('Override the default GPG binary path'),
                           'file', None),
        'local_mailbox_id': (_('Local read/write Maildir'), 'b36',         ''),
        'mailindex_file':   (_('Metadata index file'), 'file',             ''),
        'postinglist_dir': (_('Search index directory'), 'dir',            ''),