imapflow 2.0.6 → 2.0.7
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.7](https://github.com/postalsys/imapflow/compare/v2.0.6...v2.0.7) (2026-09-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **fetch:** keep body sections a server sends as quoted strings ([a4f2f18](https://github.com/postalsys/imapflow/commit/a4f2f181f978dea9e6c94195c1f4ddbe54d52fc7)), closes [#403](https://github.com/postalsys/imapflow/issues/403)
|
|
9
|
+
|
|
3
10
|
## [2.0.6](https://github.com/postalsys/imapflow/compare/v2.0.5...v2.0.6) (2026-09-22)
|
|
4
11
|
|
|
5
12
|
|
package/dist/cjs/package-info.js
CHANGED
package/dist/cjs/tools.js
CHANGED
|
@@ -681,6 +681,12 @@ async function formatMessageResponse(untagged, mailbox) {
|
|
|
681
681
|
if (Buffer.isBuffer(attribute.value)) {
|
|
682
682
|
return attribute.value;
|
|
683
683
|
}
|
|
684
|
+
// A section is an nstring, so a server may answer with a quoted string
|
|
685
|
+
// instead of a literal (Yahoo does for small parts). The tokenizer decoded
|
|
686
|
+
// the line as UTF-8, so encoding the same way restores the bytes it sent.
|
|
687
|
+
if (typeof attribute.value === 'string') {
|
|
688
|
+
return Buffer.from(attribute.value);
|
|
689
|
+
}
|
|
684
690
|
};
|
|
685
691
|
// NIL (parsed as null) and other non-array values yield an empty array, so callers
|
|
686
692
|
// can safely index into the result. RFC 8474 allows e.g. `THREADID NIL` when the
|
package/dist/esm/package-info.js
CHANGED
package/dist/esm/tools.js
CHANGED
|
@@ -631,6 +631,12 @@ export async function formatMessageResponse(untagged, mailbox) {
|
|
|
631
631
|
if (Buffer.isBuffer(attribute.value)) {
|
|
632
632
|
return attribute.value;
|
|
633
633
|
}
|
|
634
|
+
// A section is an nstring, so a server may answer with a quoted string
|
|
635
|
+
// instead of a literal (Yahoo does for small parts). The tokenizer decoded
|
|
636
|
+
// the line as UTF-8, so encoding the same way restores the bytes it sent.
|
|
637
|
+
if (typeof attribute.value === 'string') {
|
|
638
|
+
return Buffer.from(attribute.value);
|
|
639
|
+
}
|
|
634
640
|
};
|
|
635
641
|
// NIL (parsed as null) and other non-array values yield an empty array, so callers
|
|
636
642
|
// can safely index into the result. RFC 8474 allows e.g. `THREADID NIL` when the
|