source: trunk/zpush/lib/syncobjects/syncsendmail.php @ 7589

Revision 7589, 4.2 KB checked in by douglas, 11 years ago (diff)

Ticket #3209 - Integrar módulo de sincronização Z-push ao Expresso

Line 
1<?php
2/***********************************************
3* File      :   syncsendmail.php
4* Project   :   Z-Push
5* Descr     :   WBXML sendmail entities that
6*               can be parsed directly (as a
7*               stream) from WBXML.
8*               It is automatically decoded
9*               according to $mapping,
10*               and the Sync WBXML mappings.
11*
12* Created   :   30.01.2012
13*
14* Copyright 2007 - 2012 Zarafa Deutschland GmbH
15*
16* This program is free software: you can redistribute it and/or modify
17* it under the terms of the GNU Affero General Public License, version 3,
18* as published by the Free Software Foundation with the following additional
19* term according to sec. 7:
20*
21* According to sec. 7 of the GNU Affero General Public License, version 3,
22* the terms of the AGPL are supplemented with the following terms:
23*
24* "Zarafa" is a registered trademark of Zarafa B.V.
25* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
26* The licensing of the Program under the AGPL does not imply a trademark license.
27* Therefore any rights, title and interest in our trademarks remain entirely with us.
28*
29* However, if you propagate an unmodified version of the Program you are
30* allowed to use the term "Z-Push" to indicate that you distribute the Program.
31* Furthermore you may use our trademarks where it is necessary to indicate
32* the intended purpose of a product or service provided you use it in accordance
33* with honest practices in industrial or commercial matters.
34* If you want to propagate modified versions of the Program under the name "Z-Push",
35* you may only do so if you have a written permission by Zarafa Deutschland GmbH
36* (to acquire a permission please contact Zarafa at trademark@zarafa.com).
37*
38* This program is distributed in the hope that it will be useful,
39* but WITHOUT ANY WARRANTY; without even the implied warranty of
40* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41* GNU Affero General Public License for more details.
42*
43* You should have received a copy of the GNU Affero General Public License
44* along with this program.  If not, see <http://www.gnu.org/licenses/>.
45*
46* Consult LICENSE file for details
47************************************************/
48
49class SyncSendMail extends SyncObject {
50    public $clientid;
51    public $saveinsent;
52    public $replacemime;
53    public $accountid;
54    public $source;
55    public $mime;
56    public $replyflag;
57    public $forwardflag;
58
59    function SyncSendMail() {
60        $mapping = array (
61                    SYNC_COMPOSEMAIL_CLIENTID                             => array (  self::STREAMER_VAR      => "clientid"),
62
63                    SYNC_COMPOSEMAIL_SAVEINSENTITEMS                      => array (  self::STREAMER_VAR      => "saveinsent",
64                                                                                      self::STREAMER_PROP     => self::STREAMER_TYPE_SEND_EMPTY),
65
66                    SYNC_COMPOSEMAIL_REPLACEMIME                          => array (  self::STREAMER_VAR      => "replacemime",
67                                                                                      self::STREAMER_PROP     => self::STREAMER_TYPE_SEND_EMPTY),
68
69                    SYNC_COMPOSEMAIL_ACCOUNTID                            => array (  self::STREAMER_VAR      => "accountid"),
70
71                    SYNC_COMPOSEMAIL_SOURCE                               => array (  self::STREAMER_VAR      => "source",
72                                                                                      self::STREAMER_TYPE     => "SyncSendMailSource"),
73
74                    SYNC_COMPOSEMAIL_MIME                                 => array (  self::STREAMER_VAR      => "mime"),
75
76                    SYNC_COMPOSEMAIL_REPLYFLAG                            => array (  self::STREAMER_VAR      => "replyflag",
77                                                                                      self::STREAMER_TYPE     => self::STREAMER_TYPE_IGNORE),
78
79                    SYNC_COMPOSEMAIL_FORWARDFLAG                          => array (  self::STREAMER_VAR      => "forwardflag",
80                                                                                      self::STREAMER_TYPE     => self::STREAMER_TYPE_IGNORE),
81        );
82
83        parent::SyncObject($mapping);
84    }
85}
86?>
Note: See TracBrowser for help on using the repository browser.