]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Added imap_max_line_length setting to config file.
authorTimo Sirainen <tss@iki.fi>
Wed, 2 Jul 2003 01:02:27 +0000 (04:02 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 2 Jul 2003 01:02:27 +0000 (04:02 +0300)
--HG--
branch : HEAD

dovecot-example.conf
src/master/mail-process.c
src/master/master-settings.c
src/master/master-settings.h

index 705bd9261031fd3530a96864118083443c48a9de..53f426483148f4996d9836097534d759095b301f 100644 (file)
@@ -320,6 +320,11 @@ login = pop3
 # 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
index fda905a1fb876228f1fd8f8fc0e74d24aef92dee..abeb2b63305dbee91a9f9969bf6fdaa64b53fbdd 100644 (file)
@@ -177,6 +177,8 @@ int create_mail_process(int socket, struct ip_addr *ip,
                            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");
index 68d955498700b41de88b3aa753ca752dff67720e..f045c66fcf5ce8496c07af83456f37ef91e3b04a 100644 (file)
@@ -73,6 +73,7 @@ static struct setting_def setting_defs[] = {
        /* 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 @@ struct settings default_settings = {
        /* 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",
 
index 9756b81b52eb1517f7608d748a76c45228f86bbf..3dd18c5f662a2c776fbaaa7474acdef2a1a75f5b 100644 (file)
@@ -57,6 +57,7 @@ struct settings {
        /* imap */
        const char *imap_executable;
        unsigned int imap_process_size;
+       unsigned int imap_max_line_length;
        int imap_use_modules;
        const char *imap_modules;