From 430afb0a9436530fbcacfa093c5059225d26e243 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 3 Dec 2008 11:26:47 -0700 Subject: [PATCH] Fix PGP block parsing; phpdoc --- imp/lib/Mime/Viewer/plain.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/imp/lib/Mime/Viewer/plain.php b/imp/lib/Mime/Viewer/plain.php index 748f8e457..1f5298ff4 100644 --- a/imp/lib/Mime/Viewer/plain.php +++ b/imp/lib/Mime/Viewer/plain.php @@ -157,7 +157,11 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain return $ret; } - /* + /** + * Scan text for armored PGP blocks and, if they exist, convert the part + * to the embedded MIME representation. + * + * @return mixed See self::_getEmbeddedMimeParts(). */ protected function _parsePGP() { @@ -241,11 +245,17 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain } } - $new_part->setMimeId($mime_id); + $new_part->buildMimeIds($mime_id); return array($mime_id => $new_part); } + /** + * Scan text for UUencode data an, if it exists, convert the part to the + * embedded MIME representation. + * + * @return mixed See self::_getEmbeddedMimeParts(). + */ protected function _parseUUencode() { $text = String::convertCharset($this->_mimepart->getContents(), $this->_mimepart->getCharset()); @@ -277,7 +287,7 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain $new_part->addPart($uupart); } - $new_part->setMimeId($mime_id); + $new_part->buildMimeIds($mime_id); return array($mime_id => $new_part); } -- 2.11.0