Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor fixes for the Fetch Server and Message for the classes to work.

  • Loading branch information...
commit 812e4eb048bdd6cc3539b81a6d09e91911b4fec9 1 parent c83a6e3
@Lumbendil Lumbendil authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/Fetch/Message.php
  2. +1 −1  src/Fetch/Server.php
View
6 src/Fetch/Message.php
@@ -18,7 +18,7 @@
* @package Fetch
* @author Robert Hafner <tedivm@tedivm.com>
*/
-class ImapMessage
+class Message
{
/**
* This is the connection/mailbox class that the email came from.
@@ -527,11 +527,11 @@ static function getParametersFromStructure($structure)
$parameters = array();
if(isset($structure->parameters))
foreach($structure->parameters as $parameter)
- $parameters[$parameter->attribute] = $parameter->value;
+ $parameters[strtolower($parameter->attribute)] = $parameter->value;
if(isset($structure->dparameters))
foreach($structure->dparameters as $parameter)
- $parameters[$parameter->attribute] = $parameter->value;
+ $parameters[strtolower($parameter->attribute)] = $parameter->value;
return $parameters;
}
View
2  src/Fetch/Server.php
@@ -308,7 +308,7 @@ public function search($criteria = 'ALL', $limit = null)
return $messages;
}else{
- false;
+ return array();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.