Command Line Interface (`emate`)

MailMate includes a shell command named emate which is located inside the MailMate application bundle. It can, e.g., be used to query the message database or to add/delete messages. Its precise location is MailMate.app/Contents/SharedSupport/emate and usage instructions are given if running emate help in the Terminal.

Note that it is possible to provide an alternative database path to emate (the default is ~/Library/Application Support/MailMate/). This could be useful for building a database of some collection of emails (for the purpose of making queries), but without adding them to the default database.

It is recommended to make a symbolic link to emate and never make a copy. This ensures that new versions of MailMate automatically updates the emate command as well. Make sure ~/bin/ exists and paste the following in the Terminal:

ln -s /Applications/MailMate.app/Contents/SharedSupport/emate ~/bin/emate

Caveat: Currently only a single user of a database is allowed. This means that emate cannot be run on the default database if MailMate is also running.

Fow now, emate should mainly be considered as a debug utilility for expert users.