projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for custom message formatter.
[banana.git]
/
banana
/
mimepart.inc.php
diff --git
a/banana/mimepart.inc.php
b/banana/mimepart.inc.php
index
9a4b6ff
..
d086dbf
100644
(file)
--- a/
banana/mimepart.inc.php
+++ b/
banana/mimepart.inc.php
@@
-124,7
+124,7
@@
class BananaMimePart
return false;
}
return false;
}
- p
rotected
function getHeader($title, $filter = null)
+ p
ublic
function getHeader($title, $filter = null)
{
if (!isset($this->headers[$title])) {
return null;
{
if (!isset($this->headers[$title])) {
return null;
@@
-308,7
+308,7
@@
class BananaMimePart
if (strpos($line, ':') !== false) {
list($hdr, $val) = explode(":", $line, 2);
$hdr = strtolower($hdr);
if (strpos($line, ':') !== false) {
list($hdr, $val) = explode(":", $line, 2);
$hdr = strtolower($hdr);
- if (in_array($hdr, Banana::$msgparse_headers)) {
+ if (in_array($hdr, Banana::$msgparse_headers)) {
$headers[$hdr] = ltrim($val);
} else {
unset($hdr);
$headers[$hdr] = ltrim($val);
} else {
unset($hdr);
@@
-453,9
+453,9
@@
class BananaMimePart
public function toHtml()
{
public function toHtml()
{
- $signed =& $this->getSignedPart();
- if ($signed !== $this) {
- return $signed->toHtml();
+ $signed =& $this->getSignedPart();
+ if ($signed !== $this) {
+ return $signed->toHtml();
}
@list($type, $subtype) = $this->getType();
if ($type == 'image') {
}
@list($type, $subtype) = $this->getType();
if ($type == 'image') {