Advertisement
Guest User

Combined Conf

a guest
Mar 10th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.28 KB | None | 0 0
  1. <?php
  2. /***********************************************
  3. * File      :   backend/combined/config.php
  4. * Project   :   Z-Push
  5. * Descr     :   configuration file for the
  6. *               combined backend.
  7. *
  8. * Created   :   29.11.2010
  9. *
  10. * Copyright 2007 - 2016 Zarafa Deutschland GmbH
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License, version 3,
  14. * as published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License
  22. * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  23. *
  24. * Consult LICENSE file for details
  25. ************************************************/
  26.  
  27. class BackendCombinedConfig {
  28.  
  29.     // *************************
  30.     //  BackendCombined settings
  31.     // *************************
  32.     /**
  33.      * Returns the configuration of the combined backend
  34.      *
  35.      * @access public
  36.      * @return array
  37.      *
  38.      */
  39.     public static function GetBackendCombinedConfig() {
  40.         //use a function for it because php does not allow
  41.         //assigning variables to the class members (expecting T_STRING)
  42.         return array(
  43.             //the order in which the backends are loaded.
  44.             //login only succeeds if all backend return true on login
  45.             //sending mail: the mail is sent with first backend that is able to send the mail
  46.             'backends' => array(
  47.                 'i' => array(
  48.                     'name' => 'BackendIMAP',
  49.                 ),
  50.                 'z' => array(
  51.                     'name' => 'BackendKopano',
  52.                 ),
  53.                 'm' => array(
  54.                     'name' => 'BackendMaildir',
  55.                 ),
  56.                 'v' => array(
  57.                     'name' => 'BackendVCardDir',
  58.                 ),
  59.                 'l' => array(
  60.                     'name' => 'BackendLDAP',
  61.                 ),
  62.                 'd' => array(
  63.                     'name' => 'BackendCardDAV',
  64.                 ),
  65.                 'c' => array(
  66.                     'name' => 'BackendCalDAV',
  67.                 ),
  68.             ),
  69.             'delimiter' => '/',
  70.             //force one type of folder to one backend
  71.             //it must match one of the above defined backends
  72.             'folderbackend' => array(
  73.                 SYNC_FOLDER_TYPE_INBOX => 'i',
  74.                 SYNC_FOLDER_TYPE_DRAFTS => 'i',
  75.                 SYNC_FOLDER_TYPE_WASTEBASKET => 'i',
  76.                 SYNC_FOLDER_TYPE_SENTMAIL => 'i',
  77.                 SYNC_FOLDER_TYPE_OUTBOX => 'i',
  78.                 SYNC_FOLDER_TYPE_TASK => 'c',
  79.                 SYNC_FOLDER_TYPE_APPOINTMENT => 'c',
  80.                 SYNC_FOLDER_TYPE_CONTACT => 'd',
  81.                 SYNC_FOLDER_TYPE_NOTE => 'c',
  82.                 SYNC_FOLDER_TYPE_JOURNAL => 'c',
  83.                 SYNC_FOLDER_TYPE_OTHER => 'i',
  84.             ),
  85.             //creating a new folder in the root folder should create a folder in one backend
  86.             'rootcreatefolderbackend' => 'i',
  87.         );
  88.     }
  89.  
  90.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement