From 79081b2dafcfe2f48c2035e526000b4ba8f54f8a Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 27 Feb 2022 02:07:05 +0100 Subject: Hardcode server list --- ayatanawebmail/dialog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ayatanawebmail') diff --git a/ayatanawebmail/dialog.py b/ayatanawebmail/dialog.py index 88ee177..3df1adf 100755 --- a/ayatanawebmail/dialog.py +++ b/ayatanawebmail/dialog.py @@ -14,6 +14,7 @@ from ayatanawebmail.appdata import APPVERSION, APPURL, APPDESCRIPTION, APPAUTHOR import webbrowser MESSAGEACTION = {'OPEN': 1, 'MARK': 2, 'ASK': 3} +SERVERS = [_('Custom') + '\timap.example.com\t993\thttps://mail.example.com\thttps://mail.example.com/compose\thttps://mail.example.com/sent\thttps://mail.example.com/inbox\t/$MSG_UID', 'Google\timap.gmail.com\t993\thttps://mail.google.com/mail/\thttps://mail.google.com/mail/#compose\thttps://mail.google.com/mail/#sent\thttps://mail.google.com/mail/#inbox\t/$MSG_THREAD', 'RoundCube\tmail.example.com\t993\thttps://mail.example.com/?_task=mail&_mbox=INBOX\thttps://mail.example.com/?_task=mail&_action=compose\thttps://mail.example.com/?_task=mail&_mbox=Sent\thttps://mail.example.com/?_task=mail&_mbox=INBOX\t&_uid=$MSG_UID'] def utf7dec(lstInput): @@ -224,15 +225,13 @@ class PreferencesDialog(Gtk.Dialog): self.nMessageAction = g_oSettings.get_enum('message-action') self.lServers = [] - for sServer in g_oSettings.get_strv('servers'): + for sServer in SERVERS: lValues = sServer.split('\t') lValues.append('\t'.join(lValues[1:])) dServer = dict(zip(['name', 'host', 'port', 'home', 'compose', 'sent', 'inbox', 'message', 'raw'], lValues)) self.lServers.append(dServer) - self.lServers[0]['name'] = _('Custom') - def pageAccounts(self): self.sb = Gtk.SpinButton.new_with_range(1, 1, 1) -- cgit v1.2.3