@postalsys/email-ai-tools 1.9.1 → 1.10.0

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.9.1"
2
+ ".": "1.10.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.10.0](https://github.com/postalsys/email-ai-tools/compare/email-ai-tools-v1.9.2...email-ai-tools-v1.10.0) (2025-11-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * upgrade to larger context models and improve prompt engineering ([27564ce](https://github.com/postalsys/email-ai-tools/commit/27564ce9fdebb79fcb2803a2c47a895881835874))
9
+
10
+ ## [1.9.2](https://github.com/postalsys/email-ai-tools/compare/email-ai-tools-v1.9.1...email-ai-tools-v1.9.2) (2025-10-29)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bumped email-text-tools ([1d487df](https://github.com/postalsys/email-ai-tools/commit/1d487df5e411bb2ccf4d84592e5c138634cc1181))
16
+
3
17
  ## [1.9.1](https://github.com/postalsys/email-ai-tools/compare/email-ai-tools-v1.9.0...email-ai-tools-v1.9.1) (2025-10-23)
4
18
 
5
19
 
@@ -21,9 +21,8 @@ async function main() {
21
21
  },
22
22
  process.env.OPENAI_API_KEY,
23
23
  {
24
- //gptModel: 'gpt-3.5-turbo',
25
- gptModel: 'gpt-4',
26
- maxTokens: 6000,
24
+ gptModel: 'gpt-5-mini',
25
+ maxTokens: 30000,
27
26
  verbose: true
28
27
  }
29
28
  );
@@ -9,8 +9,8 @@ const fetchAgent = new Agent({ connect: { timeout: 90 * 1000 } });
9
9
 
10
10
  const tokenizer = new GPT3Tokenizer({ type: 'gpt3' });
11
11
 
12
- const MAX_ALLOWED_TEXT_LENGTH = 32 * 1024;
13
- const MAX_ALLOWED_TOKENS = 4000;
12
+ const MAX_ALLOWED_TEXT_LENGTH = 64 * 1024;
13
+ const DEFAULT_MAX_ALLOWED_TOKENS = 30000;
14
14
 
15
15
  const OPENAI_API_BASE_URL = 'https://api.openai.com';
16
16
 
