Drafts

Drafts

Save a draft, attach files, and throw one away.

On this page
  1. drafts save
  2. drafts list
  3. drafts remove
  4. drafts attach
  5. drafts detach
  6. drafts forward

mailset drafts save

Save a draft, new or by id.

Flags

  • --from<from>required

    One of your addresses.

  • --id<id>optional

    The draft to change. Left out: a new draft.

  • --to<to>optional

    Who it goes to, as typed: addresses with commas between them.

  • --cc<cc>optional

    Who gets a copy, as typed.

  • --bcc<bcc>optional

    Who gets a hidden copy, as typed.

  • --subject<subject>optional

    The subject, on one line.

  • --text<text>optional

    The draft’s text.

  • --thread-id<thread-id>optional

    The conversation it answers.

  • --markdownflagoptional

    text has Markdown to send as formatting.

Returns

With --json it prints the Draft object.

In the API: POST /v1/drafts.save

Usage
mailset drafts save --from <from> [--id <id>] [--to <to>] [--cc <cc>] [--bcc <bcc>] [--subject <subject>] [--text <text>] [--thread-id <thread-id>] [--markdown]
Example
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

List your drafts.

Returns

With --json it prints a list of Draft objects.

In the API: POST /v1/drafts.list

Usage
mailset drafts list
Example
mailset drafts list

mailset drafts remove

Throw a draft away.

Flags

  • <id>argumentrequired

    The draft’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/drafts.remove

Usage
mailset drafts remove <id>
Example
mailset drafts remove dr_7a4f2e9c1b6d3058e2c9a4f1

mailset drafts attach

Attach a file to a draft.

Flags

  • <id>argumentrequired

    The draft’s id.

  • --file<path>required

    The file to send, read from this machine.

  • --content-type<content-type>optional

    Its media type.

    Default application/octet-stream.

Returns

With --json it prints what the API returns.

In the API: POST /v1/drafts.attach

Usage
mailset drafts attach <id> --file <path> [--content-type <content-type>]
Example
mailset drafts attach dr_7a4f2e9c1b6d3058e2c9a4f1 --file quote.pdf --content-type application/pdf

mailset drafts detach

Take a file off a draft.

Flags

  • <file>argumentrequired

    The attached file’s id, from the draft’s files.

Returns

With --json it prints what the API returns.

In the API: POST /v1/drafts.detach

Usage
mailset drafts detach <file>
Example
mailset drafts detach att_3c9e1f7a5b2d4086c7e1a9f2

mailset drafts forward

Copy a message’s attachments onto a draft.

Flags

  • <id>argumentrequired

    The draft’s id.

  • --message-id<message-id>required

    The message whose attachments are copied.

Returns

With --json it prints what the API returns.

In the API: POST /v1/drafts.forward

Usage
mailset drafts forward <id> --message-id <message-id>
Example
mailset drafts forward dr_7a4f2e9c1b6d3058e2c9a4f1 --message-id msg_91b7e4c2a6f03d58b1c4e7a9