mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
parent
1e792c1fee
commit
4046167650
1 changed files with 5 additions and 3 deletions
|
|
@ -1194,6 +1194,7 @@ MaildirStoreParser::~MaildirStoreParser()
|
|||
nsresult MaildirStoreParser::ParseNextMessage(nsIFile *aFile)
|
||||
{
|
||||
nsresult rv;
|
||||
NS_ENSURE_TRUE(m_db, NS_ERROR_NULL_POINTER);
|
||||
nsCOMPtr<nsIInputStream> inputStream;
|
||||
nsCOMPtr<nsIMsgParseMailMsgState> msgParser =
|
||||
do_CreateInstance(NS_PARSEMAILMSGSTATE_CONTRACTID, &rv);
|
||||
|
|
@ -1278,9 +1279,10 @@ void MaildirStoreParser::TimerCallback(nsITimer *aTimer, void *aClosure)
|
|||
parser->m_directoryEnumerator->GetNext(getter_AddRefs(aSupport));
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIFile> currentFile(do_QueryInterface(aSupport, &rv));
|
||||
NS_ENSURE_SUCCESS_VOID(rv);
|
||||
parser->ParseNextMessage(currentFile);
|
||||
// ### TODO - what if this fails?
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = parser->ParseNextMessage(currentFile);
|
||||
if (NS_FAILED(rv) && parser->m_listener)
|
||||
parser->m_listener->OnStopRunningUrl(nullptr, NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
nsresult MaildirStoreParser::StartTimer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue