Beispiel #1
0
 /**
  * Management function to get the ACL's listed on the server
  *
  * @param void
  * @access public
  * @return stdObject
  */
 public function getACL()
 {
     return @imap_getacl($this->conn, $this->mailbox);
 }
Beispiel #2
0
 /**
  * Retrieve the access rights for a folder.
  *
  * @param string $folder The folder to retrieve the ACL for.
  *
  * @return array An array of rights.
  */
 public function getAcl($folder)
 {
     $result = imap_getacl($this->getBackend(), $this->encodePath($folder));
     if (!$result) {
         throw new Horde_Kolab_Storage_Exception(sprintf(Horde_Kolab_Storage_Translation::t("Failed reading ACL on folder %s.") . ' ' . Horde_Kolab_Storage_Translation::t("Error: %s"), $folder, imap_last_error()));
     }
     return $result;
 }
 function getaclfrombox($mail)
 {
     $mailArray = explode('@', $mail);
     $boxacl = $mailArray[0];
     $return = array();
     if (!$this->mbox) {
         $this->open_mbox();
     }
     $mbox_acl = imap_getacl($this->mbox, 'user' . $this->imap_delimiter . $boxacl);
     foreach ($mbox_acl as $user => $acl) {
         if ($user != $boxacl) {
             $return[$user] = $acl;
         }
     }
     return $return;
 }
Beispiel #4
0
 public function getacl($mailbox)
 {
     return imap_getacl($this->imapStream, $mailbox);
 }