Skip to content

imap: add support for COMPRESS=DEFLATE, RFC 4978

Fabian Groffen requested to merge grobian/mutt:imap-deflate into master
  • added mutt_zstrm which allows wrapping an existing connection with deflate/inflate (zlib compression)
  • call mutt_zstrm_wrap_conn when setting up an IMAP connection if the server supports COMPRESSION=DEFLATE and imap_deflate evaluates to yes
  • add config quad-option imap_deflate enable/disable use of (de)compression for IMAP connections, defaulting to yes
  • add configure check for zlib, --with-zlib to detect if mutt_zstrm can (or should) be built

Tested against a Dovecot IMAP server, observed easily 7x compression rates on received data, and 5x on sent data for a normal session. Rates can be observed when the connection is closed on debug level 4 and higher.

Bug: #92 (closed)

Merge request reports