Commit ef3eb91
Add --from flag to email.draft-reply, remove naive auto-detection
Codex correctly identified that using original.to[0] as the from address
is problematic - it fails for group emails, CC'd recipients, etc.
Since we can't access Identity/get (requires submission capability which
we intentionally avoid for safety), we:
1. Remove the naive auto-detection
2. Add --from flag to let users explicitly specify the from address
3. Default to server's account default when --from not provided
Users should use --from when replying to emails received on non-default
addresses (e.g., --from "joseph@noc0.dev").
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 48aca4f commit ef3eb91
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
| 434 | + | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
451 | 450 | | |
452 | 451 | | |
453 | 452 | | |
454 | | - | |
| 453 | + | |
455 | 454 | | |
456 | 455 | | |
457 | 456 | | |
| |||
829 | 828 | | |
830 | 829 | | |
831 | 830 | | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
951 | 952 | | |
952 | 953 | | |
953 | 954 | | |
| |||
0 commit comments