Rewrite IMAP command generator.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Apr 2010 00:04:46 +0000 (18:04 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 22 Apr 2010 17:33:29 +0000 (11:33 -0600)
commit6cb22c2a06e3a627b2a66c7ef859c76b1091dd1e
tree2b502bc70df153af69c4f2a7a62b51af29b04d67
parente5d68a9599c0cd64fa2e61148ddd95ecb870834b
Rewrite IMAP command generator.

An unfortunate IMAP implementation detail is the various ways strings
are handled.  Depending on the command, and different portions of the
command, different quoting styles are needed.  And to make things worse,
literals are always needed in certain cases (if CR or LF is present in
the string; if 8-bit characters are present).

Refactor the _sendLine() function to accept array input, with the
various elements of the array identified as the various IMAP string
types.  Then, in a central location, figure out how to quote/send the
command to the server.
framework/Imap_Client/lib/Horde/Imap/Client.php
framework/Imap_Client/lib/Horde/Imap/Client/Base.php
framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
framework/Imap_Client/package.xml