summaryrefslogtreecommitdiff
path: root/leap/mx/alias_resolver.py
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-01-23 19:26:56 +0000
committerIsis Lovecruft <isis@torproject.org>2013-01-23 19:26:56 +0000
commite28d5bf452b025357ae23f87ec34b8ae6897e1fd (patch)
treeb6865b6c76853d3ba11d1633c5feb91a381897bd /leap/mx/alias_resolver.py
parent6af8264dfbcaf88be2fb19928f5c5b8f0f78d7cc (diff)
Updated NOTES, which contains ticket updates and tickets which need to be
created, due to network availability being unreliable on airports and in planes.
Diffstat (limited to 'leap/mx/alias_resolver.py')
-rw-r--r--leap/mx/alias_resolver.py13
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"