Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1592:8156b82727a8 HEAD
Added imap_max_line_length setting to config file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 02 Jul 2003 04:02:27 +0300 |
parents | 6eca99b727a0 |
children | 19ef482ece51 |
files | dovecot-example.conf src/master/mail-process.c src/master/master-settings.c src/master/master-settings.h |
diffstat | 4 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Wed Jul 02 03:57:24 2003 +0300 +++ b/dovecot-example.conf Wed Jul 02 04:02:27 2003 +0300 @@ -320,6 +320,11 @@ # files, so it shouldn't harm much even if this limit is set pretty high. #imap_process_size = 256 +# Maximum IMAP command line length in bytes. Some clients generate very long +# command lines with huge mailboxes, so you may need to raise this if you get +# "Too long argument" or "IMAP command line too large" errors often. +#imap_max_line_length = 65536 + # Support for dynamically loadable modules. #imap_use_modules = no #imap_modules = /usr/lib/dovecot/imap
--- a/src/master/mail-process.c Wed Jul 02 03:57:24 2003 +0300 +++ b/src/master/mail-process.c Wed Jul 02 04:02:27 2003 +0300 @@ -177,6 +177,8 @@ set->client_workarounds, NULL)); env_put(t_strdup_printf("MAIL_MAX_FLAG_LENGTH=%u", set->mail_max_flag_length)); + env_put(t_strdup_printf("IMAP_MAX_LINE_LENGTH=%u", + set->imap_max_line_length)); if (set->mail_save_crlf) env_put("MAIL_SAVE_CRLF=1");
--- a/src/master/master-settings.c Wed Jul 02 03:57:24 2003 +0300 +++ b/src/master/master-settings.c Wed Jul 02 04:02:27 2003 +0300 @@ -73,6 +73,7 @@ /* imap */ DEF(SET_STR, imap_executable), DEF(SET_INT, imap_process_size), + DEF(SET_INT, imap_max_line_length), DEF(SET_BOOL, imap_use_modules), DEF(SET_STR, imap_modules), @@ -186,6 +187,7 @@ /* imap */ MEMBER(imap_executable) PKG_LIBEXECDIR"/imap", MEMBER(imap_process_size) 256, + MEMBER(imap_max_line_length) 65536, MEMBER(imap_use_modules) FALSE, MEMBER(imap_modules) PKG_LIBDIR"/imap",
--- a/src/master/master-settings.h Wed Jul 02 03:57:24 2003 +0300 +++ b/src/master/master-settings.h Wed Jul 02 04:02:27 2003 +0300 @@ -57,6 +57,7 @@ /* imap */ const char *imap_executable; unsigned int imap_process_size; + unsigned int imap_max_line_length; int imap_use_modules; const char *imap_modules;