Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Request #20938 Support for PGP encrypted & signed mails
Submitted: 2015-08-19 03:19 UTC
From: cweiske Assigned:
Status: Open Package: Mail_Mime (version 1.9.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2015-08-19 03:19 UTC] cweiske (Christian Weiske)
Description: ------------ Mail_mime should support PGP signed/encrypted mails. This is defined in RFC 1991; https://tools.ietf.org/html/rfc1991

Comments

 [2015-08-19 22:08 UTC] cweiske (Christian Weiske)
Work in progress: https://github.com/pear/Mail_Mime/tree/gpg-20938 - PGP encryption works with it. Requires patch for bug #20939 in Crypt_GPG. Example: $mime = new Mail_mime(array('eol' => "\n")); $hdrs = array( 'From' => 'user@example.org', 'Subject' => 'pgp test' ); $mime->setTXTBody("txtbody"); $gpg = new Crypt_GPG(array('debug' => false)); $gpg->addEncryptKey('user@example.org'); $mime->setGPG($gpg); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail = Mail::factory('mail'); $mail->send('user@example.org', $hdrs, $body);
 [2015-08-21 02:14 UTC] cweiske (Christian Weiske)
Also requires patch for bug #20940 in Crypt_GPG.
 [2015-08-21 03:30 UTC] cweiske (Christian Weiske)
Signing without encryption works now, too: $mime = new Mail_mime(array('eol' => "\n")); $hdrs = array( 'From' => 'user@example.org', 'Subject' => 'pgp test' ); $mime->setTXTBody("txtbody"); $gpg = new Crypt_GPG(array('debug' => false)); $gpg->addSignKey('user@example.org', 'pass'); $mime->setGPG($gpg); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail = Mail::factory('mail'); $mail->send('user@example.org', $hdrs, $body);
 [2015-11-03 01:59 UTC] cweiske (Christian Weiske)