Ignore:
Timestamp:
08/20/12 11:05:48 (12 years ago)
Author:
marcosw
Message:

Ticket #3053 - Realizado atualização de permissões IMAP para mover/excluir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r7016 r7067  
    21592159                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
    21602160                /* 
    2161                  *   l - lookup (mailbox is visible to LIST/LSUB commands) 
    2162                  *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox) 
    2163                  *   s - keep seen/unseen information across sessions (STORE SEEN flag) 
    2164                  *   w - write (STORE flags other than SEEN and DELETED) 
    2165                  *   i - insert (perform APPEND, COPY into mailbox) 
    2166                  *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself) 
    2167                  *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy) 
    2168                  *   d - delete (STORE DELETED flag, perform EXPUNGE) 
    2169                  *   a - administer (perform SETACL) 
     2161                        * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to. 
     2162                        * r - read - Mailbox can be opened for reading. 
     2163                        * w - write - Message flags and keywords can be changed, except \Seen and \Deleted 
     2164                        * s - write-seen - \Seen flag can be changed 
     2165                        * t - write-deleted - \Deleted flag can be changed 
     2166                        * i - insert - Messages can be written or copied to the mailbox 
     2167                        * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts 
     2168                        * e - expunge - Messages can be expunged 
     2169                        * k - create - Mailboxes can be created (or renamed) directly under this mailbox (but not necessarily under its children, see ACL Inheritance section above) (renaming also requires delete rights) 
     2170                        * x - delete - Mailbox can be deleted 
     2171                        * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)  
    21702172                        */ 
    2171                         if (strpos($acl, "d") === false){ 
     2173                        if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){ 
    21722174                                $return['status'] = false; 
    21732175                        } 
     
    21762178                return $return; 
    21772179        } 
    2178  
    21792180 
    21802181        function refresh($params) 
     
    34743475                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
    34753476                /* 
    3476                  *   l - lookup (mailbox is visible to LIST/LSUB commands) 
    3477                  *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox) 
    3478                  *   s - keep seen/unseen information across sessions (STORE SEEN flag) 
    3479                  *   w - write (STORE flags other than SEEN and DELETED) 
    3480                  *   i - insert (perform APPEND, COPY into mailbox) 
    3481                  *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself) 
    3482                  *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy) 
    3483                  *   d - delete (STORE DELETED flag, perform EXPUNGE) 
    3484                  *   a - administer (perform SETACL) 
     3477                        * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to. 
     3478                        * r - read - Mailbox can be opened for reading. 
     3479                        * w - write - Message flags and keywords can be changed, except \Seen and \Deleted 
     3480                        * s - write-seen - \Seen flag can be changed 
     3481                        * t - write-deleted - \Deleted flag can be changed 
     3482                        * i - insert - Messages can be written or copied to the mailbox 
     3483                        * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts 
     3484                        * e - expunge - Messages can be expunged 
     3485                        * k - create - Mailboxes can be created (or renamed) directly under this mailbox (but not necessarily under its children, see ACL Inheritance section above) (renaming also requires delete rights) 
     3486                        * x - delete - Mailbox can be deleted 
     3487                        * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)  
    34853488                        */ 
    3486                         if (strpos($acl, "d") === false){ 
     3489                        if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){ 
    34873490                                $return['status'] = false; 
    34883491                                return $return; 
Note: See TracChangeset for help on using the changeset viewer.