暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

usr_share_z-push_backend_combined_config.php.j2 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. class BackendCombinedConfig {
  27. // *************************
  28. // BackendCombined settings
  29. // *************************
  30. /**
  31. * Returns the configuration of the combined backend
  32. *
  33. * @access public
  34. * @return array
  35. *
  36. */
  37. public static function GetBackendCombinedConfig() {
  38. //use a function for it because php does not allow
  39. //assigning variables to the class members (expecting T_STRING)
  40. return array(
  41. //the order in which the backends are loaded.
  42. //login only succeeds if all backend return true on login
  43. //sending mail: the mail is sent with first backend that is able to send the mail
  44. 'backends' => array(
  45. 'i' => array(
  46. 'name' => 'BackendIMAP',
  47. ),
  48. 'd' => array(
  49. 'name' => 'BackendCardDAV',
  50. ),
  51. 'c' => array(
  52. 'name' => 'BackendCalDAV',
  53. ),
  54. ),
  55. 'delimiter' => '/',
  56. //force one type of folder to one backend
  57. //it must match one of the above defined backends
  58. 'folderbackend' => array(
  59. SYNC_FOLDER_TYPE_INBOX => 'i',
  60. SYNC_FOLDER_TYPE_DRAFTS => 'i',
  61. SYNC_FOLDER_TYPE_WASTEBASKET => 'i',
  62. SYNC_FOLDER_TYPE_SENTMAIL => 'i',
  63. SYNC_FOLDER_TYPE_OUTBOX => 'i',
  64. SYNC_FOLDER_TYPE_TASK => 'c',
  65. SYNC_FOLDER_TYPE_APPOINTMENT => 'c',
  66. SYNC_FOLDER_TYPE_CONTACT => 'd',
  67. SYNC_FOLDER_TYPE_NOTE => 'c',
  68. SYNC_FOLDER_TYPE_JOURNAL => 'c',
  69. SYNC_FOLDER_TYPE_OTHER => 'i',
  70. SYNC_FOLDER_TYPE_USER_MAIL => 'i',
  71. SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'c',
  72. SYNC_FOLDER_TYPE_USER_CONTACT => 'd',
  73. SYNC_FOLDER_TYPE_USER_TASK => 'c',
  74. SYNC_FOLDER_TYPE_USER_JOURNAL => 'c',
  75. SYNC_FOLDER_TYPE_USER_NOTE => 'c',
  76. SYNC_FOLDER_TYPE_UNKNOWN => 'i',
  77. ),
  78. //creating a new folder in the root folder should create a folder in one backend
  79. 'rootcreatefolderbackend' => 'i',
  80. );
  81. }
  82. }