summaryrefslogtreecommitdiff
path: root/src/leap/mx/alias_resolver.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/mx/alias_resolver.py')
-rw-r--r--src/leap/mx/alias_resolver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/mx/alias_resolver.py b/src/leap/mx/alias_resolver.py
index 8155ff9..3f93f0d 100644
--- a/src/leap/mx/alias_resolver.py
+++ b/src/leap/mx/alias_resolver.py
@@ -53,6 +53,10 @@ class AliasResolverFactory(postfix.PostfixTCPMapDeferringDictServerFactory):
orig_key = key
try:
logger.debug("Processing key: %s" % (key,))
+ if key.find("@") == -1:
+ logger.debug("Ignoring key since it's not an email address")
+ return None
+
key = key.split("@")[0]
key = key.split("+")[0]
logger.debug("Final key to query: %s" % (key,))