Skip to content

Commit a71f0c8

Browse files
committed
mail: Split into message and profile
1 parent a88b64d commit a71f0c8

20 files changed

+458
-435
lines changed

openemail/app/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
from gi.events import GLibEventLoopPolicy
1515
from gi.repository import Adw, Gio
1616

17+
from openemail.core import client
1718
from openemail.core.crypto import KeyPair
1819
from openemail.core.model import Address
1920
from openemail.widgets.preferences import Preferences
2021
from openemail.widgets.window import Window
2122

22-
from . import APP_ID, PREFIX, mail
23+
from . import APP_ID, PREFIX
2324
from .store import log_file, secret_service, settings
2425

2526

@@ -66,9 +67,9 @@ def __init__(self) -> None:
6667
return
6768

6869
try:
69-
mail.user.address = Address(address)
70-
mail.user.encryption_keys = KeyPair.from_b64(encryption_key)
71-
mail.user.signing_keys = KeyPair.from_b64(signing_key)
70+
client.user.address = Address(address)
71+
client.user.encryption_keys = KeyPair.from_b64(encryption_key)
72+
client.user.signing_keys = KeyPair.from_b64(signing_key)
7273
except ValueError:
7374
return
7475

0 commit comments

Comments
 (0)