* mu cfind: some fixes
This commit is contained in:
@ -143,7 +143,7 @@ each_contact (const char *email, const char *name, gboolean personal,
|
||||
if (ecdata->personal && !personal)
|
||||
return;
|
||||
|
||||
if (ecdata->after < tstamp)
|
||||
if (tstamp < ecdata->after)
|
||||
return;
|
||||
|
||||
switch (ecdata->format) {
|
||||
|
||||
@ -424,7 +424,8 @@ with_store (store_func func, MuConfig *opts, gboolean read_only,
|
||||
store = mu_store_new_writable
|
||||
(mu_runtime_path(MU_RUNTIME_PATH_XAPIANDB),
|
||||
mu_runtime_path(MU_RUNTIME_PATH_CONTACTS),
|
||||
opts->my_addresses, opts->rebuild, err);
|
||||
(const char**)opts->my_addresses,
|
||||
opts->rebuild, err);
|
||||
if (!store)
|
||||
return MU_G_ERROR_CODE(err);
|
||||
else {
|
||||
|
||||
@ -271,8 +271,6 @@ set_group_cfind_defaults (void)
|
||||
MU_CONFIG.format = MU_CONFIG_FORMAT_PLAIN;
|
||||
else
|
||||
MU_CONFIG.format = get_output_format (MU_CONFIG.formatstr);
|
||||
|
||||
MU_CONFIG.after = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -137,7 +137,7 @@ struct _MuConfig {
|
||||
* multiple messages in mu
|
||||
* view */
|
||||
/* options for cfind */
|
||||
gboolean personal; /* only show 'personal' addresses */b
|
||||
gboolean personal; /* only show 'personal' addresses */
|
||||
time_t after; /* only show addresses last
|
||||
* seen after T */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user