Manage your emails from your console
What those CLI commands are for:
What they’re not for:
Should you need help with the CLI syntax, you can always invoke:
Display your recent emails in a formatted table with UID, timestamp, sender, subject, and snippet.
Alias: relay messages ls
Shows the 20 most recent emails from your first configured account.
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
--limit | -l | Number of messages to fetch | 20 |
--unread | -u | Show only unread messages | false |
The table displays: UID, Timestamp (UTC), From, Subject, and Snippet for easy scanning.
Search for messages containing specific text in the subject, sender, or body.
Aliases: relay messages find
, relay messages grep
Searches through the most recent 100 messages for the term “meeting”.
The search function:
Use specific search terms to narrow down results. The search looks through subject, sender, and body content.
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
--limit | -l | Number of messages to search | 100 |
Display the full content of a specific email message by its UID.
Alias: relay messages cat
Opens the message with UID 12345 from your first configured account.
The command shows:
The UID is specific to each account and folder. You can get UIDs from the relay messages list
command.
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
Move a specific email message to the trash folder.
Alias: relay messages rm
Moves the message with UID 12345 to trash.
This moves the email to your email provider’s trash folder. The behavior depends on your email provider’s trash handling.
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
Mark a specific email message as spam.
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
Change the read status of a specific email message.
Marks the message with UID 12345 as read.
Marks the message with UID 12345 as read.
Marks the message with UID 12345 as unread.
Status | Description |
---|---|
read | Mark the message as read |
unread | Mark the message as unread |
Option | Short | Description | Default |
---|---|---|---|
--account | -a | Account name to use | First configured account |
The read/unread status is synchronized with your email provider, so changes will be reflected in other email clients.