diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2022-02-22 17:01:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 22:01:28 +0000 |
commit | 2b8e6958f40ef36c1508118ac36a43694283a83c (patch) | |
tree | fa9a9b6843546bdb297b00bc78b83ab4c318f724 /rules | |
parent | 85faeb34719e2b0898d319b02416f669d70f4562 (diff) | |
download | rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.tar.gz rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.zip |
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
Diffstat (limited to 'rules')
-rw-r--r-- | rules/bounce.lua | 4 | ||||
-rw-r--r-- | rules/headers_checks.lua | 2 | ||||
-rw-r--r-- | rules/regexp/headers.lua | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/rules/bounce.lua b/rules/bounce.lua index a6e159b16..08e1faef4 100644 --- a/rules/bounce.lua +++ b/rules/bounce.lua @@ -67,7 +67,7 @@ rspamd_config.BOUNCE = { return true, 1.0, 'DSN' end - -- Apply heuristics for non-standard bounecs + -- Apply heuristics for non-standard bounces local bounce_sender local mime_from = task:get_from('mime') if mime_from then @@ -95,7 +95,7 @@ rspamd_config.BOUNCE = { -- Look for a message/rfc822(-headers) part inside local rfc822_part - parts[10] = nil -- limit numbe of parts to check + parts[10] = nil -- limit number of parts to check for _, p in ipairs(parts) do local mime_type, mime_subtype = p:get_type() if (mime_subtype == 'rfc822' or mime_subtype == 'rfc822-headers') and diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 9cdd9c57c..0552be8f7 100644 --- a/rules/headers_checks.lua +++ b/rules/headers_checks.lua @@ -344,7 +344,7 @@ local check_mime_id = rspamd_config:register_symbol{ missing_mime = true end - -- Check presense of MIME specific headers + -- Check presence of MIME specific headers local has_ct_header = task:has_header('Content-Type') local has_cte_header = task:has_header('Content-Transfer-Encoding') diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 15670b4b5..9a01426fc 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -630,7 +630,7 @@ reconf['FAKE_REPLY'] = { group = 'headers' } --- Mime-OLE is needed but absent (e.g. fake Outlook or fake Ecxchange) +-- Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange) local has_msmail_pri = 'header_exists(X-MSMail-Priority)' local has_mimeole = 'header_exists(X-MimeOLE)' local has_squirrelmail_in_mailer = 'X-Mailer=/SquirrelMail\\b/H' @@ -838,14 +838,14 @@ reconf['CT_EXTRA_SEMI'] = { reconf['SUBJECT_ENDS_EXCLAIM'] = { re = 'Subject=/!\\s*$/H', - description = 'Subject ends with an exclaimation', + description = 'Subject ends with an exclamation', score = 0.0, group = 'headers' } reconf['SUBJECT_HAS_EXCLAIM'] = { re = string.format('%s & !%s', 'Subject=/!/H', 'Subject=/!\\s*$/H'), - description = 'Subject contains an exclaimation', + description = 'Subject contains an exclamation', score = 0.0, group = 'headers' } @@ -969,7 +969,7 @@ local bad_x_mailers = { [[(?:Mozilla )?Thunderbird \d]], -- Was used by Yahoo Groups in 2000s, no one expected to use this in 2020s [[eGroups Message Poster]], - -- Regexp for genuene iOS X-Mailer is below, anything which doesn't match it, + -- Regexp for genuine iOS X-Mailer is below, anything which doesn't match it, -- but starts with 'iPhone Mail' or 'iPad Mail' is likely fake [[i(?:Phone|Pad) Mail]], } |