From: luz.paz Date: Thu, 4 Oct 2018 22:52:16 +0000 (-0400) Subject: global: Fix spelling X-Git-Tag: 2.4.0~4322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a88e4f74ef4934a19eb3440721f752f3bfb74c5f;p=thirdparty%2Fdovecot%2Fcore.git global: Fix spelling Found via `codespell -q 3` --- diff --git a/doc/man/doveadm-rebuild.1.in b/doc/man/doveadm-rebuild.1.in index d8261b62a3..18ab49f140 100644 --- a/doc/man/doveadm-rebuild.1.in +++ b/doc/man/doveadm-rebuild.1.in @@ -63,7 +63,7 @@ the given .PP In the fourth form, only matching mails of the given .IR user (s) -will be rebuilded +will be rebuilt .\"------------------------------------------------------------------------ @INCLUDE:global-options-formatter@ .\" --- command specific options --- "/. diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index f9cbd34e81..73053a8b5d 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -640,7 +640,7 @@ bool auth_request_handler_auth_begin(struct auth_request_handler *handler, return TRUE; } - /* Handle initial respose */ + /* Handle initial response */ if (initial_resp == NULL) { /* No initial response */ request->initial_response = NULL; diff --git a/src/director/director-connection.c b/src/director/director-connection.c index a89cc2e4f2..697bd6487f 100644 --- a/src/director/director-connection.c +++ b/src/director/director-connection.c @@ -896,7 +896,7 @@ static bool director_cmd_director(struct director_connection *conn, /* already have this. just reset its last_network_failure timestamp, since it might be up now, but only if this - isn't part of the handshake. (if it was, reseting the + isn't part of the handshake. (if it was, resetting the timestamp could cause us to rapidly keep trying to connect to it) */ if (conn->handshake_received) diff --git a/src/director/mail-host.c b/src/director/mail-host.c index 50966f2a8e..a5623aba2b 100644 --- a/src/director/mail-host.c +++ b/src/director/mail-host.c @@ -452,7 +452,7 @@ unsigned int mail_hosts_hash(struct mail_host_list *list) { if (list->vhosts_unsorted) mail_hosts_sort(list); - /* don't retun 0 as hash, since we're using it as "doesn't exist" in + /* don't return 0 as hash, since we're using it as "doesn't exist" in some places. */ return list->hosts_hash == 0 ? 1 : list->hosts_hash; } diff --git a/src/imap-urlauth/imap-urlauth.c b/src/imap-urlauth/imap-urlauth.c index e7cb7d28f3..3585cdff7b 100644 --- a/src/imap-urlauth/imap-urlauth.c +++ b/src/imap-urlauth/imap-urlauth.c @@ -23,14 +23,14 @@ The imap-urlauth service thus consists of three separate stages: - imap-urlauth: Once the client is authenticated, the connection gets passed to the - imap-urlauth service (as implemented here). The goal of this stage is + imap-urlauth service (as implemented here). The goal of this stage is to prevent the need for re-authenticating to the imap-urlauth service when the clients wants to switch to a different target user. It normally runs as $default_internal_user and starts workers to perform the actual work. To start a worker, the imap-urlauth service establishes a control connection to the imap-urlauth-worker service. In the handshake phase of the control protocol, the connection of the client is passed to the worker. Once the worker - finishes, a new worker is started and the client connection is transfered to + finishes, a new worker is started and the client connection is transferred to it, unless the client is disconnected. - imap-urlauth-worker: @@ -250,7 +250,7 @@ int main(int argc, char *argv[]) i_fatal("Error reading configuration: %s", error); sets = master_service_settings_get_others(master_service); - imap_urlauth_settings = sets[0]; + imap_urlauth_settings = sets[0]; if (imap_urlauth_settings->verbose_proctitle) verbose_proctitle = TRUE; diff --git a/src/lib-http/http-client-private.h b/src/lib-http/http-client-private.h index 86b1d96202..22067b6df1 100644 --- a/src/lib-http/http-client-private.h +++ b/src/lib-http/http-client-private.h @@ -285,7 +285,7 @@ struct http_client_peer { struct timeout *to_req_handling; bool connect_failed:1; /* Last connection attempt failed */ - bool connect_backoff:1; /* Peer is waiting for backoff timout*/ + bool connect_backoff:1; /* Peer is waiting for backoff timeout */ bool disconnected:1; /* Peer is already disconnected */ bool handling_requests:1; /* Currently running request handler */ }; diff --git a/src/lib-http/http-server.h b/src/lib-http/http-server.h index 48708a34db..6828f4616e 100644 --- a/src/lib-http/http-server.h +++ b/src/lib-http/http-server.h @@ -305,7 +305,7 @@ void http_server_request_set_destroy_callback(struct http_server_request *req, struct http_server_stats { /* The number of requests received and responses sent */ unsigned int request_count, response_count; - /* Bytes sent and received accross the connection */ + /* Bytes sent and received across the connection */ uoff_t input, output; }; diff --git a/src/lib-http/test-http-client-errors.c b/src/lib-http/test-http-client-errors.c index e127041d64..51711d99c0 100644 --- a/src/lib-http/test-http-client-errors.c +++ b/src/lib-http/test-http-client-errors.c @@ -1639,7 +1639,7 @@ static void test_early_success(void) test_client_defaults(&http_client_set); http_client_set.socket_send_buffer_size = 4096; - test_begin("early succes"); + test_begin("early success"); test_run_client_server(&http_client_set, test_client_early_success, test_server_early_success, 1, NULL); diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 4e638618a4..8a02bf9371 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -233,7 +233,7 @@ static struct http_server *http_server; static struct io *io_listen; static struct client *clients; -/* location: /succes */ +/* location: /success */ static void client_handle_success_request(struct client_request *creq) { diff --git a/src/lib-index/mail-index-transaction-finish.c b/src/lib-index/mail-index-transaction-finish.c index 360e59705f..d39cbe2ce0 100644 --- a/src/lib-index/mail-index-transaction-finish.c +++ b/src/lib-index/mail-index-transaction-finish.c @@ -53,7 +53,7 @@ ext_reset_update_atomic(struct mail_index_transaction *t, array_idx_set(&t->ext_reset_ids, ext_id, &reset_id); - /* reseting existing data is optional */ + /* resetting existing data is optional */ if (array_is_created(&t->ext_resets)) { reset = array_idx_modifiable(&t->ext_resets, ext_id); if (reset->new_reset_id == (uint32_t)-1) diff --git a/src/lib-index/mail-index.h b/src/lib-index/mail-index.h index c1947cffcb..6d768e050b 100644 --- a/src/lib-index/mail-index.h +++ b/src/lib-index/mail-index.h @@ -384,7 +384,7 @@ void mail_index_set_lock_method(struct mail_index *index, use the default. */ void mail_index_set_optimization_settings(struct mail_index *index, const struct mail_index_optimization_settings *set); -/* When creating a new index file or reseting an existing one, add the given +/* When creating a new index file or resetting an existing one, add the given extension header data immediately to it. */ void mail_index_set_ext_init_data(struct mail_index *index, uint32_t ext_id, const void *data, size_t size); diff --git a/src/lib-index/mail-transaction-log-file.c b/src/lib-index/mail-transaction-log-file.c index 753cb65c76..b6abbde23c 100644 --- a/src/lib-index/mail-transaction-log-file.c +++ b/src/lib-index/mail-transaction-log-file.c @@ -760,7 +760,7 @@ mail_transaction_log_file_create2(struct mail_transaction_log_file *file, return -1; if (reset) { - /* don't reset modseqs. if we're reseting due to rebuilding + /* don't reset modseqs. if we're resetting due to rebuilding indexes we'll probably want to keep uidvalidity and in such cases we really don't want to shrink modseqs. */ file->hdr.prev_file_seq = 0; diff --git a/src/lib-index/mail-transaction-log.c b/src/lib-index/mail-transaction-log.c index 6e9b1eb631..b26ce63958 100644 --- a/src/lib-index/mail-transaction-log.c +++ b/src/lib-index/mail-transaction-log.c @@ -374,7 +374,7 @@ mail_transaction_log_refresh(struct mail_transaction_log *log, bool nfs_flush, mailbox deletion not fully finishing due to .nfs* files and an IDLEing IMAP process creating the index back here). */ log->index->index_deleted = TRUE; - *reason_r = "Trasnaction log lost while it was open"; + *reason_r = "Transaction log lost while it was open"; return -1; } else if (log->head->st_ino == st.st_ino && CMP_DEV_T(log->head->st_dev, st.st_dev)) { diff --git a/src/lib-master/master-service.c b/src/lib-master/master-service.c index 3bc81a10aa..c8cd3ac801 100644 --- a/src/lib-master/master-service.c +++ b/src/lib-master/master-service.c @@ -574,7 +574,7 @@ master_service_init(const char *name, enum master_service_flags flags, i_fatal(MASTER_CLIENT_LIMIT_ENV" missing"); master_service_set_client_limit(service, count); - /* seve the process limit */ + /* save the process limit */ value = getenv(MASTER_PROCESS_LIMIT_ENV); if (value != NULL && str_to_uint(value, &count) == 0 && count > 0) diff --git a/src/lib-smtp/smtp-client.h b/src/lib-smtp/smtp-client.h index 75608e9955..1cbdb7b8ea 100644 --- a/src/lib-smtp/smtp-client.h +++ b/src/lib-smtp/smtp-client.h @@ -76,7 +76,7 @@ struct smtp_client_settings { sent or received. (default = unlimited) */ unsigned int command_timeout_msecs; - /* Timeout for loggging in + /* Timeout for logging in (default = cmd_timeout_msecs) */ unsigned int connect_timeout_msecs; diff --git a/src/lib-smtp/smtp-server-cmd-auth.c b/src/lib-smtp/smtp-server-cmd-auth.c index 841e1866b2..5d79b7675d 100644 --- a/src/lib-smtp/smtp-server-cmd-auth.c +++ b/src/lib-smtp/smtp-server-cmd-auth.c @@ -155,7 +155,7 @@ cmd_auth_start(struct smtp_server_cmd_ctx *cmd, const struct smtp_server_callbacks *callbacks = conn->callbacks; int ret; - /* all preceeding commands have finished and now the transaction state + /* all preceding commands have finished and now the transaction state is clear. This provides the opportunity to re-check the protocol state */ if (!cmd_auth_check_state(cmd)) diff --git a/src/lib-smtp/smtp-server-cmd-mail.c b/src/lib-smtp/smtp-server-cmd-mail.c index 82b8e811a0..c0e719ba75 100644 --- a/src/lib-smtp/smtp-server-cmd-mail.c +++ b/src/lib-smtp/smtp-server-cmd-mail.c @@ -57,7 +57,7 @@ cmd_mail_recheck(struct smtp_server_cmd_ctx *cmd, { struct smtp_server_connection *conn = cmd->conn; - /* All preceeding commands have finished and now the transaction state + /* All preceding commands have finished and now the transaction state is clear. This provides the opportunity to re-check the transaction state */ if (!cmd_mail_check_state(cmd)) diff --git a/src/lib-smtp/smtp-server-cmd-rcpt.c b/src/lib-smtp/smtp-server-cmd-rcpt.c index 85e9a9396f..b4a496bbb3 100644 --- a/src/lib-smtp/smtp-server-cmd-rcpt.c +++ b/src/lib-smtp/smtp-server-cmd-rcpt.c @@ -86,7 +86,7 @@ cmd_rcpt_recheck(struct smtp_server_cmd_ctx *cmd, { struct smtp_server_connection *conn = cmd->conn; - /* All preceeding commands have finished and now the transaction state + /* All preceding commands have finished and now the transaction state is clear. This provides the opportunity to re-check the transaction state and abort the pending proxied mail command if it is bound to fail */ diff --git a/src/lib-smtp/smtp-server-cmd-xclient.c b/src/lib-smtp/smtp-server-cmd-xclient.c index d926b45095..00e61c90da 100644 --- a/src/lib-smtp/smtp-server-cmd-xclient.c +++ b/src/lib-smtp/smtp-server-cmd-xclient.c @@ -52,13 +52,13 @@ cmd_xclient_recheck(struct smtp_server_cmd_ctx *cmd, { struct smtp_server_connection *conn = cmd->conn; - /* all preceeding commands have finished and now the transaction state is + /* all preceding commands have finished and now the transaction state is clear. This provides the opportunity to re-check the protocol state */ if (!cmd_xclient_check_state(cmd)) return; smtp_server_connection_set_state(conn, SMTP_SERVER_STATE_XCLIENT, NULL); - /* succes; send greeting */ + /* success; send greeting */ smtp_server_reply(cmd, 220, NULL, "%s %s", conn->set.hostname, conn->set.login_greeting); return; diff --git a/src/lib-smtp/smtp-server.h b/src/lib-smtp/smtp-server.h index 5c13491380..61d76cd9fa 100644 --- a/src/lib-smtp/smtp-server.h +++ b/src/lib-smtp/smtp-server.h @@ -535,7 +535,7 @@ enum smtp_server_command_flags { }; enum smtp_server_command_hook_type { - /* next: command is next to reply but has not submittted all replies + /* next: command is next to reply but has not submitted all replies yet. */ SMTP_SERVER_COMMAND_HOOK_NEXT, /* replied_one: command has submitted one reply. */ diff --git a/src/lib-smtp/test-smtp-submit.c b/src/lib-smtp/test-smtp-submit.c index f82dc4dcf8..3aff35b8a4 100644 --- a/src/lib-smtp/test-smtp-submit.c +++ b/src/lib-smtp/test-smtp-submit.c @@ -1145,7 +1145,7 @@ static void test_data_disconnect(void) } /* - * Data timout + * Data timeout */ /* server */ diff --git a/src/lib-sql/sql-api.h b/src/lib-sql/sql-api.h index 7936b98628..3b749627b7 100644 --- a/src/lib-sql/sql-api.h +++ b/src/lib-sql/sql-api.h @@ -13,7 +13,7 @@ enum sql_db_flags { SQL_DB_FLAG_POOLED = 0x02, /* Prepared statements are supported by the database. If they aren't, the functions can still be used, but they're just internally - convered into regular statements. */ + converted into regular statements. */ SQL_DB_FLAG_PREP_STATEMENTS = 0x04, /* Database supports INSERT .. ON DUPLICATE KEY syntax. */ SQL_DB_FLAG_ON_DUPLICATE_KEY = 0x08, @@ -168,7 +168,7 @@ int sql_result_next_row(struct sql_result *result); /* If sql_result_next_row() returned SQL_RESULT_NEXT_MORE, this can be called to continue returning more results. The result is freed with this call, so - it must not be accesed anymore until the callback is finished. */ + it must not be accessed anymore until the callback is finished. */ void sql_result_more(struct sql_result **result, sql_query_callback_t *callback, void *context); #define sql_result_more(result, callback, context) \ diff --git a/src/lib-ssl-iostream/iostream-openssl.c b/src/lib-ssl-iostream/iostream-openssl.c index 6920c53390..797596d92a 100644 --- a/src/lib-ssl-iostream/iostream-openssl.c +++ b/src/lib-ssl-iostream/iostream-openssl.c @@ -14,7 +14,7 @@ void openssl_iostream_set_error(struct ssl_iostream *ssl_io, const char *str) { char *new_str; - /* i_debug() may sometimes be overriden, making it write to this very + /* i_debug() may sometimes be overridden, making it write to this very same SSL stream, in which case the provided str may be invalidated before it is even used. Therefore, we duplicate it immediately. */ new_str = i_strdup(str); @@ -804,7 +804,7 @@ openssl_iostream_get_peer_name(struct ssl_iostream *ssl_io) } } X509_free(x509); - + return *name == '\0' ? NULL : name; } diff --git a/src/lib-storage/index/index-search-mime.c b/src/lib-storage/index/index-search-mime.c index da7e5e1709..3156bb5fff 100644 --- a/src/lib-storage/index/index-search-mime.c +++ b/src/lib-storage/index/index-search-mime.c @@ -84,7 +84,7 @@ static int seach_arg_mime_child_match(struct search_mimepart_context *mpctx, return (part->children != NULL ? 1 : 0); } - /* CHILD : matches if this part has any child that mathes + /* CHILD : matches if this part has any child that matches the mpart-key (subargs). */ diff --git a/src/lib-storage/index/index-sync-pvt.c b/src/lib-storage/index/index-sync-pvt.c index 92eb4e8dcf..358eb1a8b2 100644 --- a/src/lib-storage/index/index-sync-pvt.c +++ b/src/lib-storage/index/index-sync-pvt.c @@ -185,7 +185,7 @@ index_mailbox_sync_pvt_index(struct index_mailbox_sync_pvt_context *ctx, } else { /* mailbox created/recreated */ reset = TRUE; - i_info("Mailbox %s UIDVALIDITY changed (%u -> %u), reseting private index", + i_info("Mailbox %s UIDVALIDITY changed (%u -> %u), resetting private index", ctx->box->vname, hdr_pvt->uid_validity, hdr_shared->uid_validity); } diff --git a/src/lib-storage/list/mailbox-list-delete.h b/src/lib-storage/list/mailbox-list-delete.h index 9b46638557..1033ea72ca 100644 --- a/src/lib-storage/list/mailbox-list-delete.h +++ b/src/lib-storage/list/mailbox-list-delete.h @@ -9,7 +9,7 @@ Returns 1 if the rename() succeeded. Returns 0 if rename() fails with EXDEV, which means the source and destination are on different filesystems and - the rename can never succeeed. + the rename can never succeed. If the path didn't exist, returns -1 and sets the list error to MAIL_ERROR_NOTFOUND. diff --git a/src/lib-storage/list/mailbox-list-index-iter.c b/src/lib-storage/list/mailbox-list-index-iter.c index be8b265d36..e061069744 100644 --- a/src/lib-storage/list/mailbox-list-index-iter.c +++ b/src/lib-storage/list/mailbox-list-index-iter.c @@ -225,7 +225,7 @@ mailbox_list_index_iter_next(struct mailbox_list_iterate_context *_ctx) if (match == IMAP_MATCH_YES && iter_subscriptions_ok(ctx)) { /* If this is a) \NoSelect leaf, b) not LAYOUT=index and c) NO-NOSELECT is set, try to rmdir the leaf - directores from filesystem. (With LAYOUT=index the + directories from filesystem. (With LAYOUT=index the \NoSelect mailboxes aren't on the filesystem.) */ if (ilist->has_backing_store && mailbox_list_iter_try_delete_noselect(_ctx, &ctx->info, diff --git a/src/lib/net.c b/src/lib/net.c index d10ca6c334..ead9d7f66d 100644 --- a/src/lib/net.c +++ b/src/lib/net.c @@ -1106,7 +1106,7 @@ enum net_hosterror_type net_get_hosterror_type(int error) int net_hosterror_notfound(int error) { -#ifdef EAI_NODATA /* NODATA is depricated */ +#ifdef EAI_NODATA /* NODATA is deprecated */ return (error != 1 && (error == EAI_NONAME || error == EAI_NODATA)) ? 1 : 0; #else return (error != 1 && (error == EAI_NONAME)) ? 1 : 0; diff --git a/src/lib/printf-format-fix.c b/src/lib/printf-format-fix.c index 001e7b02f7..f72253fef4 100644 --- a/src/lib/printf-format-fix.c +++ b/src/lib/printf-format-fix.c @@ -83,7 +83,7 @@ printf_format_fix_noalloc(const char *format, size_t *len_r) p = p2+1; if (*p == '%') { /* we'll be strict and allow %% only when there are no - optinal flags or modifiers. */ + optional flags or modifiers. */ p++; continue; }