added conditional support for zipping attachments via Content-Encoding header