Aaron Guise
7a483b3dd4
fix: honor the user's filename template for forward-as-attachment
...
buildForwardAsAttachmentPayload called emailExportFilename(email) with
no options, always using the default naming template regardless of
the user's configured emailDownloadTemplate (and space/case/diacritics
transforms) - the same settings the neighboring "Export as .eml"
action already respects. That could produce inconsistent .eml
filenames between the two actions for the same message.
Accept an optional EmailFilenameOptions parameter and pass it through.
handleForwardAsAttachment now reads the same settings
email-viewer.tsx's emailFilenameOptions useMemo does, via
useSettingsStore.getState() (a one-off read inside an event handler,
matching this file's existing pattern, rather than a new reactive
subscription). Add a unit test covering a custom template.
Caught by GitHub Copilot's automated PR review.
2026-07-27 16:45:53 +12:00
..
2026-06-19 23:52:42 +02:00
2026-07-04 14:51:46 +02:00
2026-06-20 13:09:26 +02:00
2026-06-19 23:52:42 +02:00
2026-06-12 00:23:00 +02:00
2026-06-19 23:52:42 +02:00
2026-06-03 19:30:51 +02:00
2026-06-19 23:52:42 +02:00
2026-07-07 23:26:36 +02:00
2026-03-31 00:11:04 +02:00
2026-03-27 18:46:20 +01:00
2026-07-21 21:00:53 +02:00
2026-06-19 23:53:20 +02:00
2026-07-21 20:58:55 +02:00
2026-02-17 01:09:57 +01:00
2026-07-22 18:56:09 +02:00
2026-04-25 18:40:54 +02:00
2026-04-16 19:07:42 +02:00
2026-07-09 13:51:12 +02:00
2026-06-24 18:46:41 +02:00
2026-07-21 23:27:40 +02:00
2026-07-21 23:03:34 +02:00
2026-07-21 20:59:20 +02:00
2026-07-21 20:59:20 +02:00
2026-04-30 01:25:04 +02:00
2026-06-19 23:52:42 +02:00
2026-07-16 18:00:41 +02:00
2026-03-16 22:00:11 +01:00
2026-07-27 16:45:53 +12:00
2026-03-19 18:50:59 +01:00
2026-05-31 16:28:22 +02:00
2026-06-15 23:15:04 +02:00
2026-05-21 23:35:58 +02:00
2026-03-30 21:12:05 +02:00
2026-07-23 14:55:34 +02:00
2026-07-23 14:34:32 +02:00
2026-07-22 19:18:59 +02:00
2026-07-07 23:59:19 +02:00
2026-06-12 00:02:45 +02:00
2026-02-16 18:51:30 +01:00
2026-07-04 14:53:15 +02:00
2026-04-21 17:29:23 +02:00
2026-07-16 17:58:19 +02:00
2026-07-21 23:26:51 +02:00
2026-04-16 19:07:42 +02:00
2026-06-24 19:32:13 +02:00
2026-05-22 11:51:25 +02:00
2026-06-19 12:29:43 +02:00
2026-06-19 23:52:42 +02:00
2026-07-22 17:22:20 +02:00
2026-07-16 17:56:19 +02:00
2026-06-02 00:15:50 +02:00
2026-02-26 00:08:57 +01:00
2026-03-25 00:44:03 +01:00
2026-06-19 23:53:20 +02:00
2026-06-19 23:53:20 +02:00
2026-03-25 00:44:03 +01:00
2026-05-18 12:17:54 +02:00
2026-06-19 23:53:20 +02:00
2026-04-28 15:39:13 +02:00
2026-05-12 20:49:05 +02:00
2026-07-22 19:17:23 +02:00
2026-06-25 00:25:28 +02:00
2026-06-19 12:31:07 +02:00
2026-07-23 19:36:33 +02:00
2026-03-14 16:50:43 +01:00
2026-06-19 23:52:42 +02:00
2026-05-31 15:52:27 +02:00
2026-04-16 17:22:52 +02:00
2026-03-15 16:07:45 +01:00
2026-05-30 15:12:30 +02:00
2026-07-16 22:51:07 +02:00
2026-05-01 01:48:39 +02:00
2026-06-24 15:56:38 +02:00
2026-07-19 10:10:31 +02:00
2026-04-28 15:39:13 +02:00
2026-04-28 15:39:13 +02:00
2026-07-06 13:36:25 +02:00
2026-06-19 23:52:42 +02:00
2026-03-18 18:00:51 +01:00
2026-07-11 21:14:39 +02:00
2026-06-25 00:25:00 +02:00
2026-04-27 22:23:39 +02:00
2026-07-08 15:41:46 +02:00
2026-05-15 20:10:18 +02:00
2026-04-30 15:34:14 +02:00
2026-05-16 18:11:52 +02:00
2026-06-19 23:52:42 +02:00