Mercurial > dovecot > core-2.2
diff src/lib-storage/index/mbox/mbox-save.c @ 9002:9d0037a997f4 HEAD
Initial commit for config rewrite.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 Jan 2009 18:21:53 -0500 |
parents | a9dd29e7dc4f |
children | 21d4363a3cf7 |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-save.c Mon Jan 26 19:17:54 2009 -0500 +++ b/src/lib-storage/index/mbox/mbox-save.c Tue Jan 27 18:21:53 2009 -0500 @@ -393,8 +393,7 @@ } /* convert linefeeds to wanted format */ - ret = (ctx->mbox->storage->storage.flags & - MAIL_STORAGE_FLAG_SAVE_CRLF) != 0 ? + ret = ctx->mbox->storage->storage.set->mail_save_crlf ? i_stream_create_crlf(filter) : i_stream_create_lf(filter); i_stream_unref(&filter); @@ -542,8 +541,7 @@ this makes it impossible to save a mail that doesn't end with LF though. */ const char *linefeed = - (ctx->mbox->storage->storage.flags & - MAIL_STORAGE_FLAG_SAVE_CRLF) != 0 ? + ctx->mbox->storage->storage.set->mail_save_crlf ? "\r\n" : "\n"; if (o_stream_send_str(ctx->output, linefeed) < 0) return write_error(ctx);