2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
38 $dictionary['InboundEmail'] = array('table' => 'inbound_email', 'comment' => 'Inbound email parameters',
44 'dbType' => 'varchar',
48 'comment' => 'Unique identifier'
52 'vname' => 'LBL_DELETED',
57 'comment' => 'Record deltion indicator'
59 'date_entered' => array (
60 'name' => 'date_entered',
61 'vname' => 'LBL_DATE_ENTERED',
64 'comment' => 'Date record created'
66 'date_modified' => array (
67 'name' => 'date_modified',
68 'vname' => 'LBL_DATE_MODIFIED',
71 'comment' => 'Date record last modified'
73 'modified_user_id' => array (
74 'name' => 'modified_user_id',
75 'rname' => 'user_name',
76 'id_name' => 'modified_user_id',
77 'vname' => 'LBL_MODIFIED_BY',
78 'type' => 'modified_user_name',
83 'comment' => 'User who last modified record'
85 'modified_user_id_link' => array (
86 'name' => 'modified_user_id_link',
88 'relationship' => 'inbound_email_modified_user_id',
89 'vname' => 'LBL_MODIFIED_BY_USER',
92 'bean_name' => 'User',
95 'created_by' => array (
96 'name' => 'created_by',
97 'rname' => 'user_name',
98 'id_name' => 'modified_user_id',
99 'vname' => 'LBL_ASSIGNED_TO',
100 'type' => 'assigned_user_name',
104 'comment' => 'User who created record'
106 'created_by_link' => array (
107 'name' => 'created_by_link',
109 'relationship' => 'inbound_email_created_by',
110 'vname' => 'LBL_CREATED_BY_USER',
111 'link_type' => 'one',
113 'bean_name' => 'User',
114 'source' => 'non-db',
118 'vname' => 'LBL_NAME',
122 'reportable' => false,
123 'comment' => 'Name given to the inbound email mailbox'
127 'vname' => 'LBL_STATUS',
130 'default' => 'Active',
132 'reportable' => false,
133 'comment' => 'Status of the inbound email mailbox (ex: Active or Inactive)'
135 'server_url' => array (
136 'name' => 'server_url',
137 'vname' => 'LBL_SERVER_URL',
141 'reportable' => false,
142 'comment' => 'Mail server URL',
143 'importable' => 'required',
145 'email_user' => array (
146 'name' => 'email_user',
147 'vname' => 'LBL_LOGIN',
151 'reportable' => false,
152 'comment' => 'User name allowed access to mail server'
154 'email_password' => array (
155 'name' => 'email_password',
156 'vname' => 'LBL_PASSWORD',
160 'reportable' => false,
161 'comment' => 'Password of user identified by email_user'
165 'vname' => 'LBL_SERVER_TYPE',
169 'reportable' => false,
170 'validation' => array ('type' => 'range', 'min' => '110', 'max' => '65535'),
171 'comment' => 'Port used to access mail server'
175 'vname' => 'LBL_SERVICE',
179 'reportable' => false,
181 'importable' => 'required',
185 'vname' => 'LBL_MAILBOX',
188 'reportable' => false,
191 'delete_seen' => array (
192 'name' => 'delete_seen',
193 'vname' => 'LBL_DELETE_SEEN',
196 'reportable' => false,
198 'comment' => 'Delete email from server once read (seen)'
200 'mailbox_type' => array (
201 'name' => 'mailbox_type',
202 'vname' => 'LBL_MAILBOX_TYPE',
205 'reportable' => false,
208 'template_id' => array (
209 'name' => 'template_id',
210 'vname' => 'LBL_AUTOREPLY',
213 'reportable' => false,
214 'comment' => 'Template used for auto-reply'
216 'stored_options' => array (
217 'name' => 'stored_options',
218 'vname' => 'LBL_STORED_OPTIONS',
220 'reportable' => false,
223 'group_id' => array (
224 'name' => 'group_id',
225 'vname' => 'LBL_GROUP_ID',
227 'reportable' => false,
228 'comment' => 'Group ID (unused)'
230 'is_personal' => array (
231 'name' => 'is_personal',
232 'vname' => 'LBL_IS_PERSONAL',
238 'comment' => 'Personal account flag'
240 'groupfolder_id' => array (
241 'name' => 'groupfolder_id',
242 'vname' => 'LBL_GROUPFOLDER_ID',
246 'comment' => 'Unique identifier'
248 ), /* end fields() */
251 'name' =>'inbound_emailpk',
258 'relationships' => array (
259 'inbound_email_created_by' => array(
260 'lhs_module'=> 'Users',
261 'lhs_table' => 'users',
263 'rhs_module'=> 'InboundEmail',
264 'rhs_table'=> 'inbound_email',
265 'rhs_key' => 'created_by',
266 'relationship_type' => 'one-to-one'
268 'inbound_email_modified_user_id' => array (
269 'lhs_module' => 'Users',
270 'lhs_table' => 'users',
272 'rhs_module'=> 'InboundEmail',
273 'rhs_table'=> 'inbound_email',
274 'rhs_key' => 'modified_user_id',
275 'relationship_type' => 'one-to-one'
277 ), /* end relationships */
281 VardefManager::createVardef('InboundEmail','InboundEmail', array(