Lines Matching refs:file
50 BEmailMessage::BEmailMessage(BPositionIO* file, bool own, uint32 defaultCharSet)
64 fData = file;
66 if (file != NULL)
67 SetToRFC822(file, ~0L);
388 if (BFile* file = dynamic_cast<BFile*>(fData)) {
389 status_t status = file->ReadAttr(B_MAIL_ATTR_NAME, B_STRING_TYPE, 0,
396 // a file since only the BeMail GUI calls this.
462 BFile* file = dynamic_cast<BFile*>(fData);
463 if (file == NULL)
467 size_t read = file->ReadAttr(B_MAIL_ATTR_ACCOUNT, B_INT32_TYPE, 0,
671 if (BFile* file = dynamic_cast<BFile*>(mailFile)) {
672 file->ReadAttr(B_MAIL_ATTR_ACCOUNT_ID, B_INT32_TYPE, 0, &fAccountID,
727 BEmailMessage::RenderToRFC822(BPositionIO* file)
790 status_t err = BMailComponent::RenderToRFC822(file);
794 file->Seek(-2, SEEK_CUR);
797 err = fBody->RenderToRFC822(file);
801 // Set the message file's attributes. Do this after the rest of the file
806 if (BFile* attributed = dynamic_cast <BFile*>(file)) {
858 // Generate a file name for the outgoing message. See also
873 // sorting by file name will give all the messages with the same subject in
916 BFile file;
917 status_t status = dir->CreateFile(worker.String(), &file);
924 return RenderToRFC822(&file);