Groups

Groups

One address that reaches several mailboxes.

On this page
  1. groups list
  2. groups add
  3. groups update
  4. groups remove
  5. groups addMember
  6. groups removeMember

mailset groups list

List an org’s groups.

Admin or owner

Returns

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

In the API: POST /v1/groups.list

Usage
mailset groups list [--org <id>]
Example
mailset groups list

mailset groups add

Add a group: one address, a copy to every member mailbox.

Admin or ownerPasskey

Flags

  • <address>argumentrequired

    The group’s address, on one of the org’s domains.

  • --name<name>optional

    A name for the group.

  • --sendersenumoptional

    Who may write to it: anyone, people in the org, or only its members.

    One ofanyoneorgmembers

    Default org.

  • --members<a,b,…>optional

    Mailboxes and other groups, by address.

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

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints the Group object.

In the API: POST /v1/groups.add

Usage
mailset groups add <address> [--name <name>] [--senders anyone|org|members] [--members <a,b,…>] [--org <id>]
Example
mailset groups add moc.elpmaxe@maet --name Team --members moc.elpmaxe@ana,moc.elpmaxe@neb

mailset groups update

Rename a group, or change who can send to it.

Admin or ownerPasskey

Flags

  • <address>argumentrequired

    The group’s address.

  • --name<name>optional

    A new name for the group.

  • --sendersenumoptional

    Who may write to it: anyone, people in the org, or only its members.

    One ofanyoneorgmembers

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints the Group object.

In the API: POST /v1/groups.update

Usage
mailset groups update <address> [--name <name>] [--senders anyone|org|members] [--org <id>]
Example
mailset groups update moc.elpmaxe@maet --senders anyone

mailset groups remove

Delete a group. Its members keep their mail.

Admin or ownerPasskey

Flags

  • <address>argumentrequired

    The group’s address.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints what the API returns.

In the API: POST /v1/groups.remove

Usage
mailset groups remove <address> [--org <id>]
Example
mailset groups remove moc.elpmaxe@maet

mailset groups addMember

Add a mailbox or group to a group.

Admin or ownerPasskey

Flags

  • <address>argumentrequired

    The group’s address.

  • --member<member>required

    The mailbox or group to add or take out, by address.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints the Group object.

In the API: POST /v1/groups.addMember

Usage
mailset groups addMember <address> --member <member> [--org <id>]
Example
mailset groups addMember moc.elpmaxe@maet --member moc.elpmaxe@alrac

mailset groups removeMember

Take a mailbox or group out of a group.

Admin or owner

Flags

  • <address>argumentrequired

    The group’s address.

  • --member<member>required

    The mailbox or group to add or take out, by address.

Returns

With --json it prints the Group object.

In the API: POST /v1/groups.removeMember

Usage
mailset groups removeMember <address> --member <member> [--org <id>]
Example
mailset groups removeMember moc.elpmaxe@maet --member moc.elpmaxe@neb