diff options
author | Kali Kaneko <kali@leap.se> | 2014-01-11 23:10:09 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-01-11 23:36:29 -0400 |
commit | a1db341a39ec336ab62e89280f9bfb315420bfb5 (patch) | |
tree | fecbf3cb3db336bec67bd86c5235e894b9b9bb68 /src/leap/bitmask/util/__init__.py | |
parent | cbdda58f1e5f74f37489f3b4b67616bd19d6715d (diff) |
offline mode
This will skip:
* srp authentication with server
* remote soledad configuration
* keymanager sending key to server
* imap fetches.
Its main goal is to help us while debugging imap accounts, by cutting
almost all communication with server.
It will break havoc if you use it without having local keys configured.
So, basically, use with care.
Diffstat (limited to 'src/leap/bitmask/util/__init__.py')
-rw-r--r-- | src/leap/bitmask/util/__init__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/leap/bitmask/util/__init__.py b/src/leap/bitmask/util/__init__.py index b58e6e3b..85676d51 100644 --- a/src/leap/bitmask/util/__init__.py +++ b/src/leap/bitmask/util/__init__.py @@ -76,3 +76,16 @@ def is_empty_file(path): Returns True if the file at path is empty. """ return os.stat(path).st_size is 0 + + +def make_address(user, provider): + """ + Return a full identifier for an user, as a email-like + identifier. + + :param user: the username + :type user: basestring + :param provider: the provider domain + :type provider: basestring + """ + return "%s@%s" % (user, provider) |