6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10809] Bug in decrypting PGP-messages in imp
*
Your Email Address
*
Spam protection
Enter the letters below:
.___ __.._..___.__ [__ (__ | [__ [__) [___.__)_|_[___| \
Comment
>> The error becomes manifest on line 378 in file >> imp/lib/Mime/Viewer/Pgp.php where getMetadata() fails since the >> variable the should be a Horde_Mime_Part is NULL. This is the case >> since $this->getConfigParam('imp_contents')->getMIMEPart($sig_id); >> results NULL a few lines before. > > Here's what I see. > > You have a PGP encrypted message. It looks like this: > > (0) multipart/encrypted > 1 application/pgp-encrypted > 2 application/octet-stream > > So far, so good. > > IMP correctly decrypts the data. When we do this, we create a > "virtual" MIME part - Part ID 3. We need to do this because the > encrypted data is itself a MIME part, and we need to send this data > through our viewing system to be > parsed. > > Sure enough, the encrypted part is PGP signed. So our message now > (should) look like this: > > (0) multipart/encrypted > 1 application/pgp-encrypted > 2 application/octet-stream > (3) multipart/signed > (3.1) [Message Data] > (3.2) application/pgp-signature > > BUT the problem with your message is that it appears that (3.1) is > completely missing. In other words, multipart/signed requires 2 > parts but your message only contains one. So that's why part ID 3.2 > can't be found - it doesn't exist. And if it doesn't exist, that > means that your PGP message is broken (it looks like your message > contains pgp-signature data but no message data). > > I can't be sure until you provide the message source of the decrypted > message. Easiest way is to do this on line 283 of > imp/lib/Mime/Viewer/Pgp.php: > > Horde::debug($decrypted_data->message); > > And post the output here (redacting any sensitive data). > > --- > > Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers