1: <?php
2: /**
3: * Handle SmartForward requests.
4: *
5: * Logic adapted from Z-Push, original copyright notices below.
6: *
7: * Copyright 2009-2012 Horde LLC (http://www.horde.org/)
8: *
9: * @author Michael J. Rubinsky <mrubinsk@horde.org>
10: * @package ActiveSync
11: */
12: /**
13: * Zarafa Deutschland GmbH, www.zarafaserver.de
14: * This file is distributed under GPL-2.0.
15: * Consult COPYING file for details
16: */
17: class Horde_ActiveSync_Request_SmartForward extends Horde_ActiveSync_Request_Base
18: {
19: /**
20: * Handle request
21: *
22: * @return boolean
23: */
24: public function handle()
25: {
26: // SmartForward is a normal 'send' except that you should attach the
27: // original message which is specified in the URL
28:
29: $rfc822 = $this->readStream();
30:
31: if (isset($_GET["ItemId"])) {
32: $orig = $_GET["ItemId"];
33: } else {
34: $orig = false;
35: }
36: if (isset($_GET["CollectionId"])) {
37: $parent = $_GET["CollectionId"];
38: } else {
39: $parent = false;
40: }
41:
42: return $this->_driver->sendMail($rfc822, $orig, false, $parent);
43: }
44: }