[Python-checkins] python/dist/src/Lib imaplib.py,1.64,1.65

loewis at users.sourceforge.net loewis at users.sourceforge.net
Mon Nov 10 01:44:46 EST 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv16560/Lib

Modified Files:
	imaplib.py 
Log Message:
Patch #798297: Add IMAP THREAD command.


Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** imaplib.py	29 Jun 2003 04:21:43 -0000	1.64
--- imaplib.py	10 Nov 2003 06:44:44 -0000	1.65
***************
*** 70,73 ****
--- 70,74 ----
          'STORE':        ('SELECTED',),
          'SUBSCRIBE':    ('AUTH', 'SELECTED'),
+         'THREAD':       ('SELECTED',),
          'UID':          ('SELECTED',),
          'UNSUBSCRIBE':  ('AUTH', 'SELECTED'),
***************
*** 678,681 ****
--- 679,692 ----
          """
          return self._simple_command('SUBSCRIBE', mailbox)
+ 
+ 
+     def thread(self, threading_algorithm, charset, *search_criteria):
+         """IMAPrev1 extension THREAD command.
+ 
+         (type, [data]) = <instance>.thread(threading_alogrithm, charset, search_criteria, ...)
+         """
+         name = 'THREAD'
+         typ, dat = self._simple_command(name, threading_algorithm, charset, *search_criteria)
+         return self._untagged_response(typ, dat, name)
  
  





More information about the Python-checkins mailing list