mirror of https://github.com/djcb/mu.git
config: add message-size, batch-size option for init
This commit is contained in:
parent
c8e8004f29
commit
63a8c72b74
|
@ -144,10 +144,17 @@ config_options_group_init (void)
|
||||||
{"my-address", 0, 0, G_OPTION_ARG_STRING_ARRAY,
|
{"my-address", 0, 0, G_OPTION_ARG_STRING_ARRAY,
|
||||||
&MU_CONFIG.my_addresses, "my e-mail address; can be used multiple times",
|
&MU_CONFIG.my_addresses, "my e-mail address; can be used multiple times",
|
||||||
"<address>"},
|
"<address>"},
|
||||||
|
{"max-message-size", 0, 0, G_OPTION_ARG_INT,
|
||||||
|
&MU_CONFIG.max_msg_size, "Maximum allowed size for messages",
|
||||||
|
"<size-in-bytes>"},
|
||||||
|
{"batch-size", 0, 0, G_OPTION_ARG_INT,
|
||||||
|
&MU_CONFIG.max_msg_size,
|
||||||
|
"Number of changes in a database transaction batch",
|
||||||
|
"<number>"},
|
||||||
{NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
|
{NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
og = g_option_group_new("init", "Options for the 'index' command",
|
og = g_option_group_new("init", "Options for the 'init' command",
|
||||||
"", NULL, NULL);
|
"", NULL, NULL);
|
||||||
g_option_group_add_entries(og, entries);
|
g_option_group_add_entries(og, entries);
|
||||||
|
|
||||||
|
|
|
@ -109,16 +109,18 @@ struct _MuConfig {
|
||||||
|
|
||||||
/* options for init */
|
/* options for init */
|
||||||
gchar *maildir; /* where the mails are */
|
gchar *maildir; /* where the mails are */
|
||||||
char** my_addresses; /* 'my e-mail address', for mu
|
char** my_addresses; /* 'my e-mail address', for mu cfind;
|
||||||
* cfind; can be use multiple
|
* can be use multiple times */
|
||||||
* times */
|
int max_msg_size; /* maximum size for message files */
|
||||||
|
int batch_size; /* database transaction batch size */
|
||||||
|
|
||||||
/* options for indexing */
|
/* options for indexing */
|
||||||
|
|
||||||
gboolean nocleanup; /* don't cleanup del'd mails from db */
|
gboolean nocleanup; /* don't cleanup del'd mails from db */
|
||||||
gboolean rebuild; /* empty the database before indexing */
|
gboolean rebuild; /* empty the database before indexing */
|
||||||
gboolean lazycheck; /* don't check dirs with up-to-date
|
gboolean lazycheck; /* don't check dirs with up-to-date
|
||||||
* timestamps */
|
* timestamps */
|
||||||
int max_msg_size; /* maximum size for message files */
|
|
||||||
|
|
||||||
/* options for querying 'find' (and view-> 'summary') */
|
/* options for querying 'find' (and view-> 'summary') */
|
||||||
gchar *fields; /* fields to show in output */
|
gchar *fields; /* fields to show in output */
|
||||||
|
|
Loading…
Reference in New Issue