command line tool to encrypt your remote imap store with gnupg

encryption mail IMAP GnuPG PGP

Dominik Meyer ADD: some comments 1511897499
LICENSE ADD: added License 1501614550 FIX: fixed typo 1502482911 ADD: added pod 1502481697
lib ADD: some comments 1511897499




Programm allows the enryption of email in imap mailboxes with GPG.

Its similar to the project but is written in Perl.

The reason for this project is, I like Perl more than Python and the arcane project did not create PGP encrypted emails which are readable by the android email program r2mail2. cryptMailStore creates pgp mime encrypted and signed messages readable by r2mail2.


Please be careful when you encrypt emails with cryptMailStore because the unencrypted emails will be deleted from the imap server. Therefore, if you loose your PGP secret key, or you choose the wrong keyid to encrypt with, you loose all access to your emails.

Best practise is to try this software with a submailbox on your imap server with a copy of some of your emails. If everything works fine, use it on your real mailstore.

Still this Software is provided as is without any warranty. I am not repsonsible if your emails are lost or not accessible anymore !



bash apt-get install libnet-imap-client-perl apt-get install libmoosex-app-perl apt-get install libmail-gnupg-perl apt-get install libterm-progressbar-perl apt-get install libdatetime-perl


bash cpan -i MooseX::App cpan -i Net::IMAP::Client cpan -i Mail::GnuPG cpan -i MIME::Parser cpan -i Term::ProgressBar cpan -i DateTime

Example Usage

bash git clone cd cryptMailStore ./cryptMailStore encrypt -server -user username -mailbox INBOX -ssl -sign -unseen --keyid


  • improve documentation
  • create CPAN Module
  • add decryption command
  • add recrypt command
  • add message selection by subject