fix setting of mru time for folders when msgs copied into them, and bad operator precedence for listing acl for non-namespaces, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-02-23 04:10:26 +00:00
Родитель cf5898539b
Коммит 0126530f90
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -6774,7 +6774,7 @@ nsImapMailFolder::CopyMessages(nsIMsgFolder* srcFolder,
nsCOMPtr<nsISupports> srcSupport;
nsCOMPtr<nsISupports> 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;