From fe6e668074ded7961a79b92209060147ccfd5f68 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 9 Feb 2007 02:41:41 +0000 Subject: [PATCH] Bug #369804 --> getBestIdentity doesn't work for saved search folders. sr=bienvenu --- mail/base/content/mailCommands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mail/base/content/mailCommands.js b/mail/base/content/mailCommands.js index 08a4a278117..313f90bc705 100644 --- a/mail/base/content/mailCommands.js +++ b/mail/base/content/mailCommands.js @@ -252,6 +252,10 @@ function ComposeMessage(type, format, folder, messageArray) // If we treat reply from sent specially, do we check for that folder flag here ? var hintForIdentity = (type == msgComposeType.Template) ? hdr.author : hdr.recipients + hdr.ccList; var customIdentity = null; + + // override the passed in folder (which could very well be a saved search folder, and use + // the underlying folder for the particular message. + folder = hdr.folder; if (folder) { server = folder.server;