[imp] Reading PGP/MIME messages

Barry Porter barry at bpuk.net
Mon Jan 9 13:01:40 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 09/01/2006 06:49, Michael M Slusarz wrote:

Hi Michael,

> Your last sentence doesn't make any sense.  if "validation of inline  
> signed and signed/encrypted emails" is working, those *are* PGP/MIME  
> emails so obviously pgp support is working on your system at least  
> somewhat.  You may want to compare your config/mime_drivers.php file  
> with the default and make sure you haven't changed anything in there  
> you shouldn't have.

Thanks for the pointers to mime_drivers.php

Changing the PGP settings section fixed the ability of IMP to handle
RFC3156 signed, encrypted, and signed & encrypted emails. Adding the
additional mime types and setting them as attachments rather than inline
 does the trick.

Here is the revised set of settings:
/**
 * PGP settings
 */
$mime_drivers['imp']['pgp']['inline'] = true;
$mime_drivers['imp']['pgp']['icons'] = array(
    'default' => 'encryption.png' );
$mime_drivers['imp']['pgp']['handles'] = array(
    'application/pgp-encrypted', 'application/pgp-keys',
'application/pgp-signature');

$mime_drivers['imp']['pgp']['inline'] = false;
$mime_drivers['imp']['pgp']['icons'] = array(
    'default' => 'encryption.png' );
$mime_drivers['imp']['pgp']['handles'] = array(
    'application/pgp-encrypted', 'application/pgp-keys',
'application/pgp-signature', 'multipart/encrypted', 'multipart/signed');

- --
Regards
Barry


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBQ8LPMikyI/+ZZHxhAQh7xBAApfVrmKra9mfDMYh9ocOr2L+cmPD6jKUE
Chc46w5RO7tuKpu1wiDdQmL1zolp3d9oXM/fuSh5COqcrJdRmZygCviZ+Blk2h3u
LB/7hSIi81xeEboPCwxmydNJBYrjrWIFARFmPagHO9OC2ZL0uFYPuaUgFUvn+PCS
2hncTmJFTHZPJkzpo9KzuqsTTIqVW0wnYMpIaJ9JFl12mW1bhdTQd1E+OXEs3ZN0
D0eQYQzU60Mh+bhdxM21XRGTS9R8z0zAxyR0Ikd+aa+dB3vbWoFqnKTd9rfaGd1W
Q67iungsoUKAwZ8g6h9vrgrT+MAGiX5Mp0m/uC/hewrMcS3GLH0xrzpFqmnMIV+J
UjD9BTBvuEC6nB14QX4v6UyPWtCS7xq8gJT4NPjrEyb6bdQm/olvCy6UlPhTRai3
IGh4k5Ge6+yPfuyPfPHDNLh/RZCV/9xAGBoNuzQpmUifaUNb9+55uF1N2O1FvaRe
B0l2GsBfHTt9g2IcRVNr2bo2tHaUDl//lcuABvCJDDCO2D5ZYTOdOPE5lgtfvQCY
jzY/rBO+tBVtH8u9K9cmr/dPv+myRCYwGer/ddMJtxHY/1JU5aYQc1Gbgx5TRMC/
zcdKszTjg7SsUkqamtGl9cNYDDnx4xvRxi4hAW7U7id0544NXT9KkEIRRfaBgKFR
Ve1XKyOsYTY=
=V7Lj
-----END PGP SIGNATURE-----



More information about the imp mailing list