@bobfrankston/rmfmail 1.2.165 → 1.2.166
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/client/android-bootstrap.bundle.js +8 -5
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/compose/compose.bundle.js +8 -0
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +14 -0
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +12 -0
- package/package.json +5 -5
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +32 -7
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +33 -7
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-store-web/android-bootstrap.d.ts.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.js +16 -6
- package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.ts +17 -6
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-store-web/sync-manager.d.ts.map +1 -1
- package/packages/mailx-store-web/sync-manager.js +20 -5
- package/packages/mailx-store-web/sync-manager.js.map +1 -1
- package/packages/mailx-store-web/sync-manager.ts +21 -5
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-52720 → node_modules.npmglobalize-stash-61300}/.package-lock.json +0 -0
|
@@ -10593,10 +10593,12 @@ var AndroidSyncManager = class {
|
|
|
10593
10593
|
auth = { method: "XOAUTH2", user: smtpUser, token };
|
|
10594
10594
|
}
|
|
10595
10595
|
const parseAddrs = (s) => s.match(/[\w.+-]+@[\w.-]+/g) || [];
|
|
10596
|
-
const
|
|
10597
|
-
const
|
|
10598
|
-
const
|
|
10599
|
-
const
|
|
10596
|
+
const headerEnd = raw.search(/\r?\n\r?\n/);
|
|
10597
|
+
const headerSec = (headerEnd === -1 ? raw : raw.slice(0, headerEnd)).replace(/\r?\n[ \t]+/g, " ");
|
|
10598
|
+
const toMatch = headerSec.match(/^To:\s*(.+)$/mi);
|
|
10599
|
+
const ccMatch = headerSec.match(/^Cc:\s*(.+)$/mi);
|
|
10600
|
+
const bccMatch = headerSec.match(/^Bcc:\s*(.+)$/mi);
|
|
10601
|
+
const fromMatch = headerSec.match(/^From:\s*(.+)$/mi);
|
|
10600
10602
|
const recipients = [
|
|
10601
10603
|
...toMatch ? parseAddrs(toMatch[1]) : [],
|
|
10602
10604
|
...ccMatch ? parseAddrs(ccMatch[1]) : [],
|
|
@@ -10604,7 +10606,8 @@ var AndroidSyncManager = class {
|
|
|
10604
10606
|
];
|
|
10605
10607
|
const sender = fromMatch ? parseAddrs(fromMatch[1])[0] || account.email : account.email;
|
|
10606
10608
|
if (recipients.length === 0) throw new Error("No recipients");
|
|
10607
|
-
const
|
|
10609
|
+
const stripBcc = (h) => h.replace(/^Bcc:[^\n]*(\r?\n[ \t][^\n]*)*(\r?\n|$)/mi, "").replace(/\r?\n$/, "");
|
|
10610
|
+
const rawToSend = headerEnd === -1 ? stripBcc(raw) : stripBcc(raw.slice(0, headerEnd)) + raw.slice(headerEnd);
|
|
10608
10611
|
const client = new SmtpClient({
|
|
10609
10612
|
host: smtpHost,
|
|
10610
10613
|
port: smtpPort,
|