Drafts
Save a draft, attach files, and throw one away.
mailset drafts save
Save a draft, new or by id.
Flags
One of your addresses.
The draft to change. Left out: a new draft.
Who it goes to, as typed: addresses with commas between them.
Who gets a copy, as typed.
Who gets a hidden copy, as typed.
The subject, on one line.
The draft’s text.
The conversation it answers.
texthas Markdown to send as formatting.
Returns
With --json it prints the Draft object.
mailset drafts save --from <from> [--id <id>] [--to <to>] [--cc <cc>] [--bcc <bcc>] [--subject <subject>] [--text <text>] [--thread-id <thread-id>] [--markdown]
mailset drafts save --from moc.elpmaxe@ana --to moc.elpmaxe@airam --subject "Quote for March" --text "Hi Maria, the quote is attached."
mailset drafts list
mailset drafts list
mailset drafts remove
Throw a draft away.
Flags
The draft’s id.
Returns
With --json it prints what the API returns.
mailset drafts remove <id>
mailset drafts remove dr_7a4f2e9c1b6d3058e2c9a4f1
mailset drafts attach
Attach a file to a draft.
Flags
The draft’s id.
The file to send, read from this machine.
Its media type.
Default
application/octet-stream.
Returns
With --json it prints what the API returns.
mailset drafts attach <id> --file <path> [--content-type <content-type>]
mailset drafts attach dr_7a4f2e9c1b6d3058e2c9a4f1 --file quote.pdf --content-type application/pdf
mailset drafts detach
Take a file off a draft.
Flags
The attached file’s id, from the draft’s
files.
Returns
With --json it prints what the API returns.
mailset drafts detach <file>
mailset drafts detach att_3c9e1f7a5b2d4086c7e1a9f2
mailset drafts forward
Copy a message’s attachments onto a draft.
Flags
The draft’s id.
The message whose attachments are copied.
Returns
With --json it prints what the API returns.
mailset drafts forward <id> --message-id <message-id>
mailset drafts forward dr_7a4f2e9c1b6d3058e2c9a4f1 --message-id msg_91b7e4c2a6f03d58b1c4e7a9