Name
tuimex
A terminal email client that combines several accounts into one inbox.
Mail is handled from the keyboard, one key per action, and every action can be undone. tuimex never loads images or other remote content, so senders cannot tell that a message was opened.
Quick start
$ make install-binaryMail and calendar. The first row is on every screen. It names the two places tuimex has, mail and the calendar, each with the key that goes to it. The one that is open is bold. Click F2 Calendar in the model to go there.
Sections. One tab for each section of mail. A tab has a number only when the number means something needs attention: unread messages in the Inbox, every message in Flagged, and in the Outbox what was not sent. The Outbox tab is there only while a message is waiting to go.
- h l
- previous and next section
- /
- find among these rows; Enter then searches all mail
Day. Rows are grouped by day: Today, Yesterday, Past 7 days, and Earlier.
Cursor and marks. The bar at the left edge is the cursor. A small square is a mark: with rows marked, the next action applies to every marked row.
- j k
- down and up
- Space
- mark the row
- e
- archive
- d
- move to Trash
- u
- undo the last action
Account. Mail from every account is in one list. With more than one account, each row begins with the name of the account it is in.
- gt gT
- show one account at a time, then all of them again
From. Who the message is from.
Conversation. A triangle means the row is a whole conversation folded into one line. An action on a folded row applies to every message in the conversation.
- zo zc
- unfold the conversation into its messages, and fold it again
Subject. The subject of the message.
- Enter
- open the message full screen
- r
- reply
- c
- write a new message
What it carries. What the message carries: the number of messages in a conversation, the number of attached files, "invite" for a calendar invitation, and "replied" once it has been answered.
When, and flags. When the message arrived. A star at the end marks a flagged message.
- s
- flag a message that has to wait
Preview. Under the list is the message the cursor rests on: its header and its whole text, not an excerpt. On a terminal 160 columns wide or more the preview sits beside the list.
- p
- hide or show the preview
- Alt-j
- move into the preview to scroll it
Notice. A notice is one line above the text, shown only when it is true. This one says the message claims to continue a conversation but comes from an address the earlier messages did not come from. That is how a redirected reply looks, so it is worth checking before acting on it. Here the message asks for new bank details.
Text. Mail is read as plain text. An HTML message is turned into its words, and nothing is loaded from the servers it names: no images and no trackers.
Status line. On the left is where the cursor is: row 4 of 24, with 2 rows marked. On the right is only what is not normal: here a message is waiting to be sent, and one was not sent. A sent message waits ten seconds by default, and u takes it back until the count reaches zero.
Key hints. The bottom row is the command line. When nothing is being typed it lists the keys that apply now. No single key quits: Esc goes back, and typing :q then Enter leaves.
- ?
- every key and command; type to filter
- :
- type a command
Subject and thread. Enter on a row of the list opens the message full screen and marks it read. The top line is the subject and, for a conversation, which of its messages this is.
- n b
- next and previous message of the conversation
- J K
- next and previous message of the list
- Esc
- back to the list, with the cursor where it was
Header. Who the message is from and to, when it was sent, and the files attached to it with their sizes.
- a
- list the attached files
Text. The message as plain text. An HTML message is turned into its words: headings, paragraphs, lists and quotes. A link is shown as its text followed by a number, and a remote picture as its description; nothing is fetched for it.
- j k
- scroll
- o
- list the links in the message
- B
- open a copy of the message in the browser
Status line. On the left is which lines of the message are on screen. On the right is only what is not normal: here a message is waiting to be sent, and one was not sent.
Key hints. The keys that apply in the reader. The actions from the list work here too: archive, trash, flag, reply and forward.
- r R
- reply to the sender, or to everyone
- f
- forward
Mail and calendar. While a message is being written the first row names the two places without their keys, because the function keys do nothing here.
From. Every address the message can be sent as: the address of each account, then any extra identities set in the configuration. The message is sent through the account the chosen address belongs to. A reply starts on the account the original came to.
- h l
- choose the address
- Tab
- next field
Recipients. To, Cc and Bcc, one address to a line. A reply fills these in from the message being answered.
Subject. The subject. A reply keeps the subject and the headers that hold it in its conversation.
Files. The attached files and their sizes.
- ^a
- attach a file; Tab completes its path
Written by an agent. This line appears when the draft was written by an AI agent and not by the person at the keyboard. The mark stays on the send summary, so it is still visible at the moment of sending.
Text. Mail is written as plain text in the editor named by $VISUAL or $EDITOR, or vi when neither is set. tuimex steps aside for the editor and comes back when it exits.
- Enter
- open the editor
- ^d
- save the draft
Status line. On the left, when the draft was last saved. On the right is only what is not normal: here a message is waiting to be sent, and one was not sent.
Sending. Sending is the one action tuimex confirms first. ^s shows a summary of who the message is sent as, every recipient, the subject and each file, and only y sends. The message then waits ten seconds by default, in which u still stops it.
- ^s
- the send summary
- Esc
- close; asks whether to keep a draft that changed
Calendar. One calendar for every account: each account's own calendar, the events tuimex itself holds, and invitations that are in the mail and in no calendar yet. Mail and the calendar each keep their place when switching. Click F1 Mail in the model to go back.
Views. Three views of the same date. Month, shown here, has the months that fit with the selected day's events beside them. Week shows seven days against the clock. Day lists the events of the selected day in order.
- Tab
- step through the views
- 1 2 3
- choose month, week or day
Month shown. The month the cursor is in.
- [ ]
- previous and next month
- t
- today
- gd
- go to a date, typed as 2026-12-05, 5 dec, fri or +2w
Months. As many months as fit, one under the other. The cursor is in this grid when the calendar opens, and it selects a day, not an event.
- h l
- previous and next day
- j k
- a week down and up
- Enter
- open the selected day
Selected day and marks. The bar marks the selected day. The mark after a day number shows how much is on that day: the more dots, the more events. A day with no mark is free.
Later months. The months that follow, marked the same way, so a free day weeks ahead can be found at a glance.
The selected day. Beside the grid are the events of the selected day, in order. Each row has the account the event belongs to, its time and its title.
- Alt-l
- move into this list to select an event
- Alt-h
- back to the grid
- J K
- next and previous event
Labels. A label on the right says what is unusual about an event. "needs answer" is an invitation that has not been answered. "tentative" is one answered with maybe. "local" is an event kept on this machine and not in the account's online calendar.
- i
- answer an invitation: accept, tentative, decline or propose another time
- I
- jump to the next invitation waiting for an answer
The days after. Below the selected day, the days after it that have events. An event with a place shows it after the title.
Status line. On the left: the selected day, how many events are on it, and how many invitations on it wait for an answer. On the right is only what is not normal: here a message is waiting to be sent, and one was not sent.
Key hints. The keys that apply now.
- Enter
- open the selected day
- c
- write a new event
- /
- find in titles and places
Overview
tuimex is an email client that runs in a terminal. It combines the mail from several accounts into one inbox, and every common action takes a single key: archive, trash, reply or flag. Any action can be undone.
tuimex does not load remote content. Images and anything else a message links to are never fetched, so a sender cannot detect that a message was opened. Connections to mail servers always use verified TLS, and passwords are stored in the system keyring.
Gmail accounts sign in with an app password or through the browser, and Proton Mail accounts connect through Proton Bridge. The tuimex setup command adds an account, and tuimex doctor checks that every account works and explains how to fix any problem.
Features
- One inbox for every account
- Mail from all configured accounts appears in a single list. Each row is labelled with the account that received it.
- One key per action
- e archives a message, d moves it to the trash, r replies and s flags it. Several messages can be selected and handled with one key.
- Undo
- tuimex does not ask for confirmation. Instead, u reverses the last action, including on the mail server.
- No remote content
- Messages are displayed as plain text. tuimex does not load images, run scripts or contact any address that a message contains, so opening a message tells the sender nothing. Each link is shown with the site it really leads to.
- Original formatting, on request
- One key opens a message in the browser with its original formatting. That copy has scripts and forms removed, and it loads images only after the user allows it.
- A check before sending
- Before a message is sent, tuimex lists every recipient and highlights any whose domain does not appear earlier in the conversation. Sending can still be cancelled for ten seconds after it is confirmed.
- Search and saved searches
- Each tab is a saved search, such as unread mail in the inbox or mail with attachments from one sender in the last week. A search covers every account.
- Calendar
- One calendar shows the events of every account by month, week or day. Invitations that arrive by email can be accepted, declined or answered with another time.
- AI agent access (optional, off by default)
- An AI agent can be given permission to read chosen folders and to write drafts. There is no command that lets an agent send, move, delete or flag mail.
Install
# tuimex_linux_arm64.tar.gz on arm64
curl -LO https://github.com/lampseen/tuimex/releases/download/v0.3.0/tuimex_linux_amd64.tar.gz
tar -xzf tuimex_linux_amd64.tar.gz tuimex
mkdir -p ~/.local/bin && mv tuimex ~/.local/bin/# tuimex_darwin_amd64.tar.gz on an Intel Mac
curl -LO https://github.com/lampseen/tuimex/releases/download/v0.3.0/tuimex_darwin_arm64.tar.gz
tar -xzf tuimex_darwin_arm64.tar.gz tuimex
mkdir -p ~/.local/bin && mv tuimex ~/.local/bin/git clone https://github.com/lampseen/tuimex && cd tuimex
make install-binaryLimits and guarantees
- tuimex never fetches anything a message links to: no remote images, tracking pixels, stylesheets or link previews.
- It writes to four directories of its own and nowhere else. The files in them are readable only by the user.
- Passwords and tokens are kept in the system keyring. They are never written to a file or to the log.
- An AI agent cannot send, move, delete or flag mail.
- Not supported: Windows, Microsoft 365 sign-in, JMAP, writing HTML email, plugins and scripting.
About the name
tuimex is short for TUI mail exchange. A TUI (text user interface) is an application that runs inside a terminal.