spamscanner 7.0.8 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/arf.cjs +1 -1
- package/dist/cjs/arf.cjs.map +2 -2
- package/dist/cjs/index.cjs +52 -22
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/esm/arf.js +1 -1
- package/dist/esm/arf.js.map +2 -2
- package/dist/esm/cli.js +49 -19
- package/dist/esm/cli.js.map +3 -3
- package/dist/esm/index.js +49 -19
- package/dist/esm/index.js.map +3 -3
- package/dist/types/parse.d.ts +11 -0
- package/dist/types/tokenizer.d.ts +3 -2
- package/package.json +1 -1
package/dist/types/parse.d.ts
CHANGED
|
@@ -19,6 +19,17 @@ export function boundedForAuth(raw: Buffer): {
|
|
|
19
19
|
raw: Buffer;
|
|
20
20
|
fromCut: boolean;
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Whether an attachment is an attached message: message/rfc822, or
|
|
24
|
+
* message/global (RFC 6532, the same with UTF-8 in its header), by type or
|
|
25
|
+
* by file name (.eml, .u8msg).
|
|
26
|
+
* @param {{contentType?: string, filename?: string}} attachment - as mailparser gives it
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
29
|
+
export function isAttachedMessage(attachment: {
|
|
30
|
+
contentType?: string;
|
|
31
|
+
filename?: string;
|
|
32
|
+
}): boolean;
|
|
22
33
|
/**
|
|
23
34
|
* The simpleParser of mailparser on a message it can finish (see finishable),
|
|
24
35
|
* settled within `timeout`: a parse that has not settled by then is stopped
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
export function characterClass(ranges: number[][], flags?: string): RegExp;
|
|
10
10
|
/**
|
|
11
11
|
* The address a link goes to, as a URL: through a security gateway, the
|
|
12
|
-
* address it goes on to (see gatewayTarget), as many as
|
|
13
|
-
* one another
|
|
12
|
+
* address it goes on to (see gatewayTarget), as many as MAX_GATEWAYS
|
|
13
|
+
* wrapped in one another (past them, the gateway link it got to); or null for
|
|
14
|
+
* an address that is no URL.
|
|
14
15
|
* @param {string} address
|
|
15
16
|
* @returns {URL|null}
|
|
16
17
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spamscanner",
|
|
3
3
|
"description": "Spam, phishing and malware filter for email in any language: a trainable classifier, link and attachment checks, SPF/DKIM/DMARC, and an optional AI second opinion from any LLM, including local Ollama models. Works as a library, CLI, Postfix milter or HTTP API.",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.10",
|
|
5
5
|
"author": "Forward Email (https://forwardemail.net)",
|
|
6
6
|
"bin": {
|
|
7
7
|
"spamscanner": "./dist/esm/cli.js"
|