Blocked senders

Blocked senders

Discard a sender’s new email before it is stored.

On this page
  1. blocks list
  2. blocks add
  3. blocks addMany
  4. blocks remove

mailset blocks list

List the senders blocked in your mailboxes.

Returns

With --json it prints what the API returns.

In the API: POST /v1/blocks.list

Usage
mailset blocks list
Example
mailset blocks list

mailset blocks add

Discard a sender’s new mail in one mailbox.

Flags

  • <address>argumentrequired

    The sender’s address.

  • --mailbox<mailbox>required

    One of your mailboxes, by address.

  • --everywhereflagoptional

    In every mailbox you can open, not only this one.

Returns

With --json it prints what the API returns.

In the API: POST /v1/blocks.add

Usage
mailset blocks add <address> --mailbox <mailbox> [--everywhere]
Example
mailset blocks add ten.elpmaxe@sreffo --mailbox moc.elpmaxe@ana

mailset blocks addMany

Block several senders at once, each in its own mailbox.

Flags

  • --senders<json>required

    The senders to block, each with the mailbox to block it in. Up to 100.

    Or @<path>, to read the JSON from a file.

Returns

With --json it prints what the API returns.

In the API: POST /v1/blocks.addMany

Usage
mailset blocks addMany --senders <json>
Example
mailset blocks addMany --senders @senders.json
senders.json
[
  {
    "mailbox": "moc.elpmaxe@ana",
    "address": "ten.elpmaxe@sreffo"
  },
  {
    "mailbox": "moc.elpmaxe@ana",
    "address": "gro.elpmaxe@slaed"
  }
]

mailset blocks remove

Stop blocking a sender.

Flags

  • <address>argumentrequired

    The sender’s address.

  • --mailbox<mailbox>required

    One of your mailboxes, by address.

  • --everywhereflagoptional

    In every mailbox you can open, not only this one.

Returns

With --json it prints what the API returns.

In the API: POST /v1/blocks.remove

Usage
mailset blocks remove <address> --mailbox <mailbox> [--everywhere]
Example
mailset blocks remove ten.elpmaxe@sreffo --mailbox moc.elpmaxe@ana