aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2017-06-27 10:44:19 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2017-06-27 10:44:19 +0300
commitbb5a9f8e451bc206e78c9d4d03eb4cbdbef260b3 (patch)
treeec38b50c99765caed67aaf23db308b17cc407d5f /src/lua
parent146886df6d250a376b92d1bb615cb93679a7d6e8 (diff)
downloadrspamd-bb5a9f8e451bc206e78c9d4d03eb4cbdbef260b3.tar.gz
rspamd-bb5a9f8e451bc206e78c9d4d03eb4cbdbef260b3.zip
[Minor] Massive spelling correction
by a bot https://github.com/ka7/misspell_fixer
Diffstat (limited to 'src/lua')
-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
8 files changed, 18 insertions, 18 deletions
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 -------------------------------------------