[imp] Replying to pgp-encrypted messages: no body

Oliver Kuhl okuhl at netcologne.de
Sun Apr 18 22:00:42 PDT 2004



Michael M Slusarz wrote:

> The only location where we have the decrypted MIME data from the PGP 
> message
> that has been parsed into its correct pieces is in the MIME_Contents:: 
> object
> located in _outputPGPEncrypted() in imp/lib/MIME/Viewer/pgp.php.  It 
> takes a
> whole heck of a lot of effort to get to that point.
> 
> That function call is so far removed from any kind of composition code 
> (if the
> text is displayed on the message page, not only is it so far removed with
> respect to how many function calls it takes just to get to that point, 
> but it
> is  located in an entirely different page load from where we determine the
> reply text (!)) that it would take some major hard-coding of this single 
> case
> in the code to be able to resurrect it when determining the reply text.
> 
> One potential future solution is to move the code in the IMP pgp 
> MIME_Viewer
> that creates the MIME_Message structure out of the encrypted PGP data to 
> a new
> location (i.e. Horde_Crypt_pgp::) so that the reply text determination code
> could recreate the unencrypted data without seriously distorting the 
> space/time
> continuum.
Maybe another way would be (I really don't know if it is possible, just 
a simple idea) to get the decrypted data from the cache. So maybe 
implementing the possibility to reuse already dectryted mime parts like 
diskussed in thread "pgp-encrypted emails blowing up session" would help 
here, too.

So that would be a nice synergy effect.... :-)

Gruss,
    Ollie.


More information about the imp mailing list