[Python-checkins] python/dist/src/Lib imaplib.py,1.70,1.71

loewis at users.sourceforge.net loewis at users.sourceforge.net
Tue Jul 27 07:07:22 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10583/Lib

Modified Files:
	imaplib.py 
Log Message:
Patch #998149: imaplib deleteacl and myrights.


Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** imaplib.py	2 Jun 2004 00:42:36 -0000	1.70
--- imaplib.py	27 Jul 2004 05:07:18 -0000	1.71
***************
*** 47,50 ****
--- 47,51 ----
          'CREATE':       ('AUTH', 'SELECTED'),
          'DELETE':       ('AUTH', 'SELECTED'),
+         'DELETEACL':    ('AUTH', 'SELECTED'),
          'EXAMINE':      ('AUTH', 'SELECTED'),
          'EXPUNGE':      ('SELECTED',),
***************
*** 53,56 ****
--- 54,58 ----
          'GETQUOTA':     ('AUTH', 'SELECTED'),
          'GETQUOTAROOT': ('AUTH', 'SELECTED'),
+         'MYRIGHTS':     ('AUTH', 'SELECTED'),
          'LIST':         ('AUTH', 'SELECTED'),
          'LOGIN':        ('NONAUTH',),
***************
*** 390,393 ****
--- 392,401 ----
          return self._simple_command('DELETE', mailbox)
  
+     def deleteacl(self, mailbox, who):
+         """Delete the ACLs (remove any rights) set for who on mailbox.
+ 
+         (typ, [data]) = <instance>.deleteacl(mailbox, who)
+         """
+         return self._simple_command('DELETEACL', mailbox, who)
  
      def expunge(self):
***************
*** 519,522 ****
--- 527,537 ----
          return self._untagged_response(typ, dat, name)
  
+     def myrights(self, mailbox):
+         """Show my ACLs for a mailbox (i.e. the rights that I have on mailbox).
+ 
+         (typ, [data]) = <instance>.myrights(mailbox)
+         """
+         typ,dat = self._simple_command('MYRIGHTS', mailbox)
+         return self._untagged_response(typ, dat, 'MYRIGHTS')
  
      def namespace(self):



More information about the Python-checkins mailing list