Kaiser Gmail Client
A command line Gmail client that separates email client from text editor - use your favorite text editor to read, write, reply to, and delete messages in your inbox~
Installation and Uninstallation
make install or
make uninstall with elevated privileges in order to install.
kaiser <compose | read <optional number of emails to show> | add-account | remove-account | list-accounts | config>
Composing a Message
kaiser compose to start writing a message, fill in the receiver address, and the subject field. At this point, your text editor (default vi, see the Config section for how to change this) will open and allow you to type your message. After saving and closing the file, you'll be prompted if you'd like to send, save as a draft, or discard this message.
Reading, Replying, and Deleting Mail
kaiser read to display all unread emails you have, or use
kaiser read XXX where
XXX is the number of messages to show.
When reading email, everything is displayed as plain text and opened in the text editor of your choice (default editor is vi; use
kaiser config to change editors). Replying and deleting mail involves editing this text file. Once you've made your edits, make sure to save and close the file in order to have your replies and deletes propagated.
Simply type your reply between the
Reply-below-this-line and the
----- separator lines. When the file is saved and closed, the reply will be sent.
Deleting and Archiving
Archive-this-email line immediately below the email you wish to delete or archive. When the file is saved and closed, the email will be deleted. Note that you can both reply to and delete/archive an email at the same time.
Kaiser is quite customizeable. By default, the vi editor is used to read and write emails, however you can tell Kaiser to use whatever editor you prefer.
kaiser config and then one of the following commands to change functionality of Kaiser.
kaiser config set-editor \<EDITOR\> to change the text editor that Kaiser will invoke when reading and writing emails. You can use a terminal-based or a GUI editor - as long as it can write text files, it'll work.
kaiser config set-editor vim
kaiser config set-editor gedit.
Use 'kaiser config set-read-messages <NUMBER OF MESSAGES>
to set how many messages to display when usingkaiser read
. You may use kaiser config set-read-messages 0' to show all the unread messages in your inbox, or use a negative number to show all unread messages plus additional older messages.
kaiser config set-read-messages 5shows 5 messages when you use
kaiser config set-read-messages 0shows only your unread messages when you use
kaiser config set-read-messages -3shows your unread messages plus three already read messages when you use