if (firstCheck) { if (msd->channel) { nsCOMPtr<nsIURI> aUri; if (NS_SUCCEEDED(msd->channel->GetURI(getter_AddRefs(aUri)))) { nsCOMPtr<nsIImapUrl> imapURL = do_QueryInterface(aUri); if (imapURL) { nsImapContentModifiedType   cModified; if (NS_SUCCEEDED(imapURL->GetContentModified(&cModified))) { if ( cModified != nsImapContentModifiedTypes::IMAP_CONTENT_NOT_MODIFIED ) msd->options->missing_parts = PR_TRUE; } } } }  firstCheck = PR_FALSE; }
mime_display_stream_write (nsMIMESession *stream,                           const char* buf,                           PRInt32 size){  struct mime_stream_data *msd = (struct mime_stream_data *) ((nsMIMESession *)stream)->data_object;  MimeObject *obj = (msd ? msd->obj : 0);    if (!obj) return -1;  return obj->clazz->parse_buffer((char *) buf, size, obj);}