@@ -137,8 +137,8 @@ async function embeddingsQuery(apiToken, opts) {
137
137
  let question = (opts.question || '').toString().trim();
138
138
  let contextChunks = (opts.contextChunks || '').toString().trim();
139
139
 
140
- let maxAllowedTokens = opts.maxTokens || MAX_ALLOWED_TOKENS;
141
- let gptModel = opts.gptModel || 'gpt-3.5-turbo';
140
+ let maxAllowedTokens = opts.maxTokens || DEFAULT_MAX_ALLOWED_TOKENS;
141
+ let gptModel = opts.gptModel || 'gpt-5-mini';
142
142
 
143
143
  let prompt;
144
144
 
@@ -10,81 +10,107 @@ const fetchAgent = new Agent({ connect: { timeout: 90 * 1000 } });
10
10
 
11
11
  const tokenizer = new GPT3Tokenizer({ type: 'gpt3' });
12
12
 
13
- const MAX_ALLOWED_TEXT_LENGTH = 32 * 1024;
14
- const MAX_ALLOWED_TOKENS = 4000;
13
+ const MAX_ALLOWED_TEXT_LENGTH = 64 * 1024;
14
+ const DEFAULT_MAX_ALLOWED_TOKENS = 30000;
15
+ const MAX_INSTRUCT_TOKENS = 4000;
16
+ const MAX_RETRIES = 5;
17
+ const RETRY_DELAY_MS = 1000;
15
18
 
16
19
  const OPENAI_API_BASE_URL = 'https://api.openai.com';
17
20
 
18
21
  const OPENAI_API_URL_CHAT = '/v1/chat/completions';
19
22
  const OPENAI_API_URL_INSTRUCT = '/v1/completions';
20
23
 
21
- const DEFAULT_ALLOWED_HEADERS = ['from', 'to', 'cc', 'bcc', 'subject', 'mime-version', 'authentication-results', 'date', 'content-type', 'list-id'];
24
+ const DEFAULT_ALLOWED_HEADERS = [
25
+ 'from',
26
+ 'to',
27
+ 'cc',
28
+ 'bcc',
29
+ 'subject',
30
+ 'mime-version',
31
+ 'authentication-results',
32
+ 'arc-authentication-results',
33
+ 'arc-message-signature',
34
+ 'arc-seal',
35
+ 'date',
36
+ 'content-type',
37
+ 'list-id'
38
+ ];
22
39
 
23
40
  const DEFAULT_SYSTEM_PROMPT = `
24
- I want you to act as an executive assistant that processes emails for reporting.
41
+ You are an executive assistant that processes emails for reporting. Your role is to analyze emails for important information and identify potential security threats.
25
42
  `.trim();
26
43
 
27
44
  const DEFAULT_USER_PROMPT = `
28
45
  Instructions:
29
- - You are an executive assistant scanning incoming emails to report what is important and what is not, and also to inform about obvious fraud attempts.
30
- - Describe the sentiment of the email using one word. Use either "positive", "neutral", or "negative". Include this value in the response as a "sentiment" property.
31
- - Generate a one-sentence summary of the email. Include this value in the response as a "summary" property.
32
- - Does it seem like the sender of the email would expect a reply to this email? Include this information in the response as a "shouldReply" property with the value "true" if they expect it and "false" if not.
33
- - If this email is a reply to a previous email or a forwarded email, then extract the text content that only the email's sender wrote, and include this as a "replyText" property in the response.
34
- - Do not include message signatures in the extracted reply text
35
- - If the email text mentions events, return these events as separate event objects in an "events" array
36
- - In the event object include the following properties
37
- - "description" property that describes the event in English
38
- - "location" property that defines the expected location of the event
39
- - "startTime" property that includes a timestamp without a timezone for the start of the event
40
- - "endTime" property that includes a timestamp without timezone for the expected end of the event if there is high confidence for the value
41
- - "type" property that includes a keyword that describes the type of the event.
42
- - "event" is a regular calendar event
43
- - "meeting" is a scheduled meeting
44
- - "appointment" is a scheduled appointment
45
- - "task" if the event describes a task that needs to be completed by the due date
46
- - "general" describes a generic event, like a fair or a competition
47
- - If the email text mentions actions that the recipient must take, return these actions as separate action objects in an "actions" array
48
- - In the action object, include the following properties
49
- - "description" property that summarises the action in English
50
- - "dueDate" property that includes a timestamp without a timezone for the due date of the action
51
- - Do not include the event in the "events" array if the confidence for it being an event is low
52
- - Generate a security analysis of the email and store the security analysis in "riskAssessment" property as an object value.
53
- - The "riskAssessment" object should include the following properties
54
- - "risk" property that contains a risk score for the email using the following scale: 1 - 5 (where 1 is low risk, and 5 is high risk), taking into account what may happen if a user acts by the instructions given in the email.
55
- - "assessment" property, a single-sentence assessment text that includes details about issues that increase the risk score. Do not disclose details that decrease the risk score or do not affect it.
56
- - Your security analysis should contain (but is not limited to) the following risk factors:
57
- - Does the email include links with domain names that contain typos or homoglyphs that might mislead the user about the actual target of the link
58
- - Does the sender address of the email not seem to match the persona or organization the sender email claims to be
59
- - Does the email promise the user an extremely good financial outcome
60
- - Does the email promise unclaimed money or goods
61
- - Does the email offer a vague business opportunity with no specific details
62
- - Does the email suggest there is a severe penalty if the user does not act as requested
63
- - Does the email claim that there are technical issues with the user's email account
64
- - Does the email offer services or activities that are not suitable for underage persons
65
- - Does the sender's email look like a throwaway address
66
- - Does the sender's email look like it might be spoofed
67
- - Does the email contain attachments where the name of the attachment might be misleading and suggest a different file format than is actually used
68
- - Does the email contain attachments that might be executable files
69
- - Always return the response in English
70
-
71
- Facts:
72
-
73
- - An email might contain an "authentication-results" result header that indicates if the message passed SPF, DKIM, ARC, and DMARC checks
74
- - Having a valid SPF, DKIM, and DMARC increases the chances that the sender domain name is not spoofed
75
- - For valid SPF, the "authentication-results" header must include "spf=pass"
76
- - For valid DKIM, the "authentication-results" header must include "dkim=pass"
77
- - For valid DMARC, the "authentication-results" header must include "dmarc=pass"
78
- - For valid ARC, the "authentication-results" header must include "arc=pass"
79
- - Throwaway email addresses might contain a word or a name and more than one number in the username of the email address
80
- - Throwaway email addresses might use a randomly generated or hex text string as the username of the email address
81
- - Throwaway email addresses might use free email services like gmail.com, outlook.com, hotmail.com, yahoo.com, aol.com, etc
82
- - An email is a reply to a previous email only if it includes an "in-reply-to" header
83
- - An email is a forwarded email only if it includes the "references" header but not the "in-reply-to" header
84
- - The email structure includes a property "headers" that contains an array of header values.
85
- - For timestamps without a timezone, use the "YYYY-MM-DD hh:mm:ss" format
86
- - For timestamps without known time, use the "YYYY-MM-DD" format
87
- - If the email uses relative dates, then use the date from the "date" header as the base value to calculate actual dates
46
+
47
+ RETURN A JSON OBJECT with the following structure:
48
+
49
+ REQUIRED FIELDS:
50
+ - "sentiment": Must be exactly one of: "positive", "neutral", or "negative"
51
+ - "summary": A concise one-sentence summary (maximum 150 characters)
52
+ - "shouldReply": Boolean - true if the sender expects a reply, false otherwise
53
+ - "riskAssessment": Object containing:
54
+ - "risk": Integer from 1 to 5 (1=low risk, 5=high risk)
55
+ - "assessment": Single sentence describing only the risk factors (if risk > 1)
56
+
57
+ OPTIONAL FIELDS (only include if applicable):
58
+ - "replyText": If this is a reply or forward, extract only the new content written by the current sender (exclude quoted text, signatures, and reply markers)
59
+ - "events": Array of event objects (only include if confidence is medium or high)
60
+ - "description": Event description in English
61
+ - "location": Event location (if mentioned)
62
+ - "startTime": ISO 8601 format (YYYY-MM-DDTHH:mm:ss or YYYY-MM-DD)
63
+ - "endTime": ISO 8601 format (only if clearly stated)
64
+ - "type": One of "meeting", "appointment", "task", "event", or "general"
65
+ - "confidence": One of "high", "medium", "low"
66
+ - "actions": Array of action objects (only if recipient must take action)
67
+ - "description": Action description in English
68
+ - "dueDate": ISO 8601 format (YYYY-MM-DDTHH:mm:ss or YYYY-MM-DD)
69
+ - "confidence": One of "high", "medium", "low"
70
+
71
+ SECURITY ANALYSIS - Assess risk based on these factors:
72
+ HIGH RISK INDICATORS (risk 4-5):
73
+ - Links with typosquatted or homoglyph domains (e.g., paypa1.com, g00gle.com)
74
+ - Sender address mismatches claimed identity (e.g., from "support@random.com" claiming to be "Microsoft")
75
+ - Promises of large unclaimed money, inheritances, or lottery winnings
76
+ - Threats of severe penalties, account suspension, or legal action
77
+ - Requests to verify account credentials or update payment information urgently
78
+ - Attachments with double extensions (e.g., invoice.pdf.exe) or executable extensions (.exe, .scr, .bat, .vbs, .js)
79
+
80
+ MEDIUM RISK INDICATORS (risk 2-3):
81
+ - Vague business opportunities with no specific details
82
+ - Claims of technical issues requiring immediate action
83
+ - Sender uses suspicious email patterns (long random strings, excessive numbers in username)
84
+ - Missing or failed email authentication (no SPF/DKIM/DMARC pass)
85
+ - Offers of adult content or age-restricted services
86
+
87
+ LOW RISK INDICATORS (risk 1):
88
+ - Valid SPF, DKIM, and DMARC authentication (all pass)
89
+ - Professional email from recognized organization
90
+ - No urgency pressure or suspicious requests
91
+
92
+ EMAIL AUTHENTICATION FACTS:
93
+ - "authentication-results" header shows SPF, DKIM, DMARC, and ARC validation
94
+ - Look for: "spf=pass", "dkim=pass", "dmarc=pass", "arc=pass"
95
+ - Passing all checks significantly reduces spoofing risk
96
+ - Failed or missing authentication increases risk
97
+
98
+ TIMESTAMP GUIDELINES:
99
+ - Use ISO 8601 format: YYYY-MM-DDTHH:mm:ss (24-hour time)
100
+ - For date-only: YYYY-MM-DD
101
+ - If email uses relative dates (e.g., "tomorrow", "next week"), calculate from the "date" header
102
+ - Do not include timezone information
103
+
104
+ REPLY/FORWARD DETECTION:
105
+ - Email is a reply if it has an "in-reply-to" header
106
+ - Email is a forward if it has "references" header but no "in-reply-to" header
107
+ - For replies/forwards, extract only the new content, excluding:
108
+ - Lines starting with ">" (quoted text)
109
+ - Email signatures
110
+ - Previous email headers (From:, Sent:, To:, etc.)
111
+ - Forwarding markers (------Original Message------)
112
+
113
+ Always return response in English, regardless of input language.
88
114
  `.trim();
89
115
 
90
116
  const SCHEMA_PROMPT = `
@@ -122,6 +148,57 @@ function getApiUrl(baseApiUrl, path) {
122
148
  return url.href;
123
149
  }
124
150
 
151
+ /**
152
+ * Generates a comprehensive summary and analysis of an email message using OpenAI's API
153
+ *
154
+ * @param {Object} message - The email message object to analyze
155
+ * @param {Array} message.headers - Array of header objects with {key, value} structure
156
+ * @param {Array} [message.attachments] - Array of attachment objects with {filename, contentType}
157
+ * @param {string} [message.text] - Plain text content of the email
158
+ * @param {string} [message.html] - HTML content of the email (will be converted to text)
159
+ * @param {string} apiToken - OpenAI API authentication token
160
+ * @param {Object} [opts] - Configuration options
161
+ * @param {string} [opts.baseApiUrl] - Custom API base URL (default: OpenAI API)
162
+ * @param {string} [opts.gptModel='gpt-5-mini'] - Model to use (gpt-3.5-turbo, gpt-4, etc.)
163
+ * @param {string} [opts.systemPrompt] - Override default system prompt
164
+ * @param {string} [opts.userPrompt] - Override default user prompt
165
+ * @param {number} [opts.maxTokens=4000] - Maximum tokens for the prompt
166
+ * @param {number} [opts.temperature] - Sampling temperature (0-2)
167
+ * @param {number} [opts.topP] - Nucleus sampling parameter (0-1)
168
+ * @param {string} [opts.user] - OpenAI user identifier for tracking
169
+ * @param {Array<string>} [opts.allowedHeaders] - Additional headers to include (merged with defaults)
170
+ * @param {boolean} [opts.verbose=false] - Enable debug logging
171
+ *
172
+ * @returns {Promise<Object>} Analysis result object
173
+ * @returns {string} return.sentiment - Email sentiment: 'positive', 'neutral', or 'negative'
174
+ * @returns {string} return.summary - One-sentence summary of the email
175
+ * @returns {boolean} return.shouldReply - Whether sender expects a reply
176
+ * @returns {Object} return.riskAssessment - Security risk assessment
177
+ * @returns {number} return.riskAssessment.risk - Risk score from 1 (low) to 5 (high)
178
+ * @returns {string} [return.riskAssessment.assessment] - Description of risk factors (if risk > 1)
179
+ * @returns {string} [return.replyText] - Extracted new content from reply/forward
180
+ * @returns {Array<Object>} [return.events] - Extracted calendar events
181
+ * @returns {Array<Object>} [return.actions] - Actions required from recipient
182
+ * @returns {string} return.id - OpenAI request ID
183
+ * @returns {number} return.tokens - Total tokens used
184
+ * @returns {string} return.model - Model used for generation
185
+ *
186
+ * @throws {Error} If prompt is too long even after truncation
187
+ * @throws {Error} If API request fails
188
+ * @throws {Error} If response is not valid JSON
189
+ *
190
+ * @example
191
+ * const result = await generateSummary(
192
+ * {
193
+ * headers: [{key: 'from', value: 'user@example.com'}],
194
+ * text: 'Meeting tomorrow at 2pm'
195
+ * },
196
+ * 'sk-...',
197
+ * { gptModel: 'gpt-5-mini' }
198
+ * );
199
+ * console.log(result.summary);
200
+ * console.log(result.events);
201
+ */
125
202
  async function generateSummary(message, apiToken, opts) {
126
203
  opts = opts || {};
127
204
 
@@ -130,8 +207,8 @@ async function generateSummary(message, apiToken, opts) {
130
207
  let systemPrompt = (opts.systemPrompt || DEFAULT_SYSTEM_PROMPT).toString().trim();
131
208
  let userPrompt = (opts.userPrompt || DEFAULT_USER_PROMPT).toString().trim();
132
209
 
133
- let maxAllowedTokens = opts.maxTokens || MAX_ALLOWED_TOKENS;
134
- let gptModel = opts.gptModel || 'gpt-3.5-turbo';
210
+ let maxAllowedTokens = opts.maxTokens || DEFAULT_MAX_ALLOWED_TOKENS;
211
+ let gptModel = opts.gptModel || 'gpt-5-mini';
135
212
 
136
213
  let text = message.text || '';
137
214
  if (message.html && (!text || message.html.length >= text.length)) {
@@ -161,7 +238,7 @@ async function generateSummary(message, apiToken, opts) {
161
238
  header => allowedHeaders.includes(header.key)
162
239
  )
163
240
  .filter(header => {
164
- // only keept the latest authentication header
241
+ // only keep the latest authentication header
165
242
  if (['authentication-results', 'arc-authentication-results', 'arc-message-signature', 'arc-seal'].includes(header.key)) {
166
243
  if (headerSeen.has(header.key)) {
167
244
  return false;
@@ -181,7 +258,7 @@ async function generateSummary(message, apiToken, opts) {
181
258
 
182
259
  if (promptText.length > MAX_ALLOWED_TEXT_LENGTH) {
183
260
  charactersRemoved += promptText.length - MAX_ALLOWED_TEXT_LENGTH;
184
- promptText = promptText.substr(0, MAX_ALLOWED_TEXT_LENGTH);
261
+ promptText = promptText.substring(0, MAX_ALLOWED_TEXT_LENGTH);
185
262
  }
186
263
 
187
264
  while (true) {
@@ -203,7 +280,7 @@ ${JSON.stringify(content)}`;
203
280
  charactersRemoved += 1024;
204
281
  } else if (promptText.length > 2 * 256) {
205
282
  promptText = promptText.substring(0, promptText.length - 256);
206
- charactersRemoved += 255;
283
+ charactersRemoved += 256;
207
284
  } else if (promptText.length > 2 * 100) {
208
285
  promptText = promptText.substring(0, promptText.length - 100);
209
286
  charactersRemoved += 100;
@@ -214,7 +291,17 @@ ${JSON.stringify(content)}`;
214
291
  promptText = promptText.substring(0, promptText.length - 1);
215
292
  charactersRemoved += 1;
216
293
  } else {
217
- throw new Error(`Prompt too long. Removed ${charactersRemoved} characters.`);
294
+ const error = new Error(
295
+ `Unable to fit email content within token limit of ${maxAllowedTokens}. ` +
296
+ `Original text length: ${text.length} characters. ` +
297
+ `Removed ${charactersRemoved} characters but still exceeds limit. ` +
298
+ `Consider using a model with larger context window.`
299
+ );
300
+ error.code = 'PROMPT_TOO_LONG';
301
+ error.originalLength = text.length;
302
+ error.charactersRemoved = charactersRemoved;
303
+ error.maxAllowedTokens = maxAllowedTokens;
304
+ throw error;
218
305
  }
219
306
  }
220
307
 
@@ -253,7 +340,7 @@ ${JSON.stringify(content)}`;
253
340
  openAiAPIURL = getApiUrl(baseApiUrl, OPENAI_API_URL_INSTRUCT);
254
341
  payload.prompt = `${systemPrompt}\n${prompt}`;
255
342
  let tokens = tokenizer.encode(payload.prompt);
256
- payload.max_tokens = 4000 - tokens.bpe.length;
343
+ payload.max_tokens = MAX_INSTRUCT_TOKENS - tokens.bpe.length;
257
344
  }
