mirror of https://github.com/djcb/mu.git
* minor update
This commit is contained in:
parent
f79170ac6c
commit
c48d290699
|
@ -320,8 +320,8 @@ mu_index_run (MuIndex *index, const char *path,
|
||||||
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
||||||
void *user_data)
|
void *user_data)
|
||||||
{
|
{
|
||||||
MuIndexCallbackData cb_data;
|
MuIndexCallbackData cb_data;
|
||||||
MuError rv;
|
MuError rv;
|
||||||
|
|
||||||
g_return_val_if_fail (index && index->_store, MU_ERROR);
|
g_return_val_if_fail (index && index->_store, MU_ERROR);
|
||||||
g_return_val_if_fail (msg_cb, MU_ERROR);
|
g_return_val_if_fail (msg_cb, MU_ERROR);
|
||||||
|
|
|
@ -298,16 +298,16 @@ index_title (const char* maildir, const char* xapiandir, gboolean color)
|
||||||
"]\n", maildir, xapiandir);
|
"]\n", maildir, xapiandir);
|
||||||
else
|
else
|
||||||
g_print ("indexing messages under %s [%s]\n",
|
g_print ("indexing messages under %s [%s]\n",
|
||||||
maildir, xapiandir);
|
maildir, xapiandir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static MuError
|
static MuError
|
||||||
cmd_index (MuIndex *midx, MuConfig *opts, MuIndexStats *stats, GError **err)
|
cmd_index (MuIndex *midx, MuConfig *opts, MuIndexStats *stats, GError **err)
|
||||||
{
|
{
|
||||||
IndexData idata;
|
IndexData idata;
|
||||||
MuError rv;
|
MuError rv;
|
||||||
gboolean show_progress;
|
gboolean show_progress;
|
||||||
|
|
||||||
if (!opts->quiet)
|
if (!opts->quiet)
|
||||||
index_title (opts->maildir,
|
index_title (opts->maildir,
|
||||||
|
@ -315,8 +315,10 @@ cmd_index (MuIndex *midx, MuConfig *opts, MuIndexStats *stats, GError **err)
|
||||||
!opts->nocolor);
|
!opts->nocolor);
|
||||||
|
|
||||||
show_progress = !opts->quiet && isatty(fileno(stdout));
|
show_progress = !opts->quiet && isatty(fileno(stdout));
|
||||||
idata.color = !opts->nocolor;
|
idata.color = !opts->nocolor;
|
||||||
|
|
||||||
newline_before_on();
|
newline_before_on();
|
||||||
|
|
||||||
rv = mu_index_run (midx, opts->maildir, opts->rebuild, stats,
|
rv = mu_index_run (midx, opts->maildir, opts->rebuild, stats,
|
||||||
show_progress ?
|
show_progress ?
|
||||||
(MuIndexMsgCallback)index_msg_cb :
|
(MuIndexMsgCallback)index_msg_cb :
|
||||||
|
|
Loading…
Reference in New Issue