Lines Matching refs:draft
242 // behaviour. The difference is that without live draft menu updating you
244 // rather than merely around 20, since each open draft-monitoring query
252 QueryMenu* queryMenu = new QueryMenu(B_TRANSLATE("Open draft"), false);
255 queryMenu->SetPredicate("MAIL:draft==1");
260 menu->AddItem(fSendLater = new BMenuItem(B_TRANSLATE("Save as draft"),
1825 B_TRANSLATE("Save this message as a draft before closing?"),
2292 BAlert* alert = new BAlert("", B_TRANSLATE("E-mail draft could "
2509 // If it's a draft, remove the draft file
2584 BFile draft;
2588 status_t status = draft.SetTo(fRef,
2598 // Append the relative path of the draft directory
2640 status = draft.SetTo(&dir, fileName, flags);
2665 draft.Write(fContentView->TextView()->Text(),
2669 WriteAttrString(&draft, B_MAIL_ATTR_NAME, fHeaderView->To());
2670 WriteAttrString(&draft, B_MAIL_ATTR_TO, fHeaderView->To());
2671 WriteAttrString(&draft, B_MAIL_ATTR_SUBJECT, fHeaderView->Subject());
2673 WriteAttrString(&draft, B_MAIL_ATTR_CC, fHeaderView->Cc());
2675 WriteAttrString(&draft, B_MAIL_ATTR_BCC, fHeaderView->Bcc());
2679 WriteAttrString(&draft, B_MAIL_ATTR_ACCOUNT,
2686 WriteAttrString(&draft, "MAIL:encoding", menuItem->Label());
2688 // Add the draft attribute for indexing
2690 draft.WriteAttr("MAIL:draft", B_INT32_TYPE, 0, &draftAttr, sizeof(uint32));
2711 draft.WriteAttrString("MAIL:attachments", &pathStr);
2715 BNodeInfo info(&draft);
2904 // Check if it's a draft file, which contains only the text, and has the