from mailpile.config.base import PublicConfigRule as p from mailpile.config.base import KeyConfigRule as k _ = lambda string: string 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', ''),
from mailpile.config.base import PathDict from mailpile.config.base import ConfigRule as c from mailpile.config.base import CriticalConfigRule as X from mailpile.config.base import PublicConfigRule as p from mailpile.config.base import KeyConfigRule as k _ = lambda string: string 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), '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), '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, 250), 'debug': p(_('Debugging flags'), str, ''), 'experiments': (_('Enabled experiments'), str, ''), 'gpg_keyserver': (_('Host:port of PGP keyserver'), str, 'pool.sks-keyservers.net'),