[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgroupware mailpipe.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgroupware mailpipe.php |
Date: |
Wed, 27 Dec 2006 03:03:04 +0000 |
CVSROOT: /sources/phpgroupware
Module name: phpgroupware
Changes by: Dave Hall <skwashd> 06/12/27 03:03:04
Modified files:
. : mailpipe.php
Log message:
renaming new mail handler classes to work with prefixed classes names
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/mailpipe.php?cvsroot=phpgroupware&r1=1.1&r2=1.2
Patches:
Index: mailpipe.php
===================================================================
RCS file: /sources/phpgroupware/phpgroupware/mailpipe.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- mailpipe.php 26 Dec 2006 07:20:39 -0000 1.1
+++ mailpipe.php 27 Dec 2006 03:03:04 -0000 1.2
@@ -45,7 +45,7 @@
include_once($phpgw_root . '/header.inc.php');
- $msg = createObject('phpgwapi.phpgwapi_mail2array');
+ $msg = createObject('phpgwapi.mail2array');
$msg->parse_input(file_get_contents('php://stdin'));
$login = sender2phpgw_id($msg->from_email);
@@ -62,11 +62,11 @@
$sessionid = $GLOBALS['phpgw']->session->create($login, '',
'known'); //assume email is legit - possible DDoS vector ?
- $mail_handlers =
createObject('phpgwapi.phpgwapi_mail_handlers');
+ $mail_handlers = createObject('phpgwapi.mail_handlers');
$handler = $mail_handlers->get_handler($email_to);
- if ( $handler )
+ if ( count($handler) )
{
- $error = execMethod($handler, $msg);
+ $error = execMethod($handler['handler'], $msg,
$handler['handler_id']);
}
else
{