Bug 437139 - Change default reply positioning to "above the quote" for new mail accounts. r+ui-r=bwinton
authorrsx11m <rsx11m.pub@gmail.com>
Mon, 03 Jun 2013 14:20:36 -0500
changeset 15741 2d706a754e0aa3b4a3e6ca870a845d3ccdc697b6
parent 15740 15d9ff695542a9ea0a843a73a6e5ab607602c22d
child 15742 23f007e3461dc1ecf1e085266970ea78ef61f3d0
push idunknown
push userunknown
push dateunknown
bugs437139
Bug 437139 - Change default reply positioning to "above the quote" for new mail accounts. r+ui-r=bwinton
mailnews/base/prefs/content/accountcreation/createInBackend.js
--- a/mailnews/base/prefs/content/accountcreation/createInBackend.js
+++ b/mailnews/base/prefs/content/accountcreation/createInBackend.js
@@ -120,16 +120,25 @@ function createAccountInBackend(config)
       MailServices.smtp.defaultServer = outServer;
   }
 
   // identity
   // TODO accounts without identity?
   let identity = MailServices.accounts.createIdentity();
   identity.fullName = config.identity.realname;
   identity.email = config.identity.emailAddress;
+
+  // for new accounts, default to replies being positioned above the quote
+  if (config.incoming.type == "imap" || config.incoming.type == "pop3")
+  {
+    identity.replyOnTop = 1;
+    // identity.sigBottom = false; // don't set this until Bug 218346 is fixed
+  }
+
+  // due to accepted conventions, news accounts should default to plain text
   if (config.incoming.type == "nntp")
     identity.composeHtml = false;
 
   identity.valid = true;
 
   if (config.outgoing.existingServerKey)
     identity.smtpServerKey = config.outgoing.existingServerKey;
   else if (!config.outgoing.useGlobalPreferredServer)