]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Fix spelling mistakes in comments
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 1 Nov 2017 17:07:26 +0000 (19:07 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 1 Nov 2017 18:07:23 +0000 (20:07 +0200)
Original work by @andreasschulze and @jsoref

62 files changed:
doc/example-config/conf.d/20-pop3.conf
doc/example-config/conf.d/90-quota.conf
m4/notify.m4
src/auth/auth-request-handler.c
src/auth/db-checkpassword.c
src/auth/db-passwd-file.c
src/auth/mech-gssapi.c
src/config/config-parser.c
src/director/director-connection.c
src/imap-urlauth/imap-urlauth.c
src/imap/cmd-sort.c
src/lib-dcrypt/ostream-encrypt.c
src/lib-fs/fs-metawrap.c
src/lib-fts/fts-filter.h
src/lib-http/test-http-client-errors.c
src/lib-imap-client/imapc-connection.c
src/lib-index/mail-cache-transaction.c
src/lib-index/mail-index-map-hdr.c
src/lib-index/mail-index-map.c
src/lib-index/mail-index-strmap.h
src/lib-index/mail-index-transaction-finish.c
src/lib-index/mail-index-view.c
src/lib-index/mail-index.h
src/lib-index/mail-transaction-log-private.h
src/lib-index/mail-transaction-log.h
src/lib-mail/message-part-data.h
src/lib-ntlm/ntlm-des.c
src/lib-ntlm/ntlm-types.h
src/lib-otp/otp-hash.c
src/lib-settings/settings.c
src/lib-smtp/lmtp-client.h
src/lib-ssl-iostream/ostream-openssl.c
src/lib-storage/index/dbox-common/dbox-file.c
src/lib-storage/index/dbox-single/sdbox-file.h
src/lib-storage/index/index-search-mime.c
src/lib-storage/index/index-storage.c
src/lib-storage/index/maildir/maildir-sync.c
src/lib-storage/index/mbox/mbox-sync-rewrite.c
src/lib-storage/index/mbox/mbox-sync.c
src/lib-storage/list/mailbox-list-index-backend.c
src/lib-storage/list/mailbox-list-index-status.c
src/lib-storage/mailbox-attribute.c
src/lib/array.h
src/lib/buffer.c
src/lib/failures.c
src/lib/ioloop-epoll.c
src/lib/ioloop-kqueue.c
src/lib/istream.h
src/lib/net.h
src/lib/path-util.c
src/lib/sendfile-util.c
src/lib/seq-range-array.h
src/lib/wildcard-match.c
src/master/sd-daemon.h
src/master/service.h
src/plugins/acl/acl-backend-vfile-acllist.c
src/plugins/fs-compress/fs-compress.c
src/plugins/mail-crypt/doveadm-mail-crypt.c
src/plugins/mail-crypt/fs-crypt-common.c
src/plugins/mail-filter/istream-ext-filter.c
src/plugins/mail-filter/ostream-ext-filter.c
src/pop3/pop3-client.c

index e0ba55229fb90a7422dc86e810bbdcf7fb76472d..7b310eaa8d36f2e2f2a337f3a8645e69e48f5a63 100644 (file)
@@ -37,7 +37,7 @@
 #
 # If you want UIDL compatibility with other POP3 servers, use:
 #  UW's ipop3d         : %08Xv%08Xu
-#  Courier             : %f or %v-%u (both might be used simultaneosly)
+#  Courier             : %f or %v-%u (both might be used simultaneously)
 #  Cyrus (<= 2.1.3)    : %u
 #  Cyrus (>= 2.1.4)    : %v.%u
 #  Dovecot v0.99.x     : %v.%u
index 40cde638b41bbdfe4e5dd955740ada674cb274c8..3308c05950a590c1ec7b1b7061cf2a3d252569d6 100644 (file)
@@ -33,7 +33,7 @@ plugin {
 
 # You can execute a given command when user exceeds a specified quota limit.
 # Each quota root has separate limits. Only the command for the first
-# exceeded limit is excecuted, so put the highest limit first.
+# exceeded limit is executed, so put the highest limit first.
 # The commands are executed via script service by connecting to the named
 # UNIX socket (quota-warning below).
 # Note that % needs to be escaped as %%, otherwise "% " expands to empty.
index 600612b6ecf041b62b9a8f75d84c7fd5e2825168..e4da4b965aee84f2d3982a399ddb3209b889fe34 100644 (file)
@@ -25,7 +25,7 @@ AC_DEFUN([DOVECOT_NOTIFY], [
       have_notify=kqueue
       notify=kqueue
       AC_MSG_RESULT("yes")
-      AC_DEFINE(IOLOOP_NOTIFY_KQUEUE,, [Use BSD kqueue directory changes notificaton])
+      AC_DEFINE(IOLOOP_NOTIFY_KQUEUE,, [Use BSD kqueue directory changes notification])
     else 
       AC_MSG_RESULT("no")
       if test "$notify" = "kqueue" ; then
index 87c5bdefbd61f645ca286087fd10ee50adfe7de3..46b0caa4c0c18d93d5e199d3c89e5fb5cb4354a3 100644 (file)
@@ -841,7 +841,7 @@ void auth_request_handler_flush_failures(bool flush_all)
        for (i = 0; i < count; i++) {
                auth_request = auth_requests[aqueue_idx(auth_failures, i)];
 
-               /* FIXME: assumess that failure_delay is always the same. */
+               /* FIXME: assumes that failure_delay is always the same. */
                diff = ioloop_time - auth_request->last_access;
                if (diff < (time_t)auth_request->set->failure_delay &&
                    !flush_all)
index 9d89a9d7871f5722c3507e73c4f05eb5d58e7ff5..5b5cfe91c7c61ded73614f16d3752f53a249ce72 100644 (file)
@@ -129,7 +129,7 @@ checkpassword_request_finish_auth(struct chkpw_auth_request *request)
        /* standard checkpassword exit codes: */
        case 1:
                /* (1 is additionally defined in vpopmail for
-                  "pop/smtp/webmal/ imap/access denied") */
+                  "pop/smtp/webmail/ imap/access denied") */
                auth_request_log_info(request->request, AUTH_SUBSYS_DB,
                                      "Login failed (status=%d)",
                                      request->exit_status);
index ff6bebfc80e16b60f1098f187571e28eb6208913..97c488818579b919cda55d888680384eaa8a8021 100644 (file)
@@ -49,7 +49,7 @@ passwd_file_add(struct passwd_file *pw, const char *username,
            pass[len-1] == ']' && pass[len-4] == '[') {
                /* password[type] - we're being libpam-pwdfile compatible
                   here. it uses 13 = DES and 34 = MD5. For backwards
-                  comaptibility with ourself, we have also 56 = Digest-MD5. */
+                  compatibility with ourself, we have also 56 = Digest-MD5. */
                int num = (pass[len-3] - '0') * 10 + (pass[len-2] - '0');
 
                pass = t_strndup(pass, len-4);
index acf1e9bc2217f09d9e6eb76af62bd087ac9a47f9..2d8182e5caec83151fa8cadd1ceece2d892edf3d 100644 (file)
@@ -632,7 +632,7 @@ mech_gssapi_unwrap(struct gssapi_auth_request *request, gss_buffer_desc inbuf)
 
        /* Set username early, so that the credential lookup is for the
         * authorizing user. This means the username in subsequent log
-        * messagess will be the authorization name, not the authentication
+        * messages will be the authorization name, not the authentication
         * name, which may mean that future log messages should be adjusted
         * to log the right thing. */
        if (!auth_request_set_username(auth_request, login_user, &error)) {
index be0f6c7d6e4d20204bb51d9598314d3949fedcf1..f7caba191a22ec9c3df54f3f17330176961e54d2 100644 (file)
@@ -549,7 +549,7 @@ settings_include(struct config_parser_context *ctx, const char *pattern,
                return -1;
        }
 
-       /* iterate throuth the different files matching the globbing */
+       /* iterate through the different files matching the globbing */
        for (i = globbers.gl_pathc; i > 0; i--) {
                if (settings_add_include(ctx, globbers.gl_pathv[i-1],
                                         ignore_errors, &error) < 0) {
index 128f297987412a6ad0a7a8ed2435edbcfdbac80a..a6059908564ed85784f35d2d6a525b79f9ba31ac 100644 (file)
@@ -778,7 +778,7 @@ static bool director_cmd_director(struct director_connection *conn,
        }
        /* just forward this to the entire ring until it reaches back to
           itself. some hosts may see this twice, but that's the only way to
-          guarantee that it gets seen by everyone. reseting the host multiple
+          guarantee that it gets seen by everyone. resetting the host multiple
           times may cause us to handle its commands multiple times, but the
           commands can handle that. however, we need to also handle a
           situation where the added director never comes back - we don't want
index 0d800f2ee70606b2aa2c426cf5be6b9b1fccc303..5ef31ef5d7897f126f64aa734a5a0e0bc0cff7ab 100644 (file)
@@ -6,7 +6,7 @@ user A has an URLAUTH that references a mail from user B, it makes a connection
 to the imap-urlauth service to access user B's mail store to retrieve the
 mail.
 
-The authentication and authorization of the URLAUTH is performed whithin
+The authentication and authorization of the URLAUTH is performed within
 this service. Because access to the mailbox and the associated mailbox keys is
 necessary to retrieve the message and for verification of the URLAUTH, the
 urlauth services need root privileges. To mitigate security concerns, the
index 3719c604ff8c0ca5eeae5b232e36266885312945..37527c80ac7b79803df534e7704639d20c684658 100644 (file)
@@ -38,7 +38,7 @@ get_sort_program(struct client_command_context *cmd,
        bool reverse, last_reverse;
 
        if (IMAP_ARG_IS_EOL(args)) {
-               /* empyty list */
+               /* empty list */
                client_send_command_error(cmd, "Empty sort program.");
                return -1;
        }
index 5e11af192abaed5143c717e57d51067e618a0ece..19b103ed5be6b568b9c7138b2e3e21fcb439eb28 100644 (file)
@@ -1,4 +1,4 @@
-/* file truct dcrypt_public_keyyntax
+/* file struct dcrypt_public_key syntax
  * magic (14 bytes)
  * version (1 bytes)
  * flags (4 bytes)
@@ -468,7 +468,7 @@ ssize_t o_stream_encrypt_sendv(struct ostream_private *stream,
                                }
                        }
 
-                       /* hopefully upstream can accomondate */
+                       /* hopefully upstream can accommodate */
                        if (o_stream_encrypt_send(estream, buf.data, buf.used) < 0) {
                                return -1;
                        }
index c62b9694acfb28755b903a7a191e93fa75544ec4..3178a2a3b0bd7fb954da3034162fcc495c9a2200 100644 (file)
@@ -116,7 +116,7 @@ fs_metawrap_file_init(struct fs *_fs, const char *path,
        if (file->fs->wrap_metadata && mode == FS_OPEN_MODE_READONLY &&
            (flags & FS_OPEN_FLAG_ASYNC) == 0) {
                /* use async stream for parent, so fs_read_stream() won't create
-                  another seekable stream unneededly */
+                  another seekable stream needlessly */
                file->super_read = fs_file_init(_fs->parent, path, mode | flags |
                                                FS_OPEN_FLAG_ASYNC);
        } else {
index 0c89f2566e6c54c3b411093a06b9f9b0b047cdae..89060b79716f8d720722b63d33b0876d47cf4ec7 100644 (file)
@@ -31,7 +31,7 @@ extern const struct fts_filter *fts_filter_stemmer_snowball;
  */
 extern const struct fts_filter *fts_filter_normalizer_icu;
 
-/* Lowecases the input. Supports UTF8, if libicu is available. */
+/* Lowercases the input. Supports UTF8, if libicu is available. */
 extern const struct fts_filter *fts_filter_lowercase;
 
 /* Removes <'s> suffix from words. */
index ca33cf0ff3ce2fcecb5c8d6c4b973e2f1a3e0f3e..a2229033d971b7a135c6127083d6c72903c52b39 100644 (file)
@@ -1815,7 +1815,7 @@ test_request_aborted_early_input(struct server_connection *conn ATTR_UNUSED)
                "HTTP/1.1 404 Not Found\r\n"
                "\r\n";
 
-       /* wait one second to respon */
+       /* wait one second to respond */
        sleep(1);
 
        /* respond */
@@ -2018,7 +2018,7 @@ test_client_deinit_early_input(struct server_connection *conn ATTR_UNUSED)
                "HTTP/1.1 404 Not Found\r\n"
                "\r\n";
 
-       /* wait one second to respon */
+       /* wait one second to respond */
        sleep(1);
 
        /* respond */
index c3a9fe6f9c01ad1a3a4bc0a3310a1097ce03513a..45e2280255490919ca8d880be1001541c421cd00 100644 (file)
@@ -1261,7 +1261,7 @@ static int imapc_connection_input_plus(struct imapc_connection *conn)
                /* "+ idling" reply for IDLE command */
                conn->idle_plus_waiting = FALSE;
                conn->idling = TRUE;
-               /* no timeouting while IDLEing */
+               /* no timing out while IDLEing */
                if (conn->to != NULL && !conn->idle_stopping)
                        timeout_remove(&conn->to);
        } else if (cmds_count > 0 && cmds[0]->wait_for_literal) {
index b34b613c98161ab5cd398c4aa3e69396087d2390..f0e228e74c59a3cf687abd480ea308fd4e5a7057 100644 (file)
@@ -572,7 +572,7 @@ int mail_cache_transaction_commit(struct mail_cache_transaction_ctx **_ctx)
                }
                /* Here would be a good place to do fdatasync() to make sure
                   everything is written before offsets are updated to index.
-                  However it slows down I/O unneededly and we're pretty good
+                  However it slows down I/O needlessly and we're pretty good
                   at catching and fixing cache corruption, so we no longer do
                   it. */
        }
index f3b883e94069352b2af7072379f5c01d06c4bfa5..4725eab1c7910e62a31cf884be44726369f6ddc5 100644 (file)
@@ -16,7 +16,7 @@ int mail_index_map_parse_extensions(struct mail_index_map *map)
           doesn't happen to be 64bit aligned we'll skip some bytes */
        offset = MAIL_INDEX_HEADER_SIZE_ALIGN(map->hdr.base_header_size);
        if (offset >= map->hdr.header_size && map->extension_pool == NULL) {
-               /* nothing to do, skip allocatations and all */
+               /* nothing to do, skip allocations and all */
                return 0;
        }
 
index 48a9cbd2fb4c7e0878375510f0f5739b28c4be74..df6ebe7d7a17754a3b1e5921d9ad20ae29a53653 100644 (file)
@@ -28,7 +28,7 @@ void mail_index_map_init_extbufs(struct mail_index_map *map,
                p_clear(map->extension_pool);
 
                /* try to use the existing pool's size for initial_count so
-                  we don't grow it unneededly */
+                  we don't grow it needlessly */
                size = p_get_max_easy_alloc_size(map->extension_pool);
                if (size > EXT_GLOBAL_ALLOC_SIZE + EXT_PER_ALLOC_SIZE) {
                        initial_count = (size - EXT_GLOBAL_ALLOC_SIZE) /
index 8b992affad6160b85b0a38aa00aa58b4d39c956d..5366a9747915ffafc0e7a36f8a3dfb92a2316b99 100644 (file)
@@ -44,7 +44,7 @@ mail_index_strmap_init(struct mail_index *index, const char *suffix);
 void mail_index_strmap_deinit(struct mail_index_strmap **strmap);
 
 /* Returns strmap records and hash that can be used for read-only access.
-   The records array always teminates with a record containing zeros (but it's
+   The records array always terminates with a record containing zeros (but it's
    not counted in the array count). */
 struct mail_index_strmap_view *
 mail_index_strmap_view_open(struct mail_index_strmap *strmap,
index 4c9f9336ed572a827f02d57e64215b174a0f8c2f..e74afeec9acc7c2dcc3e97fc4e790079fa6f569b 100644 (file)
@@ -92,7 +92,7 @@ mail_transaction_drop_range(struct mail_index_transaction *t,
        if (keep_count == 1 &&
            update.uid1 == keep_range[0].seq1 &&
            update.uid2 == keep_range[0].seq2) {
-               /* evereything is kept */
+               /* everything is kept */
                return update_idx + 1;
        }
 
index aacc5980c0ace3d73c1b78fd8cc6e1c126772aca..ed157dba17421267b5fa391f8baf1f43ff4ffeb1 100644 (file)
@@ -229,7 +229,7 @@ view_lookup_full(struct mail_index_view *view, uint32_t seq,
                        *expunged_r = FALSE;
                return head_rec;
        } else {
-               /* expuned from head. use the old record. */
+               /* expunged from head. use the old record. */
                *map_r = view->map;
                if (expunged_r != NULL)
                        *expunged_r = TRUE;
index 24f3909112595ee82b32a19f5faca289e611e9a7..9c4c2b3741bc88200aad57d153f6074c30ce15eb 100644 (file)
@@ -543,7 +543,7 @@ void mail_index_append(struct mail_index_transaction *t, uint32_t uid,
 /* Assign UIDs for mails with uid=0 or uid<first_uid. All the assigned UIDs
    are higher than the highest unassigned UID (i.e. it doesn't try to fill UID
    gaps). Assumes that mailbox is locked in a way that UIDs can be safely
-   assigned. Returns UIDs for all asigned messages, in their sequence order
+   assigned. Returns UIDs for all assigned messages, in their sequence order
    (so UIDs are not necessary ascending). */
 void mail_index_append_finish_uids(struct mail_index_transaction *t,
                                   uint32_t first_uid,
index 3b6eb5677e799cfde1d2ea8685a6dd2ca5190d04..c31372395728f059e9e3a71f6e6964c6e9df189d 100644 (file)
@@ -53,7 +53,7 @@ struct mail_transaction_log_file {
           log. max_tail_offset is what should be written to the log the next
           time a transaction is written. transaction log handling may update
           max_tail_offset automatically by making it skip external transactions
-          after the last saved offset (to avoid re-reading them unneededly). */
+          after the last saved offset (to avoid re-reading them needlessly). */
        uoff_t saved_tail_offset, max_tail_offset;
        /* don't give warnings about saved_tail_offset shrinking if
           sync_offset is less than this. */
index 88ab95b064093bf033e495df6a9fb3028bb00048..dab52c6bcc855f62d463261772446f19e43bbab8 100644 (file)
@@ -85,7 +85,7 @@ struct mail_transaction_header {
 
 struct mail_transaction_modseq_update {
        uint32_t uid;
-       /* don't use uint64_t here. it adds extra 32 bits of paddiong and also
+       /* don't use uint64_t here. it adds extra 32 bits of padding and also
           causes problems with CPUs that require alignment */
        uint32_t modseq_low32;
        uint32_t modseq_high32;
index 0111959a435b5e8a482115d70d55fbfb6bc07082..6a0fc4c6b4cc082d4ec6049aa4210ab8b3aafb98 100644 (file)
@@ -45,7 +45,7 @@ extern const char *message_part_envelope_headers[];
  */
 
 /* Returns TRUE if this message part has content-type "text/plain",
-   chaset "us-ascii" and content-transfer-encoding "7bit" */
+   charset "us-ascii" and content-transfer-encoding "7bit" */
 bool message_part_data_is_plain_7bit(const struct message_part *part)
        ATTR_PURE;
 
index 842e60ad3ee762c181765982a8c924661bda5376..89d206adc38f0cb166697a5ba5ad8a0e4f40f433 100644 (file)
  * schedule to speed up the actual encryption. I'll describe those
  * below.
  *
- * The first and most obvious optimisation is the S-boxes. Since
+ * The first and most obvious optimization is the S-boxes. Since
  * each S-box always targets the same four bits in the final 32-bit
  * word, so the output from (for example) S-box 0 must always be
  * shifted left 28 bits, we can store the already-shifted outputs
index 32edfecf9f36f577b2e589d2c3aa3fb2d63334d2..9b4d67cf42b78acd2c69da6050f140007735eb9f 100644 (file)
@@ -86,8 +86,8 @@ struct ntlmssp_challenge {
 struct ntlmssp_response {
        uint64_t magic;                 /* NTLMSSP\0 */
        uint32_t type;                  /* Should be 3 */
-       ntlmssp_buffer_t lm_response;   /* LM/LMv2 recponse */
-       ntlmssp_buffer_t ntlm_response; /* NTLM/NTLMv2 recponse */
+       ntlmssp_buffer_t lm_response;   /* LM/LMv2 response */
+       ntlmssp_buffer_t ntlm_response; /* NTLM/NTLMv2 response */
        ntlmssp_buffer_t domain;        /* Domain name */
        ntlmssp_buffer_t user;          /* User name */
        ntlmssp_buffer_t workstation;   /* Workstation name */
index a0d30d1c78733afb7dedc834d5811cc43f2c1ec1..0ad90bece4022f9851f6bc2e2209a18eb5bd7fab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * OTP hash generaion.
+ * OTP hash generation.
  *
  * Copyright (c) 2006 Andrey Panin <pazke@donpac.ru>
  *
index 8af16d4b94cc64ad27d273c6e3d276126252a286..514733bb4ba5578b3cddb1ba745d1bed62256889 100644 (file)
@@ -152,7 +152,7 @@ settings_include(const char *pattern, struct input_stack **inputp,
                return -1;
        }
 
-       /* iterate throuth the different files matching the globbing */
+       /* iterate through the different files matching the globbing */
        for (i = 0; i < globbers.gl_pathc; i++) {
                if (settings_add_include(globbers.gl_pathv[i], inputp,
                                         ignore_errors, error_r) < 0)
index f3ae9b14c9214f0731a58a44c8451971411cbc49..a1be5231cf3ce4aabf93918fe15c5a9078df8f40 100644 (file)
@@ -76,7 +76,7 @@ void lmtp_client_close(struct lmtp_client *client);
    use CRLF line feeds and end with CRLF. */
 void lmtp_client_set_data_header(struct lmtp_client *client, const char *str);
 /* Add recipient to the session. rcpt_to_callback is called once LMTP server
-   replies with RCPT TO. If RCPT TO was a succees, data_callback is called
+   replies with RCPT TO. If RCPT TO was a success, data_callback is called
    when DATA replies. */
 void lmtp_client_add_rcpt(struct lmtp_client *client, const char *address,
                          lmtp_callback_t *rcpt_to_callback,
index b000286633bd88627301adfe97e64a7ff39974b6..8cfc34483a74395182d2d3c2dd753e353a80c7f5 100644 (file)
@@ -47,7 +47,7 @@ o_stream_ssl_buffer(struct ssl_ostream *sstream, const struct const_iovec *iov,
        }
 
        if (sstream->ostream.max_buffer_size == 0) {
-               /* we're requeted to use whatever space is available in
+               /* we're requested to use whatever space is available in
                   the buffer */
                avail = buffer_get_writable_size(sstream->buffer) - sstream->buffer->used;
        } else {
index 461ea361825508708f9c37be657641336800ce53..c7220ff71fae32e956fa180be2954c220d64be4e 100644 (file)
@@ -523,7 +523,7 @@ void dbox_file_append_rollback(struct dbox_file_append_context **_ctx)
        if (ctx->first_append_offset == 0) {
                /* nothing changed */
        } else if (ctx->first_append_offset == file->file_header_size) {
-               /* rollbacking everything */
+               /* rolling back everything */
                if (unlink(file->cur_path) < 0)
                        dbox_file_set_syscall_error(file, "unlink()");
                close_file = TRUE;
index 84b6e53be0ab33f6a0e35c683e7cdd265742c12c..91d4ccb24a7da61e18c4888a264fb4e79f62ed5c 100644 (file)
@@ -38,7 +38,7 @@ int sdbox_file_create_fd(struct dbox_file *file, const char *path,
 int sdbox_file_move(struct dbox_file *file, bool alt_path);
 /* Unlink file and all of its referenced attachments. */
 int sdbox_file_unlink_with_attachments(struct sdbox_file *sfile);
-/* Unlink file and its attachments when rollbacking a saved message. */
+/* Unlink file and its attachments when rolling back a saved message. */
 int sdbox_file_unlink_aborted_save(struct sdbox_file *file);
 
 #endif
index 76b21f6da5c8f6ac60270860e990ff11ee2997fd..84b074f926c36a516c5979e06476c74c7bcba6dc 100644 (file)
@@ -96,7 +96,7 @@ static int seach_arg_mime_child_match(struct search_mimepart_context *mpctx,
        T_BEGIN {
                ARRAY(struct search_mimepart_stack) prev_stack;
 
-               /* preserve current stack for any nested CHILD PARENT nastyness */
+               /* preserve current stack for any nested CHILD PARENT nastiness */
                t_array_init(&prev_stack, 16);
                array_copy(&prev_stack.arr, 0, &mpctx->stack.arr, 0,
                        array_count(&mpctx->stack));
index 13edd8e2fe2f8cdd4e6816b71a4a2bfdd13ad1f9..9679a08f4911a34408faf1dea77bad2d75d5a578 100644 (file)
@@ -1021,7 +1021,7 @@ void index_copy_cache_fields(struct mail_save_context *ctx,
                        i_unreached();
                /* the only reason we're doing the destination lookup is to
                   make sure that the cache file is opened and the cache
-                  decisinos are up to date */
+                  decisions are up to date */
                if (mailbox_get_metadata(ctx->transaction->box,
                                         MAILBOX_METADATA_CACHE_FIELDS,
                                         &dest_metadata) < 0)
index d847f0633738535db59b2bdec54817bad9f2cf6d..c3721ec75654ede7c1cf6681c071e8104bd25683 100644 (file)
    readdir() skips some files. we don't of course wish to lose them, so we
    go and rescan the new/ directory again from beginning until no files are
    left. This value is just an optimization to avoid checking the directory
-   twice unneededly. usually only NFS is the problem case. 1 is the safest
+   twice needlessly. usually only NFS is the problem case. 1 is the safest
    bet here, but I guess 5 will do just fine too. */
 #define MAILDIR_RENAME_RESCAN_COUNT 5
 
@@ -947,7 +947,7 @@ maildir_sync_context(struct maildir_sync_context *ctx, bool forced,
        if (ctx->index_sync_ctx != NULL) {
                /* NOTE: index syncing here might cause a re-sync due to
                   files getting lost, so this function might be called
-                  re-entrantly. */
+                  reentrantly. */
                ret = maildir_sync_index(ctx->index_sync_ctx, ctx->partial);
                if (ret < 0)
                        maildir_sync_index_rollback(&ctx->index_sync_ctx);
@@ -1095,7 +1095,7 @@ maildir_storage_sync_init(struct mailbox *box, enum mailbox_sync_flags flags)
                         (box->flags & MAILBOX_FLAG_KEEP_LOCKED) != 0);
 
                if (lost_files) {
-                       /* lost some files from new/, see if thery're in cur/ */
+                       /* lost some files from new/, see if they're in cur/ */
                        ret = maildir_storage_sync_force(mbox, 0);
                }
        }
index 6fd32c2bc1e2034d0f820b0806d4755c82635bc3..a15f3f54d23457b4675f007076b54b103f3a39f7 100644 (file)
@@ -242,7 +242,7 @@ static void mbox_sync_first_mail_written(struct mbox_sync_mail_context *ctx,
                ctx->last_uid_value_start_pos;
 
        if (ctx->imapbase_updated) {
-               /* update so a) we don't try to update it later unneededly,
+               /* update so a) we don't try to update it later needlessly,
                   b) if we do actually update it, we see the correct value */
                ctx->sync_ctx->base_uid_last = ctx->last_uid_updated_value;
        }
index fd09d2133cd945fb609f1bb8c5f9d3e46cf83a67..afcbbf0087c70bb197b4e0c4fc908797f41f018f 100644 (file)
@@ -1770,7 +1770,7 @@ int mbox_sync_has_changed(struct mbox_mailbox *mbox, bool leave_dirty)
                /* fully synced */
                if (mbox->mbox_hdr.dirty_flag != 0 || leave_dirty)
                        return 0;
-               /* flushing dirtyness */
+               /* flushing dirtiness */
        }
 
        /* file changed */
@@ -1886,7 +1886,7 @@ again:
                /* nothing to do */
        nothing_to_do:
                /* index may need to do internal syncing though, so commit
-                  instead of rollbacking. */
+                  instead of rolling back. */
                index_storage_expunging_deinit(&mbox->box);
                if (mail_index_sync_commit(&index_sync_ctx) < 0) {
                        mailbox_set_index_error(&mbox->box);
index 39068a8867aadfc41d0ac345929e17e489110ca2..9b3f0c6e33aea5dee029cd568f606c6757ad1234 100644 (file)
@@ -633,7 +633,7 @@ index_list_delete_entry(struct index_mailbox_list *list, const char *name,
 
        if (list->create_mailbox_name != NULL &&
            strcmp(name, list->create_mailbox_name) == 0) {
-               /* we're rollbacking a failed create. if the name exists in the
+               /* we're rolling back a failed create. if the name exists in the
                   list, it was done by somebody else so we don't want to
                   remove it. */
                return 0;
index 1282c57f1146a6fb67a524e9b871181afa9e8e3d..b21dd609bf128e977b535807827f607ad4d72514 100644 (file)
@@ -633,7 +633,7 @@ static int index_list_update_mailbox(struct mailbox *box)
                return 0;
        if (box->deleting) {
                /* don't update status info while mailbox is being deleted.
-                  especially not a good idea if we're rollbacking a created
+                  especially not a good idea if we're rolling back a created
                   mailbox that somebody else had just created */
                return 0;
        }
index 5fce61b9393dcbd39c5a1d9297ddaff7073b3d5e..4b904e329c025a80ab3d9e9bacebb10d9453621c 100644 (file)
@@ -404,7 +404,7 @@ mailbox_attribute_iter_init(struct mailbox *box,
 
        /* copy relevant attributes */
        array_foreach(&extra_attrs, attr) {
-               /* skip internal server attributes unless we're interating inbox */
+               /* skip internal server attributes unless we're iterating inbox */
                if (!box->inbox_any &&
                    strncmp(*attr, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER,
                            strlen(MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER)) == 0)
index ee209a4b15d21d5b2de1f8f96002b5a93faafbcb..352bd542d39744ecde77e6117cd48a3068a61855 100644 (file)
@@ -171,7 +171,7 @@ array_count_i(const struct array *array)
 }
 #define array_count(array) \
        array_count_i(&(array)->arr)
-/* No need for the real count if all we're doing is comparing againts 0 */
+/* No need for the real count if all we're doing is comparing against 0 */
 #define array_is_empty(array) \
        ((array)->arr.buffer->used == 0)
 #define array_not_empty(array) \
@@ -293,7 +293,7 @@ array_copy(struct array *dest, unsigned int dest_idx,
 
 /* Exchange ownership of two arrays, which should have been allocated
    from the same pool/context. Useful for updating an array with a
-   replacement. Can also do it with uninitialised arrays (which will
+   replacement. Can also do it with uninitialized arrays (which will
    have .element_size == 0). */
 static inline void
 array_swap_i(struct array *array1, struct array *array2)
index 7ea84100ac0528475eefc5eea34584b809eb1fa8..5338cbef8b171f1acf795003ba183e283380626b 100644 (file)
@@ -371,7 +371,7 @@ void buffer_truncate_rshift_bits(buffer_t *buf, size_t bits)
        if (bits > 0) {
                /* truncate it to closest byte boundary */
                size_t bytes = ((bits + 7) & -8U)/8;
-               /* remainding bits */
+               /* remaining bits */
                bits = bits % 8;
                buffer_set_used_size(buf, I_MIN(bytes, buf->used));
                unsigned char *ptr = buffer_get_modifiable_data(buf, &bytes);
index fe41cbb57a589069740f017e445e4ee24a4dc9e7..61a48189d2e919e352ca732eb62f38d0fae4ffd4 100644 (file)
@@ -411,7 +411,7 @@ syslog_handler(int level, enum log_type type, const char *format, va_list args)
                return -1;
        recursed++;
 
-       /* syslogs don't generatelly bother to log the level in any way,
+       /* syslogs don't generally bother to log the level in any way,
           so make sure errors are shown clearly */
        T_BEGIN {
                syslog(level, "%s%s%s",
index 160098022fab441e14414f4528665091a8a8007e..1cfc947979b6577a7acc88538199be8cc1c206e3 100644 (file)
@@ -154,7 +154,7 @@ void io_loop_handle_remove(struct io_file *io, bool closed)
        if (last) {
                /* since we're not freeing memory in any case, just increase
                   deleted counter so next handle_add() can just decrease it
-                  insteading of appending to the events array */
+                  instead of appending to the events array */
                ctx->deleted_count++;
        }
        i_free(io);
index b8b4accfb0dcd49eb7a237ddf309ed6c7be3598e..62f72b2bf8df542d742354bdb74fa2a41e6b6d77 100644 (file)
@@ -99,7 +99,7 @@ void io_loop_handle_remove(struct io_file *io, bool closed)
 
        /* since we're not freeing memory in any case, just increase
           deleted counter so next handle_add() can just decrease it
-          insteading of appending to the events array */
+          instead of appending to the events array */
        ctx->deleted_count++;
 
        i_assert(io->refcount > 0);
index 8d311c868ae1d7da4dc32c1ad496b9fed23fbb94..549708d81602bb584db280254d69647d32aa189e 100644 (file)
@@ -122,7 +122,7 @@ void i_stream_set_init_buffer_size(struct istream *stream, size_t size);
    parent streams' max buffer size. */
 void i_stream_set_max_buffer_size(struct istream *stream, size_t max_size);
 /* Returns the current max. buffer size for the stream. This function also
-   goesthrough all of the parent streams and returns the highest seen max
+   goes through all of the parent streams and returns the highest seen max
    buffer size. This is needed because some streams (e.g. istream-chain) change
    their max buffer size dynamically. */
 size_t i_stream_get_max_buffer_size(struct istream *stream);
index de23431ed03cbc6fb1b5622d11244d0804f1c68e..e45cf399d71a01dd89178991f6fb0a8c3aafb640 100644 (file)
@@ -35,7 +35,7 @@ struct net_unix_cred {
        pid_t pid;
 };
 
-/* maxmimum string length of IP address */
+/* maximum string length of IP address */
 #define MAX_IP_LEN INET6_ADDRSTRLEN
 
 #define IPADDR_IS_V4(ip) ((ip)->family == AF_INET)
index 3bcb35fbc1ba879cff56687e85bd1a86354489a1..5f25832b62e5699d0cb5586fe2ddd4b5838b2fb5 100644 (file)
@@ -66,7 +66,7 @@ static int path_normalize(const char *path, bool resolve_links,
                ptrdiff_t seglen;
                const char *segend;
 
-               /* skip duplicate shashes */
+               /* skip duplicate slashes */
                while (*p == '/')
                        p++;
 
index 1d9823b5dbcd5952fdda54bbf755f2d5159ce6bf..6630ddc79be04ac65d894e5fe5bb0b7b9587246a 100644 (file)
@@ -18,7 +18,7 @@
 
 ssize_t safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count)
 {
-       /* REMEBER: uoff_t and off_t may not be of same size. */
+       /* REMEMBER: uoff_t and off_t may not be of same size. */
        off_t safe_offset;
        ssize_t ret;
 
index dc21d9dce6b4d8dd871381813bd3c31b1d969d52..cdb1febba7da5f5991e599d9117f23984e917ab6 100644 (file)
@@ -31,7 +31,7 @@ unsigned int seq_range_array_add_range_count(ARRAY_TYPE(seq_range) *array,
                                             uint32_t seq1, uint32_t seq2);
 void seq_range_array_merge(ARRAY_TYPE(seq_range) *dest,
                           const ARRAY_TYPE(seq_range) *src);
-/* Remove the given sequrence from range. Returns TRUE if it was found. */
+/* Remove the given sequence from range. Returns TRUE if it was found. */
 bool ATTR_NOWARN_UNUSED_RESULT
 seq_range_array_remove(ARRAY_TYPE(seq_range) *array, uint32_t seq);
 /* Remove a sequence range. Returns number of sequences actually removed. */
index c33ef5bbc229ea89a6fe11955056905bb74bf7de..c1e2b2e968b823659a8daab4741f36d4574ee5fd 100644 (file)
@@ -18,7 +18,7 @@
 #include <ctype.h>
 
 #define WILDS '*'  /* matches 0 or more characters (including spaces) */
-#define WILDQ '?'  /* matches ecactly one character */
+#define WILDQ '?'  /* matches exactly one character */
 
 #define NOMATCH 0
 #define MATCH (match+sofar)
index fdf3cc03548cce17bd94bb5811dd00edccbd761e..83400b2b3bd2b2ca18c9a36da12e92b3a2cc1135 100644 (file)
@@ -206,7 +206,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t
                   fork off the process itself. Example: "MAINPID=4711"
 
   Daemons can choose to send additional variables. However, it is
-  recommened to prefix variable names not listed above with X_.
+  recommended to prefix variable names not listed above with X_.
 
   Returns a negative errno-style error code on failure. Returns > 0
   if systemd could be notified, 0 if it couldn't possibly because
index 0b56fedbdf708f8fed80de66f5bcde380d670be4..494a3792806d6a7ec926d543695fb42a14b046ec 100644 (file)
@@ -98,7 +98,7 @@ struct service {
        struct timeout *to_login_notify;
 
        /* if a process fails before servicing its first request, assume it's
-          broken and start throtting new process creations */
+          broken and start throttling new process creations */
        struct timeout *to_throttle;
        /* when process_limit is reached, wait for a while until we actually
           start dropping pending connections */
index 81c06b07cb0b0ef3c0d07a780378581baf3e89ae..a97f03e23995cc4a0c13367687223081aec3dc88 100644 (file)
@@ -315,7 +315,7 @@ acl_backend_vfile_acllist_try_rebuild(struct acl_backend_vfile *backend)
 
                backend->acllist_mtime = st.st_mtime;
                backend->acllist_last_check = ioloop_time;
-               /* FIXME: dict reubild is expensive, try to avoid it */
+               /* FIXME: dict rebuild is expensive, try to avoid it */
                (void)acl_lookup_dict_rebuild(auser->acl_lookup_dict);
        } else {
                acllist_clear(backend, 0);
index 5b9abca86da4ddb4d21237160b65fb3da51f510a..701eac331900a9eb0a625ccd8960751fc657971d 100644 (file)
@@ -126,7 +126,7 @@ fs_compress_file_init(struct fs *_fs, const char *path,
        if (mode == FS_OPEN_MODE_READONLY &&
            (flags & FS_OPEN_FLAG_ASYNC) == 0) {
                /* use async stream for parent, so fs_read_stream() won't create
-                  another seekable stream unneededly */
+                  another seekable stream needlessly */
                file->super_read = fs_file_init(_fs->parent, path, mode | flags |
                                                FS_OPEN_FLAG_ASYNC);
        } else {
index d44023290b95654046c16e1c914c5d1d64d3b756..71dc6e25a5d9b8f460e891ecc3dbb5eacc08bebf 100644 (file)
@@ -487,7 +487,7 @@ static void mcp_key_list(struct mcp_cmd_context *ctx,
        int ret;
 
        /* we need to use the mailbox attribute API here, as we
-          are not necessarely able to decrypt any of these keys
+          are not necessarily able to decrypt any of these keys
        */
 
        ARRAY_TYPE(const_string) ids;
index 9f810a04fd85a9fb723d43502062b5e76825fdb5..7799062271c50f58240bff43837868c70c6be403 100644 (file)
@@ -152,7 +152,7 @@ fs_crypt_file_init(struct fs *_fs, const char *path,
        if (mode == FS_OPEN_MODE_READONLY &&
            (flags & FS_OPEN_FLAG_ASYNC) == 0) {
                /* use async stream for super, so fs_read_stream() won't create
-                  another seekable stream unneededly */
+                  another seekable stream needlessly */
                file->super_read = fs_file_init(_fs->parent, path, mode | flags |
                                                FS_OPEN_FLAG_ASYNC);
        } else {
index 0f7d4ca45ca018252df8dc1fc50009ba11c7a090..272fbd6ac2f0e9aaa5fc555e2278879ed3fa69bc 100644 (file)
@@ -122,7 +122,7 @@ static ssize_t i_stream_mail_filter_read(struct istream_private *stream)
        }
        if (ret == -1 && !i_stream_have_bytes_left(&stream->istream) &&
            stream->istream.v_offset == 0) {
-               /* EOF without any input -> assume the script is repoting
+               /* EOF without any input -> assume the script is reporting
                   failure. pretty ugly way, but currently there's no error
                   reporting channel. */
                stream->istream.stream_errno = EIO;
index 238999bdb1cf886fcf1df783ca8dcbe48ef4b646..9d4a419a3400c1947b813da0b64ae7c838d56614 100644 (file)
@@ -92,7 +92,7 @@ static int o_stream_mail_filter_finish(struct ostream_private *stream)
 
        if (!i_stream_have_bytes_left(mstream->ext_in) &&
            mstream->ext_in->v_offset == 0) {
-               /* EOF without any input -> assume the script is repoting
+               /* EOF without any input -> assume the script is reporting
                   failure. pretty ugly way, but currently there's no error
                   reporting channel. */
                io_stream_set_error(&stream->iostream, "EOF without input");
index deb6141dab65c125fb386160aeaa3a44ee327bce..cf9d0e1784399caf1d92d00f6c0ecb07dcee4d2a 100644 (file)
@@ -206,7 +206,7 @@ static int read_mailbox(struct client *client, uint32_t *failed_uid_r)
                ret = -1;
 
        if (ret <= 0) {
-               /* commit the transaction instead of rollbacking to make sure
+               /* commit the transaction instead of rolling back to make sure
                   we don't lose data (virtual sizes) added to cache file */
                (void)mailbox_transaction_commit(&t);
                array_free(&message_sizes);