Skip to content

Commit bac2ad6

Browse files
committed
docs(email): describe embedded Outlook recovery (#961)
Align the source-inspection guidance and existing unreleased feature entry with child address observations. Record the accepted source-identity boundary and its target-only migration coverage. Architecture: ADR 0035, ADR 0041.
1 parent d01ab2f commit bac2ad6

7 files changed

Lines changed: 23 additions & 2 deletions

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ received.getProblems(); // actual processing issues, with origin
467467
Original RTF remains available when an Outlook body becomes HTML; an expected successful conversion does not itself create a Problem.
468468
If a malformed Sender supplies the existing fallback for a missing From, its recovery Problem points to that received Sender header.
469469
From and Reply-To using the same fallback share one observation; an unused Sender is left alone.
470+
When an embedded Outlook message is converted to an EML attachment, recovered address problems also appear in the parent Email's
471+
`getProblems()`, linked to the child's original source and identity.
470472
Delivery-report interpretation warnings link to the affected source part through `problem.getSources()`; an ambiguous report can identify
471473
multiple conflicting parts. Reading those references does not fetch the report content again.
472474
If the selected delivery-report read fails after consuming a prefix, that prefix remains in source inspection with incomplete capture and

‎RELEASE_HISTORY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Full Simple Java Mail release history. The [README](https://github.com/bbottema/
66

77
### Major Features
88

9-
- [#961](https://github.com/bbottema/simple-java-mail/issues/961): made Email a common inspection result for imperfect MIME, EML and Outlook input. Usable bodies and resources stay in the normal getters; `getSourceData()` exposes received structure, metadata and selectively retained originals, while `getProblems()` records actual processing issues with immutable input identities. When a malformed Sender supplies a missing From, its recovery is reported once against that Sender header. Original RTF remains inspectable alongside converted HTML without inventing a Problem for a successful transformation. Best-effort conversion preserves readable neighbors, captured partial content and copy history, including when automatic interpretation of an independent signed attachment fails. An unreadable optional address field with no captured raw fallback remains unavailable with its Problem instead of aborting the import through an invalid recipient. Readable resources also survive optional disposition getter failures when the physical declarations establish no disposition. Delivery-report interpretation warnings identify their affected source parts, and a failed selected report read retains its acquired prefix and source-linked observation without another read. Optional EML/MimeMessage result terminals carry output diagnostics without wrapping Email itself; combined static MSG artifact conversion preserves recognized input failures. Existing exact/protected bytes and outgoing validation remain independent.
9+
- [#961](https://github.com/bbottema/simple-java-mail/issues/961): made Email a common inspection result for imperfect MIME, EML and Outlook input. Usable bodies and resources stay in the normal getters; `getSourceData()` exposes received structure, metadata and selectively retained originals, while `getProblems()` records actual processing issues with immutable input identities. When a malformed Sender supplies a missing From, its recovery is reported once against that Sender header. Address recoveries performed while converting embedded Outlook messages to EML attachments also appear in the parent Problems list, linked to the child's original source and identity. Original RTF remains inspectable alongside converted HTML without inventing a Problem for a successful transformation. Best-effort conversion preserves readable neighbors, captured partial content and copy history, including when automatic interpretation of an independent signed attachment fails. An unreadable optional address field with no captured raw fallback remains unavailable with its Problem instead of aborting the import through an invalid recipient. Readable resources also survive optional disposition getter failures when the physical declarations establish no disposition. Delivery-report interpretation warnings identify their affected source parts, and a failed selected report read retains its acquired prefix and source-linked observation without another read. Optional EML/MimeMessage result terminals carry output diagnostics without wrapping Email itself; combined static MSG artifact conversion preserves recognized input failures. Existing exact/protected bytes and outgoing validation remain independent.
1010

1111
- [#488](https://github.com/bbottema/simple-java-mail/issues/488): added an opt-in local CLI daemon that retains isolated Mailers and can reuse SMTP connections. Argument files expand once in the caller's directory, escaped values remain literal, and help is available before configuration loading. Startup captures complete supported JVM configuration; later clients retain the running instance's snapshot. Detached startup normalizes relative state roots and retains the temporary-directory input used for shortened Unix-socket paths. Unsafe startup-log paths are refused before changing a linked target, and state-file permissions apply only to regular files, including the ordinary daemon log. Lock acquisition refuses links and nonregular paths before opening, preserving dangling-link targets. Control commands stay responsive, standalone shutdown is bounded, and Mailer reuse fingerprints include only selected security material. Relative filesystem images follow the requesting directory unless a configured base owns them. Completed request identities remain protected throughout the accepted authentication replay lifetime, including future-valid timestamps. Capacity eviction can replace an eligible idle profile even when an older profile is still constructing or another candidate becomes active. CLI validation keeps full governed MIME preparation without activating sending resources: it leases a ready compatible daemon Mailer or prepares transiently on a cold miss, without publishing a sending-cache entry. Maven prepares the CLI command/help metadata and keeps a reusable local build cache; releases generate fresh data and installed commands only load it.
1212

‎docs/adr/0041-email-source-inspection-and-problems.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ occurrence(s). From and Reply-To using that same fallback share the observation.
137137
through copying and serialization. [ADR 0035](0035-tolerant-reading-and-strict-production.md#observations-for-a-selected-sender-fallback-accepted-7-november-2026)
138138
keeps the existing address selection and successful provider interpretations; deliberately unused Sender fields remain outside this recovery.
139139

140+
Clarification accepted 8 November 2026 under [#961](https://github.com/bbottema/simple-java-mail/issues/961): address recoveries performed
141+
while materializing an embedded Outlook MSG are included once in the root Email's Problems. Qualify the child location and link the
142+
observation to its captured source occurrence and original input identity, including through copying and serialization. Keep the
143+
tolerant address value, generated EML attachment and neighboring content. This does not request another content read or extend
144+
inspection to ordinary untouched EML attachments; deliberately unused source values do not gain an observation.
145+
140146
An inherited observation from A still identifies A after copies select B and C as their current Message-IDs. A genuinely new recoverable
141147
problem observed while processing B identifies B. Preserve actual source identity and ownership for materialized protected content;
142148
aggregate inner observations once without promoting a child finding into parent protection success. An unknown or unrequested protection

‎docs/adr/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Architecture decision records
22

3+
The accepted 8 November [#961](https://github.com/bbottema/simple-java-mail/issues/961) follow-up includes address recoveries performed
4+
while materializing embedded Outlook messages in the root Email's Problems. [ADR 0041](0041-email-source-inspection-and-problems.md#problems-and-immutable-input-identity)
5+
preserves child source references, original identities and qualified locations. The issue tracks implementation and delivery separately.
6+
37
The accepted 8 November [#974](https://github.com/bbottema/simple-java-mail/issues/974) correction keeps missing Outlook dates absent while preserving readable message content and the existing client-submit/source-date selection. [ADR 0035](0035-tolerant-reading-and-strict-production.md) owns interpretation; ADRs 0036/0041 retain snapshot and source-evidence ownership.
48

59
The accepted [#975](https://github.com/bbottema/simple-java-mail/issues/975) change retires #201's fabricated Outlook From address. [ADR 0041](0041-email-source-inspection-and-problems.md) keeps missing sender facts unavailable and retains source evidence; outgoing validation and deliberate sender/default configuration remain separate.

‎docs/research/10.0.0-openrewrite-migration-implementation-plan.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,11 @@ No public signature, T001-T008 transformation or report identity changes; produc
17681768

17691769
### Source inspection and processing problems (#961)
17701770

1771+
The accepted 8 November continuation includes address recovery performed while materializing embedded Outlook MSG messages. Add
1772+
frozen-target controls for qualified root Problems, child source references/original identities, healthy neighbors, nested occurrences,
1773+
and copy/serialization preservation. Keep tolerant recipient values and generated EML behavior. This completes an unreleased target
1774+
contract; it introduces no released-9.x rewrite, report identity or migration requirement.
1775+
17711776
[#961](https://github.com/bbottema/simple-java-mail/issues/961) adds `Email.getSourceData()` and root `getProblems()` for unreleased 10.0.0.
17721777
Keep frozen-target controls for generic header/property/part enumeration, raw occurrence/order and outgoing exclusions; actual format/derived
17731778
source ownership; captured-only, complete/partial/unavailable content; and successful RTF-to-HTML original retention with no Problem. Pair

‎docs/research/10.0.0-openrewrite-migration-research.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,10 @@ No public signature, T001-T008 transformation or report identity changes; produc
15611561

15621562
### Source inspection and processing problems (#961)
15631563

1564+
The accepted 8 November embedded-Outlook continuation includes actual nested address recoveries in root Problems with qualified
1565+
locations, child source references and original identities. Its conversion/copy/serialization cases are frozen-target controls for #961,
1566+
with tolerant values and generated EML retained. No released-9.x API, automatic rewrite or new migration report follows.
1567+
15641568
[#961](https://github.com/bbottema/simple-java-mail/issues/961) adds source evidence and generic historical processing observations to Email.
15651569
The old outgoing header map and existing specialized Outlook result API retain their meanings. Applications may manually adopt generic
15661570
header/property/part enumeration and root diagnostics, including immutable origin Message-ID/reference, without replacing import calls.

‎simplejavamail.org‎

0 commit comments

Comments
 (0)