Sunday, January 24, 2010  New Gmail's COMPRESS=DEFLATE feature
Two days ago I noticed that Google implemented RFC4978 for their
mail service. In short, Gmail is able now to compress all
traffic with deflate method. Wanderlust shall support this
feature!  Unfortunately, my attempts to find ready-to-use
deflate/inflate code in Emacs Lisp have been failed. Even it is
impossible to access zlib functions from Emacs Lisp (Emacs links
with -lz) without hacking Emacs first. So I decided to write a
wrapper, which will stay in between of Emacs and gnutls-cli,
which I use for TLS. Gnutls-cli is fully text-oriented client,
so it has problem with handling binary data from standard input.
I did a small patch to fix it:  --- src/cli.c.orig     
2009-06-02 20:59:32.000000000 +0200 +++ src/cli.c   2010-01-24
17:48:05.636222100 +0100 @@ -749,7 +749,8 @@ after_handshake:
 if (FD_ISSET (fileno (stdin), &rset)) -         if (fgets
(buffer, MAX_BUF, stdin) == NULL) +         int bytes; +        
if ((bytes = read (fileno(st