]> khamidou — GitHub mirrors - imapclient.git/commitdiff
initial README
authormsmits <none@none>
Wed, 2 May 2007 08:49:00 +0000 (08:49 +0000)
committermsmits <none@none>
Wed, 2 May 2007 08:49:00 +0000 (08:49 +0000)
imapclient/README [new file with mode: 0644]

diff --git a/imapclient/README b/imapclient/README
new file mode 100644 (file)
index 0000000..bdd6966
--- /dev/null
@@ -0,0 +1,73 @@
+Introduction
+------------
+imapclient.py aims to be a easy-to-use, Pythonic and complete IMAP client
+library with no dependencies outside the Python standard library. 
+
+Features:
+    - Arguments and return values are natural Python types. 
+    - IMAP server responses are fully parsed and readily useable. 
+    - IMAP unique message IDs (UIDs) are handled transparently. There is no
+      need to call different methods to use UIDs.
+    - Convenience methods are provided for commonly used functionality.
+    - Exceptions are raised when errors occur.
+
+Why imapclient.py?
+------------------
+You may ask: "why create another IMAP client library for Python? Doesn't the
+Python standard library already have imaplib?". 
+
+The problem with imaplib is that it's very low-level. It expects string values
+where lists or tuples would be more appropriate and returns server responses
+almost unparsed. As IMAP server responses can be quite complex this means
+everyone using imaplib ends up writing their own flimsy parsing routines which
+break easily. 
+
+Also, imaplib doesn't make good use of exceptions. This means you need to check
+the return value of each call to imaplib to see if what you just did was
+successful.
+
+imapclient.py actually uses imaplib internally. This may change at some point
+in the future.
+
+Current Status
+--------------
+imapclient.py is currently under development. It is incomplete and some API's
+may change in the near future. There's still a significant amount of IMAP
+functionality that the IMAPClient class doesn't cover yet.  That said, what's
+there now is documented, has been tested and should be fairly solid. 
+
+See the TODO file for planned developments.
+
+Using imapclient.py
+-------------------
+Install the single source file (imapclient.py) in your Python site-packages
+directory or where it makes sense for your application.
+
+See example.py for a simple example of how to use imapclient.py.
+
+The code is well documented. See the docstrings for more usage information.
+
+livetest.py
+-----------
+This is a standalone Python script which exercises IMAPClient against a live
+IMAP account. It performs operations and then attempts to confirm that these
+have been successful.
+
+It must be used with an account that has an INBOX folder and write access to
+the account. The folders and contents of the account don't matter.
+
+WARNING: The operations performed by livetest.py are destructive. Emails and
+folders in the test account WILL BE CHANGED AND DELETED. Please only run
+against a dummy account that you don't care about.
+
+Run livetest.py with the --help option to see usage.
+
+Please send me the output of livetest.py if it fails to run successfully
+against a particular IMAP server. Reports of successful runs are also welcome.
+Send the type and version of the IMAP server.
+
+Unit Tests
+----------
+There are fairly comprehensive unit tests for the FETCH response parser and
+related code in test_FetchParser.py. These tests use unittest and can be run
+using "python test_FetchParser.py".