Back to index

d-push  2.0
syncsendmail.php
Go to the documentation of this file.
00001 <?php
00002 /***********************************************
00003 * File      :   syncsendmail.php
00004 * Project   :   Z-Push
00005 * Descr     :   WBXML sendmail entities that
00006 *               can be parsed directly (as a
00007 *               stream) from WBXML.
00008 *               It is automatically decoded
00009 *               according to $mapping,
00010 *               and the Sync WBXML mappings.
00011 *
00012 * Created   :   30.01.2012
00013 *
00014 * Copyright 2007 - 2012 Zarafa Deutschland GmbH
00015 *
00016 * This program is free software: you can redistribute it and/or modify
00017 * it under the terms of the GNU Affero General Public License, version 3,
00018 * as published by the Free Software Foundation with the following additional
00019 * term according to sec. 7:
00020 *
00021 * According to sec. 7 of the GNU Affero General Public License, version 3,
00022 * the terms of the AGPL are supplemented with the following terms:
00023 *
00024 * "Zarafa" is a registered trademark of Zarafa B.V.
00025 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00026 * The licensing of the Program under the AGPL does not imply a trademark license.
00027 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00028 *
00029 * However, if you propagate an unmodified version of the Program you are
00030 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00031 * Furthermore you may use our trademarks where it is necessary to indicate
00032 * the intended purpose of a product or service provided you use it in accordance
00033 * with honest practices in industrial or commercial matters.
00034 * If you want to propagate modified versions of the Program under the name "Z-Push",
00035 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00036 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00037 *
00038 * This program is distributed in the hope that it will be useful,
00039 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00040 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00041 * GNU Affero General Public License for more details.
00042 *
00043 * You should have received a copy of the GNU Affero General Public License
00044 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00045 *
00046 * Consult LICENSE file for details
00047 ************************************************/
00048 
00049 class SyncSendMail extends SyncObject {
00050     public $clientid;
00051     public $saveinsent;
00052     public $replacemime;
00053     public $accountid;
00054     public $source;
00055     public $mime;
00056     public $replyflag;
00057     public $forwardflag;
00058 
00059     function SyncSendMail() {
00060         $mapping = array (
00061                     SYNC_COMPOSEMAIL_CLIENTID                             => array (  self::STREAMER_VAR      => "clientid"),
00062 
00063                     SYNC_COMPOSEMAIL_SAVEINSENTITEMS                      => array (  self::STREAMER_VAR      => "saveinsent",
00064                                                                                       self::STREAMER_TYPE     => self::STREAMER_TYPE_SEND_EMPTY),
00065 
00066                     SYNC_COMPOSEMAIL_REPLACEMIME                          => array (  self::STREAMER_VAR      => "replacemime",
00067                                                                                       self::STREAMER_TYPE     => self::STREAMER_TYPE_SEND_EMPTY),
00068 
00069                     SYNC_COMPOSEMAIL_ACCOUNTID                            => array (  self::STREAMER_VAR      => "accountid"),
00070 
00071                     SYNC_COMPOSEMAIL_SOURCE                               => array (  self::STREAMER_VAR      => "source",
00072                                                                                       self::STREAMER_TYPE     => "SyncSendMailSource"),
00073 
00074                     SYNC_COMPOSEMAIL_MIME                                 => array (  self::STREAMER_VAR      => "mime"),
00075 
00076                     SYNC_COMPOSEMAIL_REPLYFLAG                            => array (  self::STREAMER_VAR      => "replyflag",
00077                                                                                       self::STREAMER_TYPE     => self::STREAMER_TYPE_IGNORE),
00078 
00079                     SYNC_COMPOSEMAIL_FORWARDFLAG                          => array (  self::STREAMER_VAR      => "forwardflag",
00080                                                                                       self::STREAMER_TYPE     => self::STREAMER_TYPE_IGNORE),
00081         );
00082 
00083         parent::SyncObject($mapping);
00084     }
00085 }
00086 ?>