diff options
Diffstat (limited to 'leap')
-rw-r--r-- | leap/mx/alias_resolver.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/leap/mx/alias_resolver.py b/leap/mx/alias_resolver.py index 2263de5..1ffeb5a 100644 --- a/leap/mx/alias_resolver.py +++ b/leap/mx/alias_resolver.py @@ -7,17 +7,17 @@ Classes for resolving postfix aliases. @authors: Isis Agora Lovecruft @version: 0.0.1-beta -@license: WTFPL see included LICENSE file +@license: see included LICENSE file @copyright: copyright 2013 Isis Agora Lovecruft ''' import os from twisted.internet import address -from twisted.mail import maildir +from twisted.mail import maildir, alias from twisted.protocols import postfix -from leap.mx import net, log +from leap.mx import net, log ## xxx implement log def checkIPaddress(addr): @@ -39,6 +39,10 @@ def checkIPaddress(addr): else: return True +def query_couch(file_desc): + if not os.path.isfile (file_desc): + + class PostfixAliasResolver(postfix.PostfixTCPMapServer): """ Resolve postfix aliases, similarly to using "$ postmap -q <alias>". @@ -89,7 +93,8 @@ class PostfixAliasResolverFactory(postfix.PostfixTCPMapDeferringDictServerFactor super(postfix.PostfixTCPMapDeferringDictServerFactory, self).__init__(data=data) self.timeout = timeout - self.noisy = False ## xxx get config value + ## xxx get config value, should be something like verbose = no + self.noisy = False try: assert isinstance(port, int), "Port number must be an integer" |