mirror of
https://github.com/chatmail/relay.git
synced 2026-05-17 13:28:57 +00:00
some fixes but still not quite running through
This commit is contained in:
@@ -58,6 +58,7 @@ def gencreds(maildomain):
|
|||||||
num = next(count)
|
num = next(count)
|
||||||
alphanumeric = "abcdefghijklmnopqrstuvwxyz1234567890"
|
alphanumeric = "abcdefghijklmnopqrstuvwxyz1234567890"
|
||||||
user = "".join(random.choices(alphanumeric, k=10))
|
user = "".join(random.choices(alphanumeric, k=10))
|
||||||
|
user = f"ac{num}_{user}"
|
||||||
password = "".join(random.choices(alphanumeric, k=10))
|
password = "".join(random.choices(alphanumeric, k=10))
|
||||||
yield f"{user}@{maildomain}", f"{password}"
|
yield f"{user}@{maildomain}", f"{password}"
|
||||||
|
|
||||||
@@ -82,7 +83,10 @@ class ChatmailTestProcess:
|
|||||||
def get_liveconfig_producer(self):
|
def get_liveconfig_producer(self):
|
||||||
while 1:
|
while 1:
|
||||||
user, password = self.gencreds()
|
user, password = self.gencreds()
|
||||||
config = {"addr": user, "mail_pw": password}
|
config = {"addr": user, "mail_pw": password, }
|
||||||
|
# speed up account configuration
|
||||||
|
config["mail_server"] = self.maildomain
|
||||||
|
config["send_server"] = self.maildomain
|
||||||
yield config
|
yield config
|
||||||
|
|
||||||
def cache_maybe_retrieve_configured_db_files(self, cache_addr, db_target_path):
|
def cache_maybe_retrieve_configured_db_files(self, cache_addr, db_target_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user