Repository navigation
Commit e12bb04
authored
feat: include recipient display names in outbound email headers (#332)
* feat(twister): carry recipient display names through reply-recipient resolution
* fix(twister): use Uuid.Generate() for ResolvedRecipient test fixtures
The new Case-1 name-carrying test constructed ResolvedRecipient objects
with plain string ids ("1", "2"), which vitest accepted (it strips
types) but tsc rejects since ResolvedRecipient.id is a branded Uuid.
Use the existing Uuid.Generate() helper instead of a cast.
* feat(gmail): include recipient display names in outbound To/Cc/Bcc headers
* test(gmail): cover named recipients on plain reply and compose sends
Adds regression coverage for two outbound-header sites that had no
test exercising display names: a reply resolved from a curated
recipient list, and a brand-new compose (non-forward) send. Both
previously had no assertion that would fail if the To header dropped
back to a bare email address.
* feat(outlook): include recipient display names on outbound Graph recipients
Microsoft Graph accepts an optional display name alongside each recipient
address (emailAddress: { address, name }). The Outlook connector's reply,
calendar-reply, and compose send paths only ever sent the bare address,
even when a display name was available for the recipient, so outbound
messages always showed a plain email address instead of a name.
Adds regression coverage for a curated (platform-resolved) mail reply and
a plain compose send, both of which previously had no assertion that would
catch the name being dropped.
* test: use fictional recipient names in fixtures1 parent f40669e commit e12bb04
8 files changed
Lines changed: 463 additions & 84 deletions
File tree
- .changeset
- connectors
- google/src/mail
- outlook/src/mail
- twister/src/messaging
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
493 | 508 | | |
494 | 509 | | |
495 | 510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
364 | 416 | | |
365 | 417 | | |
366 | 418 | | |
| |||
374 | 426 | | |
375 | 427 | | |
376 | 428 | | |
377 | | - | |
| 429 | + | |
378 | 430 | | |
379 | 431 | | |
380 | 432 | | |
381 | 433 | | |
382 | | - | |
| 434 | + | |
383 | 435 | | |
384 | 436 | | |
385 | 437 | | |
| |||
431 | 483 | | |
432 | 484 | | |
433 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
434 | 505 | | |
435 | 506 | | |
436 | 507 | | |
| |||
524 | 595 | | |
525 | 596 | | |
526 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
527 | 636 | | |
528 | 637 | | |
529 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1811 | 1811 | | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| |||
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1911 | 1918 | | |
1912 | 1919 | | |
1913 | 1920 | | |
| |||
1920 | 1927 | | |
1921 | 1928 | | |
1922 | 1929 | | |
1923 | | - | |
| 1930 | + | |
1924 | 1931 | | |
1925 | 1932 | | |
1926 | 1933 | | |
| |||
1930 | 1937 | | |
1931 | 1938 | | |
1932 | 1939 | | |
1933 | | - | |
| 1940 | + | |
1934 | 1941 | | |
1935 | 1942 | | |
1936 | 1943 | | |
| |||
2249 | 2256 | | |
2250 | 2257 | | |
2251 | 2258 | | |
2252 | | - | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
2253 | 2264 | | |
2254 | 2265 | | |
2255 | 2266 | | |
2256 | 2267 | | |
2257 | 2268 | | |
2258 | 2269 | | |
2259 | | - | |
2260 | | - | |
2261 | | - | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
2262 | 2274 | | |
2263 | | - | |
2264 | | - | |
| 2275 | + | |
| 2276 | + | |
2265 | 2277 | | |
2266 | 2278 | | |
2267 | 2279 | | |
| |||
2436 | 2448 | | |
2437 | 2449 | | |
2438 | 2450 | | |
2439 | | - | |
| 2451 | + | |
| 2452 | + | |
2440 | 2453 | | |
2441 | 2454 | | |
2442 | 2455 | | |
2443 | 2456 | | |
2444 | 2457 | | |
2445 | 2458 | | |
2446 | 2459 | | |
2447 | | - | |
2448 | | - | |
2449 | | - | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
2450 | 2464 | | |
2451 | 2465 | | |
2452 | | - | |
2453 | | - | |
| 2466 | + | |
| 2467 | + | |
2454 | 2468 | | |
2455 | 2469 | | |
2456 | 2470 | | |
| |||
0 commit comments