[Commits] (bkirsch) Fixes bug 2501

commits at osafoundation.org commits at osafoundation.org
Thu Feb 17 16:13:07 PST 2005


Commit by: bkirsch
Modified files:
chandler/application/dialogs/AccountPreferences.py 1.32 1.33

Log message:
Fixes bug 2501

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/dialogs/AccountPreferences.py.diff?r1=text&tr1=1.32&r2=text&tr2=1.33

Index: chandler/application/dialogs/AccountPreferences.py
diff -u chandler/application/dialogs/AccountPreferences.py:1.32 chandler/application/dialogs/AccountPreferences.py:1.33
--- chandler/application/dialogs/AccountPreferences.py:1.32	Wed Feb 16 09:17:47 2005
+++ chandler/application/dialogs/AccountPreferences.py	Thu Feb 17 16:13:05 2005
@@ -117,7 +117,7 @@
             "SMTP_USE_SSL" : {
                 "attr" : "useSSL",
                 "type" : "boolean",
-                "linkedTo" : ("SMTP_PORT", { True:"465", False:"25" } )
+                "linkedTo" : ("SMTP_PORT", { True:"25", False:"25" } )
             },
             "SMTP_USE_AUTH" : {
                 "attr" : "useAuth",
@@ -355,6 +355,17 @@
                     item = Mail.IMAPAccount(view=self.view)
                 elif account['type'] == "SMTP":
                     item = Mail.SMTPAccount(view=self.view)
+
+                    #XXX: Temp change that checks if no SMTP Account currently
+                    #     exists and makes the new account the defaultSMTPAccount
+                    #     for the default IMAP ccount
+
+                    if Mail.MailParcel.getSMTPAccount(view=self.view)[0] is None:
+                        imapAccount = Mail.MailParcel.getIMAPAccount(view=self.view)
+
+                        if imapAccount is not None:
+                            imapAccount.defaultSMTPAccount = item
+
                 elif account['type'] == "WebDAV":
                     item = Sharing.WebDAVAccount(view=self.view)
 



More information about the Commits mailing list