aboutsummaryrefslogtreecommitdiff
path: root/ayatanawebmail/application.py
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-08-22 20:19:03 +0200
committerRobert Tari <robert@tari.in>2020-08-22 20:19:03 +0200
commitef27a57e0d507c5be37b0e065b5a729670552bdb (patch)
tree6482cf378de8dd4f0ada90add62ca1674f1f90cd /ayatanawebmail/application.py
parenteb462c2b52cbcad84f27340d69c3ce5ddd811f65 (diff)
downloadayatana-webmail-ef27a57e0d507c5be37b0e065b5a729670552bdb.tar.gz
ayatana-webmail-ef27a57e0d507c5be37b0e065b5a729670552bdb.tar.bz2
ayatana-webmail-ef27a57e0d507c5be37b0e065b5a729670552bdb.zip
Use server configuration templates + set minimum folder list height
Diffstat (limited to 'ayatanawebmail/application.py')
-rwxr-xr-xayatanawebmail/application.py34
1 files changed, 6 insertions, 28 deletions
diff --git a/ayatanawebmail/application.py b/ayatanawebmail/application.py
index f8c41a6..ebb83b7 100755
--- a/ayatanawebmail/application.py
+++ b/ayatanawebmail/application.py
@@ -33,7 +33,7 @@ from gi.repository import Gio, GLib, Gtk, Notify
from socket import error as socketerror
from dbus.mainloop.glib import DBusGMainLoop
from babel.dates import format_timedelta
-from ayatanawebmail.common import g_oTranslation, g_oSettings, openURLOrCommand, g_lstAccounts, g_dctDefaultURLs
+from ayatanawebmail.common import g_oTranslation, g_oSettings, openURLOrCommand, g_lstAccounts
from ayatanawebmail.idler import Idler
from ayatanawebmail.dialog import PreferencesDialog, MESSAGEACTION
from ayatanawebmail.actions import DialogActions
@@ -727,33 +727,11 @@ class AyatanaWebmail(object):
strLogin = dctAttributes['username']
strPasswd = key.get_secret().decode('utf-8')
strFolders = dctAttributes['folders']
- strHome = g_oSettings.get_string('home')
- strCompose = g_oSettings.get_string('compose')
- strInbox = g_oSettings.get_string('inbox')
- strSent = g_oSettings.get_string('sent')
- strInboxAppend = ''
-
- try:
-
- strHome = dctAttributes['home']
- strCompose = dctAttributes['compose']
- strInbox = dctAttributes['inbox']
- strSent = dctAttributes['sent']
-
- except KeyError:
-
- pass
-
- try:
-
- strInboxAppend = dctAttributes['InboxAppend']
-
- except KeyError:
-
- if strInbox == g_dctDefaultURLs['Inbox']:
- strInboxAppend = '/$MSG_THREAD'
-
- pass
+ strHome = dctAttributes['home']
+ strCompose = dctAttributes['compose']
+ strInbox = dctAttributes['inbox']
+ strSent = dctAttributes['sent']
+ strInboxAppend = dctAttributes['InboxAppend']
g_lstAccounts.append({'Host': strHost, 'Port': nPort, 'Login': strLogin, 'Passwd': strPasswd, 'Folders': strFolders, 'Home': strHome, 'Compose': strCompose, 'Inbox': strInbox, 'Sent': strSent, 'InboxAppend': strInboxAppend})