[imp] Reading PGP/MIME messages
Michael M Slusarz
slusarz at mail.curecanti.org
Mon Jan 9 13:13:04 PST 2006
Quoting Barry Porter <barry at bpuk.net>:
> -----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.
Not correct - since there is already a handler for multipart/encrypted
and multipart/signed in horde. see below.
> 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');
Most likely your problem, then, are these lines in
*horde*/config/mime_drivers.php:
$mime_drivers['horde']['security']['inline'] = true;
$mime_drivers['horde']['security']['handles'] = array(
'multipart/encrypted', 'multipart/signed');
$mime_drivers['horde']['security']['icons'] = array(
'default' => 'encryption.png');
Obviously, if you turned inline global settings of multipart/encrypted
or multipart/signed off then of course no PGP/MIME messages will be
displayed inline since the application/pgp-encrypted types etc. *must*
live in a multipart part - if the parent multipart is set not to be
inlined, then obviously the children won't be shown.
michael
_______________________________________
Michael Slusarz [slusarz at curecanti.org]
More information about the imp
mailing list