commits
2024-10-09 | Check if mail still exists before executing an mblaze command | Sören Tempel |
2024-10-09 | Support displaying messages which don't have a date set | Sören Tempel |
2024-10-08 | Identify emails by path, not by message id | Sören Tempel |
2024-10-08 | fatal: Pass arguments as-is to log.Fatal | Sören Tempel |
2024-08-12 | Always invoke cleanup() before calling log.Fatal | Sören Tempel |
Clone the repository to access all 59 commits.
mblaze-ui
A minimal TUI for the mblaze email client.
About
mblaze-ui is tcell-based terminal user interface for the
mblaze email client. Similar to existing Unix utilities
from mblaze(7)
, it operates on the current message sequence as set by
mseq(1)
. For each mail of the sequence, it prints a one line summary
similar to mscan(1)
. Using the arrow keys, a mail from the sequence
can be selected and manipulated using the key bindings described below.
Conceptually, mblaze-ui is therefore similar to mless(1)
but offers
a pager-independent interface.
Installation
This software requires at least Go 1.21.0. If such a Go version
is available on your system, install using go install
as follows:
$ go install github.com/nmeum/mblaze-ui@latest
Usage Example
Set a message sequence using mseq(1)
, for example
$ mlist -s ~/mail/INBOX | msort -r -d | mseq -S
will set the message sequence to all unseen emails in your INBOX and will sort these messages ascending by date. This sequence can then be viewed and modified in a TUI environment using:
$ mblaze-ui
In the TUI, a specific message can be selected using the arrow keys. The state of this message can be modified through the key bindings described in the following section.
Key Bindings
The following key bindings are currently implemented:
Esc
/Ctrl-C
/q
: Exit mblaze-uiCtrl-L
: Redraw the screenEnter
: View the currently selected email usingmshow(1)
Up
/Down
: Select the next/previous emailPageUp
/PageDown
: Show the next/previous page of mailsf
/F
: Mark the email as unflagged/flagged usingmflag(1)
s
/S
: Mark the email as unseen/seen usingmflag(1)
t
/T
: Mark the mail as untrashed/trashed usingmflag(1)
d
: Delete the currently selected emailr
: Compose a reply for the selected email
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.