Changeset 4903 for contrib/z-push
- Timestamp:
- 08/04/11 17:54:22 (13 years ago)
- Location:
- contrib/z-push
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/z-push/backend/imap.php
r4898 r4903 567 567 $lid = strtolower($id); 568 568 569 $trash_folder_name = 'inbox.trash'; 570 571 if(defined("IMAP_TRASHFOLDER")) 572 $trash_folder_name = strtolower(str_replace($this->_serverdelimiter, ".", IMAP_TRASHFOLDER)); 573 574 $sent_folder_name = 'inbox.sent'; 575 576 if(defined("IMAP_SENTFOLDER")) 577 $sent_folder_name = strtolower(str_replace($this->_serverdelimiter, ".", IMAP_SENTFOLDER)); 578 579 $folder->parentid = (($fhir && count($fhir) > 1) ? $fhir[(count($fhir) - 2)] : "0"); 580 569 581 if($lid == "inbox") { 570 582 $folder->parentid = "0"; // Root … … 573 585 } 574 586 // Zarafa IMAP-Gateway outputs 575 else if($lid == "drafts") { 576 $folder->parentid = "0"; 587 else if($lid == "drafts" || $lid == "inbox.drafts" || $lid == "inbox.rascunhos") { 577 588 $folder->displayname = "Drafts"; 578 589 $folder->type = SYNC_FOLDER_TYPE_DRAFTS; 579 590 } 580 else if($lid == "trash") { 581 $folder->parentid = "0"; 582 $folder->displayname = "Trash"; 591 else if($lid == "trash" || $lid == $trash_folder_name) { 592 $folder->displayname = (defined("IMAP_DISPLAYNAME_TRASHFOLDER") ? IMAP_DISPLAYNAME_TRASHFOLDER : "Trash"); 583 593 $folder->type = SYNC_FOLDER_TYPE_WASTEBASKET; 584 594 $this->_wasteID = $id; 585 595 } 586 else if($lid == "sent" || $lid == "sent items" || $lid == IMAP_SENTFOLDER) { 587 $folder->parentid = "0"; 588 $folder->displayname = "Sent"; 596 else if($lid == "sent" || $lid == "sent items" || $lid == $sent_folder_name) { 597 $folder->displayname = (defined("IMAP_DISPLAYNAME_SENTFOLDER") ? IMAP_DISPLAYNAME_SENTFOLDER : "Sent"); 589 598 $folder->type = SYNC_FOLDER_TYPE_SENTMAIL; 590 599 $this->_sentID = $id; 591 600 } 592 // courier-imap outputs593 else if($lid == "inbox.drafts") {594 $folder->parentid = $fhir[0];595 $folder->displayname = "Drafts";596 $folder->type = SYNC_FOLDER_TYPE_DRAFTS;597 }598 else if($lid == "inbox.trash") {599 $folder->parentid = $fhir[0];600 $folder->displayname = "Trash";601 $folder->type = SYNC_FOLDER_TYPE_WASTEBASKET;602 $this->_wasteID = $id;603 }604 else if($lid == "inbox.sent") {605 $folder->parentid = $fhir[0];606 $folder->displayname = "Sent";607 $folder->type = SYNC_FOLDER_TYPE_SENTMAIL;608 $this->_sentID = $id;609 }610 611 601 // define the rest as other-folders 612 602 else { -
contrib/z-push/config.php.template
r4897 r4903 82 82 // copy outgoing mail to this folder. If not set z-push will try the default folders 83 83 define('IMAP_SENTFOLDER', 'INBOX/Sent'); 84 84 // define('IMAP_TRASHFOLDER', 'INBOX/Lixeira'); 85 // 86 // define('IMAP_DISPLAYNAME_SENTFOLDER', 'Enviados'); 87 // define('IMAP_DISPLAYNAME_TRASHFOLDER', 'Lixeira'); 88 85 89 // ************************ 86 90 // BackendMaildir settings … … 111 115 define("LDAP_BIND_USER", "cn=admin,ou=expressolivre,ou=corp,dc=serpro,dc=gov,dc=br"); 112 116 define("LDAP_BIND_PASSWORD", "correio"); 113 117 114 118 define("LDAP_HOST", "ldap://10.200.112.132/"); // Address of your LDAP server 115 119 define("LDAP_PORT", "389"); // Port of your LDAP server
Note: See TracChangeset
for help on using the changeset viewer.