proton-mail-bridge-client 2.20.0 → 2.20.1
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/README.md +1 -1
- package/dist/services/simple-imap-service.js +2 -2
- package/dist/services/simple-imap-service.js.map +1 -1
- package/dist/tools/sending.js +1 -1
- package/dist/tools/sending.js.map +1 -1
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +6 -2
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -306,7 +306,7 @@ Reload the Cline extension after saving. Proton Mail tools will appear in Cline'
|
|
|
306
306
|
For a server with no desktop, next to a headless Bridge. The image installs the published npm package and is published for each release to `ghcr.io/googlarz/proton-mail-bridge-client` (`:<version>` and `:latest`, linux/amd64 and linux/arm64). To build it yourself from this repo:
|
|
307
307
|
|
|
308
308
|
```bash
|
|
309
|
-
docker build -f docker/Dockerfile --build-arg VERSION=2.20.
|
|
309
|
+
docker build -f docker/Dockerfile --build-arg VERSION=2.20.1 -t proton-mail-bridge-client .
|
|
310
310
|
docker run -i --rm --network host \
|
|
311
311
|
-e PROTONMAIL_USERNAME=you@proton.me -e PROTONMAIL_PASSWORD_FILE=/run/secrets/bridge \
|
|
312
312
|
-v /path/to/bridge-password:/run/secrets/bridge:ro -v bridge-client-data:/data \
|
|
@@ -3,7 +3,7 @@ import { mkdir, open, stat, writeFile } from "node:fs/promises";
|
|
|
3
3
|
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
4
4
|
import { ImapFlow } from "imapflow";
|
|
5
5
|
import { simpleParser } from "mailparser";
|
|
6
|
-
import { classifyAttachment, createEmailId, dedupeEmails, extractAttachments,
|
|
6
|
+
import { classifyAttachment, createEmailId, dedupeEmails, extractAttachments, parseMessageIds, isSelfAddress, isTextLikeMimeType, mimeHeaderString, mapEnvelopeAddresses, mapParsedAddresses, labelMatchesFolder, matchesLocalSearchFilters, matchesNonAsciiCriteria, splitNonAsciiCriteria, nextDay, DEFAULT_INDEX_BODY_CHARS, InvalidArgumentError, decodeAttachmentText, isPathInside, normalizeLimit, optionalBoolean, optionalNumber, parseDateInput, htmlToMarkdown, shortenLongLinks, redactInlineData, parseEmailId, previewText, sanitizeFileName, sortEmailsByNewest, stripHtmlToText, summarizeCalendarText, trimSlashes, } from "../utils/helpers.js";
|
|
7
7
|
import { logger } from "../utils/logger.js";
|
|
8
8
|
import { ensureAccountIdentityMatches } from "../utils/account-identity.js";
|
|
9
9
|
import { tlsOptionsFor } from "../utils/tls.js";
|
|
@@ -3611,7 +3611,7 @@ export class SimpleIMAPService {
|
|
|
3611
3611
|
enrichSummaryFromParsed(summary, parsed, includeAttachmentText) {
|
|
3612
3612
|
const parsedAttachments = this.mapParsedAttachments(parsed);
|
|
3613
3613
|
const htmlText = stripHtmlToText(typeof parsed.html === "string" ? parsed.html : undefined);
|
|
3614
|
-
const references =
|
|
3614
|
+
const references = parseMessageIds(this.readHeaderValue(parsed, "references"));
|
|
3615
3615
|
return {
|
|
3616
3616
|
...summary,
|
|
3617
3617
|
subject: parsed.subject || summary.subject,
|