258
345
  break;
259
346
 
@@ -289,9 +376,9 @@ ${JSON.stringify(content)}`;
289
376
  data = await res.json();
290
377
 
291
378
  if (!res.ok) {
292
- if (res.status === 429 && ++retries < 5) {
379
+ if (res.status === 429 && ++retries < MAX_RETRIES) {
293
380
  // try again
294
- await new Promise(r => setTimeout(r, 1000));
381
+ await new Promise(r => setTimeout(r, RETRY_DELAY_MS));
295
382
  return await run();
296
383
  }
297
384
 
@@ -9,13 +9,29 @@ const fetchAgent = new Agent({ connect: { timeout: 90 * 1000 } });
9
9
 
10
10
  const tokenizer = new GPT3Tokenizer({ type: 'gpt3' });
11
11
 
12
- const MAX_ALLOWED_TEXT_LENGTH = 32 * 1024;
13
- const MAX_ALLOWED_TOKENS = 4000;
12
+ const MAX_ALLOWED_TEXT_LENGTH = 64 * 1024;
13
+ const DEFAULT_MAX_ALLOWED_TOKENS = 30000;
14
14
 
15
15
  const OPENAI_API_BASE_URL = 'https://api.openai.com';
16
16
 
17
17
  const OPENAI_API_URL = '/v1/chat/completions';
18
18
 
19
+ const DEFAULT_ALLOWED_HEADERS = [
20
+ 'from',
21
+ 'to',
22
+ 'cc',
23
+ 'bcc',
24
+ 'subject',
25
+ 'mime-version',
26
+ 'authentication-results',
27
+ 'arc-authentication-results',
28
+ 'arc-message-signature',
29
+ 'arc-seal',
30
+ 'date',
31
+ 'content-type',
32
+ 'list-id'
33
+ ];
34
+
19
35
  const DEFAULT_SYSTEM_PROMPT = `
