[imp] CVS HEAD PGP problems
Didi Rieder
adrieder@sbox.tugraz.at
Fri Nov 29 18:32:56 2002
--On Friday, November 29, 2002 06:17:34 PM +0100 Didi Rieder
<adrieder@sbox.tugraz.at> wrote:
>> I'm running the cvs version of IMP from today and found the following
>> problems:
>>
>> 1.
>> When I try to encrypt a message, IMP tells me that it couldn't find the
>> public-key for the reciepent, although the key exists in the addressbook.
>>
>> PGP Error: No pgpPublicKey entry found for Didi Rieder
>> <adrieder@sbox.tugraz.at>.
>>
>> Then IMP sends the message unencrypted, but the recipient gets an empty
>> message (just the headers).
>>
>> 2.
>> When I try to encrypt and sign a message, the compose window gets empty
>> (white) and on message is sent.
>>
>> Any solution?
>
> The problem seems to come from the folowing select statement:
>
> SELECT object_id, owner_id, object_type, object_members, object_name,
> object_email, object_homeaddress, object_workaddress, object_homephone,
> object_workphone, object_cellphone, object_fax, object_title,
> object_company, object_notes, object_pgppublickey FROM turba_objects
> WHERE (owner_id = 'adrieder@sbox') AND (LOWER(object_email) LIKE
> LOWER('%Didi Rieder <adrieder@sbox.tugraz.at>%'));
>
>
> object_email doesn't contain "First Name <email@address>"
Here is a patch for the first problem. Can someone confirm it?
--- PGP.php.old Fri Nov 29 19:27:00 2002
+++ PGP.php Fri Nov 29 19:27:00 2002
@@ -630,7 +630,7 @@ class IMP_PGP extends Horde_Crypt_pgp {
$key_addr = array_pop($addrOb);
/* Get the public key for the address. */
- $public_key = $this->getPublicKey($to_address);
+ $public_key = $this->getPublicKey($key_addr);
if (is_a($public_key, 'PEAR_Error')) {
return $public_key;
}
Didi
--
-------------------------
Didi Rieder
adrieder@sbox.tugraz.at
-------------------------
More information about the imp
mailing list