add a little imap logging to imap offline sync, sr=mscott, a=chofmann, 236532

This commit is contained in:
bienvenu%nventure.com 2004-03-16 01:14:54 +00:00
Родитель 1dd96b17a6
Коммит 5fa390f70e
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -50,6 +50,8 @@
#include "nsSpecialSystemDirectory.h"
#include "nsIFileStream.h"
#include "nsIMsgCopyService.h"
#include "nsImapProtocol.h"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
NS_IMPL_ISUPPORTS2(nsImapOfflineSync, nsIUrlListener, nsIMsgCopyServiceListener)
@ -107,6 +109,10 @@ nsImapOfflineSync::OnStopRunningUrl(nsIURI* url, nsresult exitCode)
m_listener->OnStopRunningUrl(url, NS_BINDING_ABORTED);
return NS_OK;
}
nsCOMPtr<nsIImapUrl> imapUrl = do_QueryInterface(url);
if (imapUrl)
nsImapProtocol::LogImapUrl(NS_SUCCEEDED(rv) ? "offline imap url succeeded:" : "offline imap url failed:", imapUrl);
// NS_BINDING_ABORTED is used for the user pressing stop, which
// should cause us to abort the offline process. Other errors
// should allow us to continue.