From 0126530f900d5d7ac09f3fe050b0c2d58c17ecab Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Thu, 23 Feb 2006 04:10:26 +0000 Subject: [PATCH] fix setting of mru time for folders when msgs copied into them, and bad operator precedence for listing acl for non-namespaces, sr=mscott --- mailnews/imap/src/nsImapMailFolder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp index 28b208be10e..fa53bf93eec 100644 --- a/mailnews/imap/src/nsImapMailFolder.cpp +++ b/mailnews/imap/src/nsImapMailFolder.cpp @@ -6774,7 +6774,7 @@ nsImapMailFolder::CopyMessages(nsIMsgFolder* srcFolder, nsCOMPtr srcSupport; nsCOMPtr copySupport; - if (!(mFlags & MSG_FOLDER_FLAG_TRASH|MSG_FOLDER_FLAG_JUNK)) + if (!(mFlags & (MSG_FOLDER_FLAG_TRASH|MSG_FOLDER_FLAG_JUNK))) SetMRUTime(); if (WeAreOffline()) @@ -7626,7 +7626,7 @@ NS_IMETHODIMP nsImapMailFolder::GetFolderNeedsACLListed(PRBool *bVal) PRBool dontNeedACLListed = !m_folderNeedsACLListed; // if we haven't acl listed, and it's not a no select folder or the inbox, // then we'll list the acl if it's not a namespace. - if (m_folderNeedsACLListed && !(mFlags & MSG_FOLDER_FLAG_IMAP_NOSELECT | MSG_FOLDER_FLAG_INBOX)) + if (m_folderNeedsACLListed && !(mFlags & (MSG_FOLDER_FLAG_IMAP_NOSELECT | MSG_FOLDER_FLAG_INBOX))) GetIsNamespace(&dontNeedACLListed); *bVal = !dontNeedACLListed;