# Directory where mails can be temporarily stored. Usually it's used only for
# mails larger than >= 128 kB. It's used by various parts of Dovecot, for
-# example LDA/LMTP while delivering large mails or zlib plugin for keeping
-# uncompressed mails.
+# example LDA/LMTP while delivering large mails or mail-compress plugin for
+# keeping uncompressed mails.
#mail_temp_dir = /tmp
# Valid UID range for users, defaults to 500 and above. This is mostly
ctx->failed = TRUE;
}
if (mdata->output != dbox_output) {
- /* e.g. zlib plugin had changed this. make sure we
+ /* e.g. mail-compress plugin had changed this. make sure we
successfully write the trailer. */
ret = o_stream_finish(mdata->output);
} else {
(!maildir_filename_get_size(ctx->file_last->dest_basename,
MAILDIR_EXTRA_FILE_SIZE, &size) ||
size != ctx->file_last->size)) {
- /* e.g. zlib plugin was used. the "physical size" must be in
- the maildir filename, since stat() will return wrong size */
+ /* e.g. mail-compress plugin was used. the "physical size" must
+ be in the maildir filename, since stat() will return wrong
+ size */
ctx->file_last->preserve_filename = FALSE;
/* preserve the GUID if needed */
if (ctx->file_last->guid == NULL)
new_fname = maildir_filename_generate();
/* preserve S= and W= sizes if they're available.
- (S=size is required for zlib plugin to work) */
+ (S=size is required for mail-compress plugin to work) */
if (maildir_filename_get_size(fname2, MAILDIR_EXTRA_FILE_SIZE, &size)) {
new_fname = t_strdup_printf("%s,%c=%"PRIuUOFF_T,
new_fname, MAILDIR_EXTRA_FILE_SIZE, size);
mailbox_status.have_save_guids=TRUE) */
MAIL_STORAGE_CLASS_FLAG_HAVE_MAIL_SAVE_GUIDS = 0x80,
/* message content can be unstructured binary data
- (e.g. zlib plugin is allowed to compress/decompress mails) */
+ (e.g. mail-compress plugin is allowed to compress/decompress mails) */
MAIL_STORAGE_CLASS_FLAG_BINARY_DATA = 0x100,
/* Message GUIDs can only be 128bit (always set
mailbox_status.have_only_guid128) */
/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
/* FIXME: cache handling could be useful to move to Dovecot core, so that if
- we're using this plugin together with zlib plugin there would be just one
- cache. */
+ we're using this plugin together with compress plugin there would be just
+ one cache. */
#include "lib.h"
#include "ioloop.h"
}
/* decryption is the outmost stream, so add it before others
- (e.g. zlib) */
+ (e.g. mail-compress) */
if (!mail_crypt_is_stream_encrypted(*stream))
return mmail->super.istream_opened(_mail, stream);
mbox->pub_key = pub_key;
}
- /* encryption is the outermost layer (zlib etc. are inside) */
+ /* encryption is the outermost layer (mail-compress etc. are inside) */
struct ostream *output = o_stream_create_encrypt(ctx->data.output,
MAIL_CRYPT_ENC_ALGORITHM, pub_key, enc_flags);