aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-10 16:26:14 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-11-11 03:40:19 -0800
commit4cfb2a02778bac16e785bbea1fd6c665e34bd955 (patch)
treecdcdbe07c31858339ad4a4697444b2ab7cdb7d28 /notmuch-new.c
parent0b6349d70557589563f6eb2a23c2a1fa1330e54a (diff)
Avoid abbreviation, preferring notmuch_config_get_maildir_synchronize_flags
Since the name of the configuration parameter here is: maildir.synchronize_flags the convention is that the functions to get and set this parameter should match it in name. Hence: notmuch_config_get_maildir_synchronize_flags etc. (as opposed to notmuch_config_get_maildir_sync).
Diffstat (limited to 'notmuch-new.c')
-rw-r--r--notmuch-new.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/notmuch-new.c b/notmuch-new.c
index 273916e6..23e7afc5 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -45,7 +45,7 @@ typedef struct {
_filename_list_t *removed_files;
_filename_list_t *removed_directories;
- notmuch_bool_t maildir_sync;
+ notmuch_bool_t synchronize_flags;
} add_files_state_t;
static volatile sig_atomic_t do_add_files_print_progress = 0;
@@ -411,12 +411,12 @@ add_files_recursive (notmuch_database_t *notmuch,
state->added_messages++;
for (tag=state->new_tags; *tag != NULL; tag++)
notmuch_message_add_tag (message, *tag);
- if (state->maildir_sync == TRUE)
+ if (state->synchronize_flags == TRUE)
notmuch_message_maildir_to_tags (message, next);
break;
/* Non-fatal issues (go on to next file) */
case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:
- if (state->maildir_sync == TRUE)
+ if (state->synchronize_flags == TRUE)
notmuch_message_maildir_to_tags (message, next);
break;
case NOTMUCH_STATUS_FILE_NOT_EMAIL:
@@ -741,7 +741,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[])
return 1;
add_files_state.new_tags = notmuch_config_get_new_tags (config, &add_files_state.new_tags_length);
- add_files_state.maildir_sync = notmuch_config_get_maildir_sync (config);
+ add_files_state.synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config);
db_path = notmuch_config_get_database_path (config);
dot_notmuch_path = talloc_asprintf (ctx, "%s/%s", db_path, ".notmuch");