mu: Change default max msg size to 500 Mb
Seems people are getting really big mails these days, so let's up the default (which is also what mu4e uses) to 500 Mb (which should be enough for everyone, always)
This commit is contained in:
@ -37,7 +37,9 @@
|
|||||||
#include "mu-util.h"
|
#include "mu-util.h"
|
||||||
|
|
||||||
#define MU_LAST_USED_MAILDIR_KEY "last_used_maildir"
|
#define MU_LAST_USED_MAILDIR_KEY "last_used_maildir"
|
||||||
#define MU_INDEX_MAX_FILE_SIZE (50*1000*1000) /* 50 Mb */
|
#define MU_INDEX_MAX_FILE_SIZE (500*1000*1000) /* 500 Mb */
|
||||||
|
/* apparently, people are getting really big mails, so let us index those (by
|
||||||
|
* default)*/
|
||||||
|
|
||||||
struct _MuIndex {
|
struct _MuIndex {
|
||||||
MuStore *_store;
|
MuStore *_store;
|
||||||
|
|||||||
@ -105,12 +105,13 @@ size to (for example) 1000, which will reduce memory consumption, but also
|
|||||||
substantially reduce the indexing performance.
|
substantially reduce the indexing performance.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-max-msg-size\fR=\fI<max msg size>\fR
|
\fB\-\-max-msg-size\fR=\fI<max msg size>\fR\
|
||||||
set the maximum size (in bytes) for messages. The default maximum (currently
|
set the maximum size (in bytes) for messages. The default maximum
|
||||||
at 50Mb) should be enough in most cases, but if you encounter warnings from
|
(currently at 500Mb) should be enough in most cases, but if you
|
||||||
\fBmu\fR about ignoring messsage because they are too big, you may want to
|
encounter warnings from \fBmu\fR about ignoring messsage because they
|
||||||
increase this. Note that the reason for having a maximum size is that big
|
are too big, you may want to increase this. Note that the reason for
|
||||||
messages require big memory allocations, which may lead to problems.
|
having a maximum size is that big messages require big memory
|
||||||
|
allocations, which may lead to problems.
|
||||||
|
|
||||||
.B NOTE:
|
.B NOTE:
|
||||||
It is not recommended to mix maildirs and sub-maildirs within the hierarchy
|
It is not recommended to mix maildirs and sub-maildirs within the hierarchy
|
||||||
|
|||||||
Reference in New Issue
Block a user