Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.
/ mailz Public archive

Command line tool for working with maildir messages

License

Notifications You must be signed in to change notification settings

mndrix/mailz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailz is a command line tool for working with messages in a maildir. It's designed to be used in shell scripts or combined with standard Unix tools.

For example, to show the Subject header of all messages that don't have the T ("trashed") flag:

mailz find -c T | xargs mailz head -s Subject

To mark a message as seen (S) and replied (R):

mailz flags -s SR path/to/cur/message:2,

To extract a text version of a message body (decoded, handles MIME):

mailz body path/to/cur/message:2,

Installation

go get -u github.com/mndrix/mailz/...

Example

I use a shell script built on top of mailz as my main email client. An early snapshot of that script is in the repository in mail-client.sh. It might give you some ideas of how it can be used.

About

Command line tool for working with maildir messages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages