--- a/server/python/junius/bootstrap.py
+++ b/server/python/junius/bootstrap.py
@@ -19,17 +19,17 @@ def setup_account(dbs):
# example:
# mail.example.com,993,bob@example.com,sekret,True
import os, os.path
configPath = os.path.join(os.environ['HOME'], ".junius")
f = open(configPath, 'r')
data = f.read()
f.close()
host, portstr, username, password, sslstr = data.split(',')
- ssl = not (sslstr.lower() in ['false', 'f', 'no', '0'])
+ ssl = not (sslstr.strip().lower() in ['false', 'f', 'no', '0'])
account = model.Account(
kind='imap', host=host, port=int(portstr), ssl=ssl,
username=username, password=password,
)
account.store(dbs.accounts)
def path_part_nuke(path, count):