Adam Manock writes:

> "sqwebmail-1.0.3/Install" states:
> 
>       * --with-maxmsgsize=n - maximum size of messages (including
>         attachments. Defaults to 2097152 (two megabytes). Note that
>         attachments are base64-encoded, which adds 25% overhead, so the
>         maximum size of attachments is really about 1.5 megabytes
> 
> I added --with-maxmsgsize=14000000 to the list of configure options in
> sqwebmail.spec and built (in SPECS) with rpm -bb and I am still limited
> to 2Mb on attachment uploads. I also added --enable-https and that
> worked, so I'm sure the right spec file was being used for the build.
> 
> I did notice that maxmsgsize doesn't appear in configure anymore...
> 
> Does the option still work / exist??

You're running into a different limit -- a limit on the maximum size of an
HTTP POST transaction.  

They are set in cgi/cgi.c. You need to either change it directly, or
override the #define via CFLAGS:

CFLAGS="-DCGIMAXFORMDATAARG=14000000" ./configure [options]

The reason for a different limit is that cgi POSTS are written into a
temporary file in /tmp before they are decoded.  

Besides your other disk space requirements, you better make sure now that
you'll have at least 14 meg free in /tmp.

-- 
Sam

Reply via email to