from mailpile.config import ConfigRule as c from mailpile.config import CriticalConfigRule as X from mailpile.config import PublicConfigRule as p from mailpile.config import KeyConfigRule as k _ = lambda string: string DEFAULT_SENDMAIL = '|/usr/sbin/sendmail -i %(rcpt)s' CONFIG_PLUGINS = [] CONFIG_RULES = { 'version': [_('Mailpile program version'), False, APPVER], 'homedir': [_('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': (_('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', ''), '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, ''), 'gpg_keyserver': (_('Host:port of PGP keyserver'), str, 'pool.sks-keyservers.net'), 'gpg_home': p(_('Override the home directory of GnuPG'), 'dir', None),
from mailpile.config import PathDict from mailpile.config import ConfigRule as c from mailpile.config import CriticalConfigRule as X from mailpile.config import PublicConfigRule as p from mailpile.config 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, ""), "gpg_keyserver": (_("Host:port of PGP keyserver"), str, "pool.sks-keyservers.net"),
from mailpile.config import ConfigRule as c from mailpile.config import CriticalConfigRule as X from mailpile.config import PublicConfigRule as p from mailpile.config import KeyConfigRule as k _ = lambda string: string DEFAULT_SENDMAIL = '|/usr/sbin/sendmail -i %(rcpt)s' CONFIG_PLUGINS = [] CONFIG_RULES = { 'version': [_('Mailpile program version'), False, APPVER], 'homedir': [_('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': (_('Max files kept open at once'), int, 500), 'history_length': (_('History length (lines, <0=no save)'), int, 100), 'http_port': p(_('Listening port for web UI'), int, 33411), '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, ''), 'gpg_keyserver': (_('Host:port of PGP keyserver'), str, 'pool.sks-keyservers.net'),