summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
653a7e8)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14314
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* @return object Message object
* @todo define argument and return types
*/
* @return object Message object
* @todo define argument and return types
*/
- function parseStructure($read, &$i, $sub_msg = '') {
+ static function parseStructure($read, &$i, $sub_msg = '') {
$msg = Message::parseBodyStructure($read, $i, $sub_msg);
if($msg) $msg->setEntIds($msg,false,0);
return $msg;
$msg = Message::parseBodyStructure($read, $i, $sub_msg);
if($msg) $msg->setEntIds($msg,false,0);
return $msg;
* @todo document me
* @since 1.4.0 (code was part of parseStructure() in 1.3.x)
*/
* @todo document me
* @since 1.4.0 (code was part of parseStructure() in 1.3.x)
*/
- function parseBodyStructure($read, &$i, $sub_msg = '') {
+ static function parseBodyStructure($read, &$i, $sub_msg = '') {
$arg_no = 0;
$arg_a = array();
if ($sub_msg) {
$arg_no = 0;
$arg_a = array();
if ($sub_msg) {
$msg->header->type0 = 'multipart';
$msg->type0 = 'multipart';
while ($read{$i} == '(') {
$msg->header->type0 = 'multipart';
$msg->type0 = 'multipart';
while ($read{$i} == '(') {
- $msg->addEntity($msg->parseBodyStructure($read, $i, $msg));
+ $msg->addEntity(Message::parseBodyStructure($read, $i, $msg));
while (($i < $cnt) && ($read{$i} != '(')) {
++$i;
}
while (($i < $cnt) && ($read{$i} != '(')) {
++$i;
}
- $msg->addEntity($msg->parseBodyStructure($read, $i,$msg));
+ $msg->addEntity(Message::parseBodyStructure($read, $i,$msg));