mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
add more logging for bug 275836, failure to copy multiple messages from imap to local folders, sr=mscott
This commit is contained in:
parent
5fcd423ce1
commit
22c95cfca3
@ -946,7 +946,6 @@ NS_IMETHODIMP nsImapProtocol::Run()
|
||||
me->m_runningUrl = nsnull;
|
||||
CloseStreams();
|
||||
me->m_sinkEventQueue = nsnull;
|
||||
me->m_server = nsnull;
|
||||
me->m_imapMailFolderSink = nsnull;
|
||||
me->m_imapMessageSink = nsnull;
|
||||
m_iThread = nsnull;
|
||||
@ -979,6 +978,7 @@ void nsImapProtocol::CloseStreams()
|
||||
}
|
||||
m_channelInputStream = nsnull;
|
||||
m_channelOutputStream = nsnull;
|
||||
m_server = nsnull;
|
||||
}
|
||||
|
||||
|
||||
@ -1874,6 +1874,8 @@ void nsImapProtocol::ProcessSelectedStateURL()
|
||||
m_runningUrl->GetMsgFlags(&msgFlags);
|
||||
|
||||
res = CreateServerSourceFolderPathString(getter_Copies(mailboxName));
|
||||
if (NS_FAILED(res))
|
||||
Log("ProcessSelectedStateURL", nsnull, "error getting source folder path string");
|
||||
|
||||
if (NS_SUCCEEDED(res) && !DeathSignalReceived())
|
||||
{
|
||||
@ -1946,11 +1948,14 @@ void nsImapProtocol::ProcessSelectedStateURL()
|
||||
|
||||
}
|
||||
|
||||
if (!uidValidityOk)
|
||||
Log("ProcessSelectedStateURL", nsnull, "uid validity not ok");
|
||||
if (GetServerStateParser().LastCommandSuccessful() && !DeathSignalReceived() && (uidValidityOk || m_imapAction == nsIImapUrl::nsImapDeleteAllMsgs))
|
||||
{
|
||||
|
||||
if (GetServerStateParser().CurrentFolderReadOnly())
|
||||
{
|
||||
Log("ProcessSelectedStateURL", nsnull, "current folder read only");
|
||||
if (m_imapAction == nsIImapUrl::nsImapAddMsgFlags ||
|
||||
m_imapAction == nsIImapUrl::nsImapSubtractMsgFlags)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user