20
36
  I want you to act as are an IT security expert that monitors emails for suspicious and risky activity.
21
37
  `
@@ -79,8 +95,8 @@ async function riskAnalysis(message, apiToken, opts) {
79
95
  let systemPrompt = opts.systemPrompt || DEFAULT_SYSTEM_PROMPT;
80
96
  let userPrompt = opts.userPrompt || DEFAULT_USER_PROMPT;
81
97
 
82
- let maxAllowedTokens = opts.maxTokens || MAX_ALLOWED_TOKENS;
83
- let gptModel = opts.gptModel || 'gpt-3.5-turbo';
98
+ let maxAllowedTokens = opts.maxTokens || DEFAULT_MAX_ALLOWED_TOKENS;
99
+ let gptModel = opts.gptModel || 'gpt-5-mini';
84
100
 
85
101
  let text = message.text || '';
86
102
  if (message.html && (!text || message.html.length > text.length * 2)) {
@@ -95,11 +111,10 @@ async function riskAnalysis(message, apiToken, opts) {
95
111
  .concat(message.headers || [])
96
112
  .filter(
97
113
  // use a whitelist
98
- header =>
99
- ['from', 'to', 'cc', 'bcc', 'subject', 'mime-version', 'authentication-results', 'date', 'content-type', 'list-id'].includes(header.key)
114
+ header => DEFAULT_ALLOWED_HEADERS.includes(header.key)
100
115
  )
101
116
  .filter(header => {
102
- // only keept the latest
117
+ // only keep the latest
103
118
  if (['authentication-results'].includes(header.key)) {
104
119
  if (headerSeen.has(header.key)) {
105
120
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postalsys/email-ai-tools",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Email AI tools",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,15 +22,15 @@
22
22
  "homepage": "https://github.com/postalsys/email-ai-tools#readme",
23
23
  "devDependencies": {
24
24
  "@eslint/eslintrc": "3.3.1",
25
- "@eslint/js": "9.38.0",
26
- "eslint": "9.38.0",
25
+ "@eslint/js": "9.39.1",
26
+ "eslint": "9.39.1",
27
27
  "eslint-config-nodemailer": "1.2.0",
28
28
  "eslint-config-prettier": "10.1.8",
29
- "mailparser": "3.7.5",
29
+ "mailparser": "3.9.0",
30
30
  "prettier": "3.6.2"
31
31
  },
32
32
  "dependencies": {
33
- "@postalsys/email-text-tools": "2.3.4",
33
+ "@postalsys/email-text-tools": "2.3.5",
34
34
  "gpt3-tokenizer": "1.1.5",
35
35
  "libmime": "5.3.7",
36
36
  "linkify-it": "5.0.0",