aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fuzzy_storage.c4
-rw-r--r--src/libcryptobox/blake2/blake2.c2
-rw-r--r--src/libcryptobox/chacha20/chacha.c2
-rw-r--r--src/libcryptobox/cryptobox.h6
-rw-r--r--src/libcryptobox/poly1305/poly1305.c2
-rw-r--r--src/libcryptobox/siphash/siphash.c2
-rw-r--r--src/libmime/filter.h2
-rw-r--r--src/libserver/cfg_file.h2
-rw-r--r--src/libserver/cfg_rcl.h2
-rw-r--r--src/libserver/html_tags.h2
-rw-r--r--src/libserver/spf.c2
-rw-r--r--src/libserver/symbols_cache.h2
-rw-r--r--src/libserver/task.h4
-rw-r--r--src/libutil/addr.h4
-rw-r--r--src/libutil/fstring.c2
-rw-r--r--src/libutil/fstring.h2
-rw-r--r--src/libutil/http.h2
-rw-r--r--src/libutil/logger.c4
-rw-r--r--src/libutil/map.c2
-rw-r--r--src/libutil/mem_pool.h4
-rw-r--r--src/libutil/multipattern.h2
-rw-r--r--src/libutil/printf.h2
-rw-r--r--src/libutil/radix.h2
-rw-r--r--src/libutil/str_util.h2
-rw-r--r--src/lua/lua_cfg_file.c4
-rw-r--r--src/lua/lua_config.c12
-rw-r--r--src/lua/lua_html.c2
-rw-r--r--src/lua/lua_http.c2
-rw-r--r--src/lua/lua_mimepart.c2
-rw-r--r--src/lua/lua_task.c10
-rw-r--r--src/lua/lua_util.c2
-rw-r--r--src/lua/rspamd.luadoc2
-rw-r--r--src/lua_worker.c2
-rw-r--r--src/plugins/fuzzy_check.c2
-rw-r--r--src/plugins/lua/dmarc.lua2
-rw-r--r--src/plugins/lua/maillist.lua2
-rw-r--r--src/plugins/lua/settings.lua4
-rw-r--r--src/plugins/lua/spamassassin.lua2
-rw-r--r--src/worker_private.h2
39 files changed, 57 insertions, 57 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 6ffecf093..8170b2810 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -97,9 +97,9 @@ struct fuzzy_global_stat {
guint64 fuzzy_hashes_expired;
/**< number of fuzzy hashes expired */
guint64 fuzzy_hashes_checked[RSPAMD_FUZZY_EPOCH_MAX];
- /**< ammount of check requests for each epoch */
+ /**< amount of check requests for each epoch */
guint64 fuzzy_shingles_checked[RSPAMD_FUZZY_EPOCH_MAX];
- /**< ammount of shingle check requests for each epoch */
+ /**< amount of shingle check requests for each epoch */
guint64 fuzzy_hashes_found[RSPAMD_FUZZY_EPOCH_MAX];
/**< amount of hashes found by epoch */
guint64 invalid_requests;
diff --git a/src/libcryptobox/blake2/blake2.c b/src/libcryptobox/blake2/blake2.c
index fd99a0f93..bb681b5d3 100644
--- a/src/libcryptobox/blake2/blake2.c
+++ b/src/libcryptobox/blake2/blake2.c
@@ -64,7 +64,7 @@ BLAKE2B_DECLARE(x86)
BLAKE2B_DECLARE(ref)
#define BLAKE2B_GENERIC BLAKE2B_IMPL(0, "generic", ref)
-/* list implemenations from most optimized to least, with generic as the last entry */
+/* list implementations from most optimized to least, with generic as the last entry */
static const blake2b_impl_t blake2b_list[] = {
BLAKE2B_GENERIC,
#if defined(BLAKE2B_AVX)
diff --git a/src/libcryptobox/chacha20/chacha.c b/src/libcryptobox/chacha20/chacha.c
index 4bb2098a3..fad83e823 100644
--- a/src/libcryptobox/chacha20/chacha.c
+++ b/src/libcryptobox/chacha20/chacha.c
@@ -117,7 +117,7 @@ void chacha_init (chacha_state *S, const chacha_key *key,
state->leftover = 0;
}
-/* processes inlen bytes (can do partial blocks), handling input/ouput alignment */
+/* processes inlen bytes (can do partial blocks), handling input/output alignment */
static void
chacha_consume (chacha_state_internal *state,
const unsigned char *in, unsigned char *out, size_t inlen)
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h
index a5a27f403..5637c3468 100644
--- a/src/libcryptobox/cryptobox.h
+++ b/src/libcryptobox/cryptobox.h
@@ -127,7 +127,7 @@ void rspamd_cryptobox_encryptv_inplace (struct rspamd_cryptobox_segment *segment
/**
* Decrypt and verify data chunk inplace
* @param data data to decrypt
- * @param len lenght of data
+ * @param len length of data
* @param pk remote pubkey
* @param sk local privkey
* @param sig signature input
@@ -169,7 +169,7 @@ void rspamd_cryptobox_encryptv_nm_inplace (struct rspamd_cryptobox_segment *segm
/**
* Decrypt and verify data chunk inplace
* @param data data to decrypt
- * @param len lenght of data
+ * @param len length of data
* @param pk remote pubkey
* @param sk local privkey
* @param sig signature input
@@ -207,7 +207,7 @@ void rspamd_cryptobox_sign (guchar *sig, gsize *siglen_p,
* pubkey
* @param sig signature source
* @param m input message
- * @param mlen message lenght
+ * @param mlen message length
* @param pk public key for verification
* @return true if signature is valid, false otherwise
*/
diff --git a/src/libcryptobox/poly1305/poly1305.c b/src/libcryptobox/poly1305/poly1305.c
index 9e1eed04e..4adea30af 100644
--- a/src/libcryptobox/poly1305/poly1305.c
+++ b/src/libcryptobox/poly1305/poly1305.c
@@ -77,7 +77,7 @@ POLY1305_DECLARE(sse2)
POLY1305_DECLARE(ref)
#define POLY1305_GENERIC POLY1305_IMPL(0, "generic", ref)
-/* list implemenations from most optimized to least, with generic as the last entry */
+/* list implementations from most optimized to least, with generic as the last entry */
static const poly1305_impl_t poly1305_list[] =
{
POLY1305_GENERIC,
diff --git a/src/libcryptobox/siphash/siphash.c b/src/libcryptobox/siphash/siphash.c
index 7c5941a35..0c91ff7ab 100644
--- a/src/libcryptobox/siphash/siphash.c
+++ b/src/libcryptobox/siphash/siphash.c
@@ -48,7 +48,7 @@ SIPHASH_DECLARE(avx2)
#define SIPHASH_AVX2 SIPHASH_IMPL(CPUID_AVX2, "avx2", avx2)
#endif
-/* list implemenations from most optimized to least, with generic as the last entry */
+/* list implementations from most optimized to least, with generic as the last entry */
static const siphash_impl_t siphash_list[] = {
SIPHASH_GENERIC,
#if defined(SIPHASH_AVX2)
diff --git a/src/libmime/filter.h b/src/libmime/filter.h
index 49904962f..9a4379fab 100644
--- a/src/libmime/filter.h
+++ b/src/libmime/filter.h
@@ -1,6 +1,6 @@
/**
* @file filter.h
- * Filters logic implemetation
+ * Filters logic implementation
*/
#ifndef RSPAMD_FILTER_H
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 3c5fe93fb..e48eb6db0 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -189,7 +189,7 @@ struct rspamd_worker_conf {
GQuark type; /**< type of worker */
struct rspamd_worker_bind_conf *bind_conf; /**< bind configuration */
guint16 count; /**< number of workers */
- GList *listen_socks; /**< listening sockets desctiptors */
+ GList *listen_socks; /**< listening sockets descriptors */
guint32 rlimit_nofile; /**< max files limit */
guint32 rlimit_maxcore; /**< maximum core file size */
GHashTable *params; /**< params for worker */
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h
index d1ec26b2b..e115fda97 100644
--- a/src/libserver/cfg_rcl.h
+++ b/src/libserver/cfg_rcl.h
@@ -408,7 +408,7 @@ ucl_object_t *rspamd_rcl_add_doc_obj (ucl_object_t *doc_target,
/**
* Adds new documentation option specified by path `doc_path` that should be
- * splitted by dots
+ * split by dots
*/
ucl_object_t *rspamd_rcl_add_doc_by_path (struct rspamd_config *cfg,
const gchar *doc_path,
diff --git a/src/libserver/html_tags.h b/src/libserver/html_tags.h
index 8809975e3..c865fa21a 100644
--- a/src/libserver/html_tags.h
+++ b/src/libserver/html_tags.h
@@ -188,7 +188,7 @@ typedef enum
#define CM_NO_INDENT (1 << 18)
/* Elements that are obsolete (such as "dir", "menu"). */
#define CM_OBSOLETE (1 << 19)
-/* User defined elements. Used to determine how attributes wihout value
+/* User defined elements. Used to determine how attributes without value
should be printed. */
#define CM_NEW (1 << 20)
/* Elements that cannot be omitted. */
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index 13877ed31..32ee6c453 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -1811,7 +1811,7 @@ parse_spf_scopes (struct spf_record *rec, gchar **begin)
}
else if (g_ascii_strncasecmp (*begin, SPF_SCOPE_MFROM,
sizeof (SPF_SCOPE_MFROM) - 1) == 0) {
- /* mfrom is standart spf1 check */
+ /* mfrom is standard spf1 check */
*begin += sizeof (SPF_SCOPE_MFROM) - 1;
continue;
}
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h
index b71c6e9b9..dedcda4e6 100644
--- a/src/libserver/symbols_cache.h
+++ b/src/libserver/symbols_cache.h
@@ -169,7 +169,7 @@ gboolean rspamd_symbols_cache_process_symbols (struct rspamd_task *task,
struct symbols_cache *cache, gint stage);
/**
- * Validate cache items agains theirs weights defined in metrics
+ * Validate cache items against theirs weights defined in metrics
* @param cache symbols cache
* @param cfg configuration
* @param strict do strict checks - symbols MUST be described in metrics
diff --git a/src/libserver/task.h b/src/libserver/task.h
index 16e40aad1..1efa45309 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -183,7 +183,7 @@ struct rspamd_task {
double time_virtual_finish;
struct timeval tv;
gboolean (*fin_callback)(struct rspamd_task *task, void *arg);
- /**< calback for filters finalizing */
+ /**< callback for filters finalizing */
void *fin_arg; /**< argument for fin callback */
struct rspamd_dns_resolver *resolver; /**< DNS resolver */
@@ -252,7 +252,7 @@ gboolean rspamd_task_process (struct rspamd_task *task, guint stages);
struct rspamd_email_address* rspamd_task_get_sender (struct rspamd_task *task);
/**
- * Return addresses in the following precendence:
+ * Return addresses in the following precedence:
* - deliver to
* - the first smtp recipient
* - the first mime recipient
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index 9b0921747..046d5f040 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -73,7 +73,7 @@ rspamd_inet_addr_t * rspamd_inet_address_from_rnds (
* Parse string with ipv6 address of length `len` to `target` which should be
* at least sizeof (in6_addr_t)
* @param text input string
- * @param len lenth of `text` (if 0, then `text` must be zero terminated)
+ * @param len length of `text` (if 0, then `text` must be zero terminated)
* @param target target structure
* @return TRUE if the address has been parsed, otherwise `target` content is undefined
*/
@@ -84,7 +84,7 @@ gboolean rspamd_parse_inet_address_ip6 (const guchar *text, gsize len,
* Parse string with ipv4 address of length `len` to `target` which should be
* at least sizeof (in4_addr_t)
* @param text input string
- * @param len lenth of `text` (if 0, then `text` must be zero terminated)
+ * @param len length of `text` (if 0, then `text` must be zero terminated)
* @param target target structure
* @return TRUE if the address has been parsed, otherwise `target` content is undefined
*/
diff --git a/src/libutil/fstring.c b/src/libutil/fstring.c
index 4aa678b0b..101bfa9f0 100644
--- a/src/libutil/fstring.c
+++ b/src/libutil/fstring.c
@@ -230,7 +230,7 @@ fstrhash_c (gchar c, guint32 hval)
guint32 tmp;
/*
* xor in the current byte against each byte of hval
- * (which alone gaurantees that every bit of input will have
+ * (which alone guarantees that every bit of input will have
* an effect on the output)
*/
tmp = c & 0xFF;
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index ac69b01df..1d1d3b137 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -77,7 +77,7 @@ rspamd_fstring_t *rspamd_fstring_append_chars (rspamd_fstring_t *str,
char c, gsize len) G_GNUC_WARN_UNUSED_RESULT;
/**
- * Erase `len` characters at postion `pos`
+ * Erase `len` characters at position `pos`
*/
void rspamd_fstring_erase (rspamd_fstring_t *str, gsize pos, gsize len);
diff --git a/src/libutil/http.h b/src/libutil/http.h
index 51d5098d8..e2e332d6f 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -545,7 +545,7 @@ void rspamd_http_router_handle_socket (
void rspamd_http_router_free (struct rspamd_http_connection_router *router);
/**
- * Extract arguments from a messsage's URI contained inside query string decoding
+ * Extract arguments from a message's URI contained inside query string decoding
* them if needed
* @param msg HTTP request message
* @return new GHashTable which maps rspamd_ftok_t* to rspamd_ftok_t*
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index faab981d9..d4e3e95a7 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -762,12 +762,12 @@ file_log_helper (rspamd_logger_t *rspamd_log,
}
/* Fill buffer */
if (rspamd_log->io_buf.size < len) {
- /* Buffer is too small to hold this string, so write it dirrectly */
+ /* Buffer is too small to hold this string, so write it directly */
rspamd_log_flush (rspamd_log);
direct_write_log_line (rspamd_log, (void *) iov, iovcnt, TRUE);
}
else if (rspamd_log->io_buf.used + len >= rspamd_log->io_buf.size) {
- /* Buffer is full, try to write it dirrectly */
+ /* Buffer is full, try to write it directly */
rspamd_log_flush (rspamd_log);
fill_buffer (rspamd_log, iov, iovcnt);
}
diff --git a/src/libutil/map.c b/src/libutil/map.c
index b8d04dc5d..77103ac00 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -396,7 +396,7 @@ http_map_finish (struct rspamd_http_connection *conn,
return 0;
}
else {
- /* Unsinged version - just open file */
+ /* Unsigned version - just open file */
cbd->shmem_data = rspamd_http_message_shmem_ref (msg);
cbd->data_len = msg->body_buf.len;
diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h
index f16d454f2..2771be0db 100644
--- a/src/libutil/mem_pool.h
+++ b/src/libutil/mem_pool.h
@@ -254,13 +254,13 @@ void rspamd_mempool_unlock_mutex (rspamd_mempool_mutex_t *mutex);
rspamd_mempool_rwlock_t * rspamd_mempool_get_rwlock (rspamd_mempool_t *pool);
/**
- * Aquire read lock
+ * Acquire read lock
* @param lock rwlock object
*/
void rspamd_mempool_rlock_rwlock (rspamd_mempool_rwlock_t *lock);
/**
- * Aquire write lock
+ * Acquire write lock
* @param lock rwlock object
*/
void rspamd_mempool_wlock_rwlock (rspamd_mempool_rwlock_t *lock);
diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h
index 6a7dd4a88..785c09e3d 100644
--- a/src/libutil/multipattern.h
+++ b/src/libutil/multipattern.h
@@ -124,7 +124,7 @@ gboolean rspamd_multipattern_compile (struct rspamd_multipattern *mp,
* @param in
* @param len
* @param cb if callback returns non-zero, then search is terminated and that value is returned
- * @param ud calback data
+ * @param ud callback data
* @return
*/
gint rspamd_multipattern_lookup (struct rspamd_multipattern *mp,
diff --git a/src/libutil/printf.h b/src/libutil/printf.h
index 043b347a2..7cf3bd4a8 100644
--- a/src/libutil/printf.h
+++ b/src/libutil/printf.h
@@ -55,7 +55,7 @@
/**
* Callback used for common printf operations
* @param buf buffer to append
- * @param buflen lenght of the buffer
+ * @param buflen length of the buffer
* @param ud opaque pointer
* @return number of characters written
*/
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index fc6e0db1e..c04528000 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -30,7 +30,7 @@ typedef struct radix_tree_compressed radix_compressed_t;
* @param tree radix trie
* @param key key to insert (bitstring)
* @param keylen length of the key (in bytes)
- * @param masklen lenght of mask that should be applied to the key (in bits)
+ * @param masklen length of mask that should be applied to the key (in bits)
* @param value opaque value pointer
* @return previous value of the key or `RADIX_NO_VALUE`
*/
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 473b5cbbb..3c2af2fb3 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -65,7 +65,7 @@ guint rspamd_gstring_icase_hash (gconstpointer key);
gboolean rspamd_gstring_icase_equal (gconstpointer v, gconstpointer v2);
/**
- * Copy src to dest limited to len, in compare with standart strlcpy(3) rspamd strlcpy does not
+ * Copy src to dest limited to len, in compare with standard strlcpy(3) rspamd strlcpy does not
* traverse the whole string and it is possible to use it for non NULL terminated strings. This is
* more like memccpy(dst, src, size, '\0')
*
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c
index 2e46f91fc..571278b21 100644
--- a/src/lua/lua_cfg_file.c
+++ b/src/lua/lua_cfg_file.c
@@ -40,7 +40,7 @@ lua_process_metric (lua_State *L, const gchar *name, struct rspamd_config *cfg)
metric = rspamd_config_new_metric (cfg, metric, name);
}
- /* Now iterate throught module table */
+ /* Now iterate through module table */
for (lua_pushnil (L); lua_next (L, -2); lua_pop (L, 1)) {
/* key - -2, value - -1 */
symbol =
@@ -125,7 +125,7 @@ rspamd_lua_post_load_config (struct rspamd_config *cfg)
gsize keylen;
GError *err = NULL;
- /* First check all module options that may be overriden in 'config' global */
+ /* First check all module options that may be overridden in 'config' global */
lua_getglobal (L, "config");
if (lua_istable (L, -1)) {
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 08e28fa70..cb65fad0a 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -187,7 +187,7 @@ LUA_FUNCTION_DEF (config, get_classifier);
* - `weight`: weight of symbol (should normally be 1 or missing)
* - `priority`: priority of symbol (normally 0 or missing)
* - `type`: type of symbol: `normal` (default), `virtual` or `callback`
- * - `flags`: various flags splitted by commas or spaces:
+ * - `flags`: various flags split by commas or spaces:
* + `nice` if symbol can produce negative score;
* + `empty` if symbol can be called for empty messages
* + `skip` if symbol should be skipped now
@@ -387,7 +387,7 @@ LUA_FUNCTION_DEF (config, disable_symbol);
/***
* @method rspamd_config:__newindex(name, callback)
* This metamethod is called if new indicies are added to the `rspamd_config` object.
- * Technically, it is the equialent of @see rspamd_config:register_symbol where `weight` is 1.0.
+ * Technically, it is the equivalent of @see rspamd_config:register_symbol where `weight` is 1.0.
* There is also table form invocation that allows to control more things:
*
* - `callback`: has the same meaning and acts as function of task
@@ -438,7 +438,7 @@ LUA_FUNCTION_DEF (config, newindex);
/***
* @method rspamd_config:register_regexp(params)
* Registers new re for further cached usage
- * Params is the table with the follwoing fields (mandatory fields are marked with `*`):
+ * Params is the table with the following fields (mandatory fields are marked with `*`):
* - `re`* : regular expression object
* - `type`*: type of regular expression:
* + `mime`: mime regexp
@@ -455,7 +455,7 @@ LUA_FUNCTION_DEF (config, register_regexp);
/***
* @method rspamd_config:replace_regexp(params)
* Replaces regexp with a new one
- * Params is the table with the follwoing fields (mandatory fields are marked with `*`):
+ * Params is the table with the following fields (mandatory fields are marked with `*`):
* - `old_re`* : old regular expression object (must be in the cache)
* - `new_re`* : old regular expression object (must not be in the cache)
*/
@@ -548,7 +548,7 @@ LUA_FUNCTION_DEF (config, set_symbol_callback);
* Adds new callback that is called on worker process termination when all
* tasks pending are processed
*
- * @param callback {function} a fucntion with one argument (rspamd_task)
+ * @param callback {function} a function with one argument (rspamd_task)
*/
LUA_FUNCTION_DEF (config, register_finish_script);
@@ -2008,7 +2008,7 @@ lua_config_newindex (lua_State *L)
* "priority" - optional priority
* "type" - optional type (normal, virtual, callback)
* -- Metric options
- * "score" - optional default score (overrided by metric)
+ * "score" - optional default score (overridden by metric)
* "group" - optional default group
* "one_shot" - optional one shot mode
* "description" - optional description
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c
index 65fb99326..bfc411b94 100644
--- a/src/lua/lua_html.c
+++ b/src/lua/lua_html.c
@@ -79,7 +79,7 @@ LUA_FUNCTION_DEF (html, has_property);
* - `src` - link to the source
* - `height` - height in pixels
* - `width` - width in pixels
- * - `embeded` - `true` if an image is embedded in a message
+ * - `embedded` - `true` if an image is embedded in a message
* @return {table} table of images in html part
*/
LUA_FUNCTION_DEF (html, get_images);
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index cda331129..40c79624c 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -339,7 +339,7 @@ lua_http_push_headers (lua_State *L, struct rspamd_http_message *msg)
* @param {string} mime_type MIME type of the HTTP content (for example, `text/html`)
* @param {string/text} body full body content, can be opaque `rspamd{text}` to avoid data copying
* @param {number} timeout floating point request timeout value in seconds (default is 5.0 seconds)
- * @return {boolean} `true` if a request has been successfuly scheduled. If this value is `false` then some error occurred, the callback thus will not be called
+ * @return {boolean} `true` if a request has been successfully scheduled. If this value is `false` then some error occurred, the callback thus will not be called
*/
static gint
lua_http_request (lua_State *L)
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index 75b270189..362b43046 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -269,7 +269,7 @@ LUA_FUNCTION_DEF (mimepart, get_cte);
/***
* @method mime_part:get_filename()
- * Extract filename associated with mime part if it is an attachement
+ * Extract filename associated with mime part if it is an attachment
* @return {string} filename or `nil` if no file is associated with this part
*/
LUA_FUNCTION_DEF (mimepart, get_filename);
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index e0412e2da..06b699a38 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -75,7 +75,7 @@ LUA_FUNCTION_DEF (task, get_session);
*/
LUA_FUNCTION_DEF (task, get_ev_base);
/***
- * @method task:insert_result(symbol, weigth[, option1, ...])
+ * @method task:insert_result(symbol, weight[, option1, ...])
* Insert specific symbol to the tasks scanning results assigning the initial
* weight to it.
* @param {string} symbol symbol to insert
@@ -102,7 +102,7 @@ LUA_FUNCTION_DEF (task, insert_result);
* - `greylist`: greylist message
* - `accept` or `no action`: whitelist message
* @param {rspamd_action or string} action a numeric or string action value
- * @param {string} description optional descripton
+ * @param {string} description optional description
@example
local function cb(task)
local gr = task:get_header('Greylist')
@@ -262,7 +262,7 @@ LUA_FUNCTION_DEF (task, get_raw_headers);
* - `real_ip` - string representation of IP as resolved by PTR request of MTA
* - `by_hostname` - MTA hostname
* - `proto` - protocol, e.g. ESMTP or ESMTPS
- * - `timestamp` - received timetamp
+ * - `timestamp` - received timestamp
* - `for` - for value (unparsed mailbox)
*
* Please note that in some situations rspamd cannot parse all the fields of received headers.
@@ -625,7 +625,7 @@ LUA_FUNCTION_DEF (task, set_milter_reply);
/***
* @method task:process_re(params)
* Processes the specified regexp and returns number of captures (cached or new)
- * Params is the table with the follwoing fields (mandatory fields are marked with `*`):
+ * Params is the table with the following fields (mandatory fields are marked with `*`):
* - `re`* : regular expression object
* - `type`*: type of regular expression:
* + `mime`: mime regexp
@@ -636,7 +636,7 @@ LUA_FUNCTION_DEF (task, set_milter_reply);
* + `url`: url regexp
* - `header`: for header and rawheader regexp means the name of header
* - `strong`: case sensitive match for headers
- * @return {number} number of regexp occurences in the task (limited by 255 so far)
+ * @return {number} number of regexp occurrences in the task (limited by 255 so far)
*/
LUA_FUNCTION_DEF (task, process_regexp);
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 6f9ded3cc..ef2adfe81 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -91,7 +91,7 @@ LUA_FUNCTION_DEF (util, decode_url);
* @function util.tokenize_text(input[, exceptions])
* Create tokens from a text using optional exceptions list
* @param {text/string} input input data
- * @param {table} exceptions, a table of pairs containing <start_pos,lenght> of exceptions in the input
+ * @param {table} exceptions, a table of pairs containing <start_pos,length> of exceptions in the input
* @return {table/strings} list of strings representing words in the text
*/
LUA_FUNCTION_DEF (util, tokenize_text);
diff --git a/src/lua/rspamd.luadoc b/src/lua/rspamd.luadoc
index 28f3f12f3..7f2c5ccc9 100644
--- a/src/lua/rspamd.luadoc
+++ b/src/lua/rspamd.luadoc
@@ -33,7 +33,7 @@ function config:get_metric (name)
--- Register symbol in metric
-- @param symbol name of symbol
-- @param weight weight of symbol
--- @param callback fucntion that would be called as callback for symbol
+-- @param callback function that would be called as callback for symbol
function metric:register_symbol (symbol, weight, callback)
------------------------------------- TASK -------------------------------------------
diff --git a/src/lua_worker.c b/src/lua_worker.c
index ffd9df531..7dcb94277 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -177,7 +177,7 @@ lua_worker_register_exit_callback (lua_State *L)
return 1;
}
-/* XXX: This fucntions should be rewritten completely */
+/* XXX: This functions should be rewritten completely */
static int
lua_worker_get_option (lua_State *L)
{
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index c558c56e6..a839aae5f 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -2794,7 +2794,7 @@ fuzzy_process_handler (struct rspamd_http_connection_entry *conn_ent,
if (!is_hash) {
/* Allocate message from string */
- /* XXX: what about encrypted messsages ? */
+ /* XXX: what about encrypted messages ? */
task->msg.begin = msg->body_buf.begin;
task->msg.len = msg->body_buf.len;
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 72a04866e..02dc0bb97 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -996,7 +996,7 @@ if opts['reporting'] == true then
end
else
local is_authed = false
- -- XXX: reporting address could be overidden
+ -- XXX: reporting address could be overridden
for _, r in ipairs(results) do
if string.match(r, 'v=DMARC1') then
is_authed = true
diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua
index 3b23e25f1..093e3164b 100644
--- a/src/plugins/lua/maillist.lua
+++ b/src/plugins/lua/maillist.lua
@@ -213,7 +213,7 @@ end
-- Majordomo detector
-- Check Sender for owner- or -owner
--- Check Precendence for 'Bulk' or 'List'
+-- Check Precedence for 'Bulk' or 'List'
--
-- And nothing more can be extracted :(
local function check_ml_majordomo(task)
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 81498dc71..bd0f4980e 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -34,8 +34,8 @@ local rspamd_regexp = require "rspamd_regexp"
local ucl = require "ucl"
local fun = require "fun"
--- Checks for overrided settings within query params and returns 'true' if
--- settings are overrided
+-- Checks for overridden settings within query params and returns 'true' if
+-- settings are overridden
local function check_query_settings(task)
-- Try 'settings' attribute
local query_set = task:get_request_header('settings')
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index fdf2568b7..ffd8dcbf2 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -44,7 +44,7 @@ local known_plugins = {
'Mail::SpamAssassin::Plugin::HTMLEval',
}
--- Table that replaces SA symbol with rspamd equialent
+-- Table that replaces SA symbol with rspamd equivalent
-- Used for dependency resolution
local symbols_replacements = {
-- SPF replacements
diff --git a/src/worker_private.h b/src/worker_private.h
index d3339ea26..50a53a624 100644
--- a/src/worker_private.h
+++ b/src/worker_private.h
@@ -42,7 +42,7 @@ struct rspamd_worker_ctx {
gboolean is_http;
/* JSON output */
gboolean is_json;
- /* Allow learning throught worker */
+ /* Allow learning through worker */
gboolean allow_learn;
/* Limit of tasks */
guint32 max_tasks;