2d1fb7cf14
Chore: Allow unknown href link protocols in HTML view such as myapp:// ( #532 )
2025-07-01 08:01:09 +12:00
e29883fa1c
Chore: Refactor API Swagger definitions and remove unused structs
...
- Removed deprecated `thumbnailParams` struct from `thumbnails.go`.
- Updated `server_test.go` to use an anonymous struct for response unmarshalling.
- Enhanced `swagger.json` with detailed definitions for SendRequest and SendMessageResponse.
- Introduced new `swaggerParams.go` to define Swagger parameters for various API endpoints.
- Created `swaggerResponses.go` to define Swagger responses for API endpoints.
- Cleaned up unused JSON error message definitions and consolidated error responses.
- Improved documentation for Chaos triggers and web UI configuration responses.
2025-06-22 15:25:22 +12:00
f99d9ecf69
Chore: Refactor error handling and resource management across multiple files (golangci-lint)
...
- Updated error handling to use the error return value for resource closures in tests and functions, ensuring proper error reporting.
- Replaced direct calls to `Close()` with deferred functions that handle errors gracefully.
- Improved readability by using `strings.ReplaceAll` instead of `strings.Replace` for string manipulation.
- Enhanced network connection handling by adding default cases for unsupported network types.
- Updated HTTP response handling to use the appropriate status codes and error messages.
- Removed unused variables and commented-out code to clean up the codebase.
2025-06-22 15:25:21 +12:00
3fff79e29f
Chore: Apply linting to all JavaScript/Vue files with eslint & prettier
2025-06-20 23:26:06 +12:00
95e3ef6fca
Feature: Allow version checking to be disabled ( #524 )
2025-06-19 22:29:20 +12:00
4b5ce0afed
Feature: Store username with messages, auto-tag, and UI display ( #521 )
2025-06-18 16:41:04 +12:00
fed20de522
Feature: Add relay config to preserve (keep) original Message-IDs when relaying messages ( #515 )
2025-06-07 11:38:25 +12:00
82d7bdc971
Feature: Add Prometheus exporter ( #505 )
2025-06-06 14:33:49 +12:00
9bfdeb5f7b
Feature: Send API allow separate auth ( #504 )
...
Co-authored-by: Ben Edmunds <ben.edmunds@dotdigital.com >
2025-05-30 08:34:40 +12:00
c5b3edf87d
Fix: Ignore basic auth for OPTIONS requests to API when CORS is set
...
Web browsers do not send authorization headers for preflight requests.
2025-05-30 00:00:05 +12:00
b84b428434
Chore: Add note to swagger docs about API date formats
2025-05-25 09:56:53 +12:00
91409310d7
Chore: Lighten outline-secondary buttons in dark mode
2025-05-23 23:19:54 +12:00
74c6a0a434
Chore: Switch from unnecessary float64 to uint64 API values for App Information, message & attachment sizes
2025-05-20 16:51:02 +12:00
a1c2690c44
Use text-muted instead of text-secondary
2025-05-18 10:31:39 +12:00
bf5609a39b
Chore: Adjust UI margin for side navigation
2025-05-18 10:31:36 +12:00
4ed5011a8f
Chore: Tweak UI to improve contrast between read & unread messages
2025-05-18 10:31:28 +12:00
d0716b4995
Feature: Add option to hide the "Delete all" button in web UI ( #495 )
2025-05-17 12:28:35 +12:00
e1a6904eca
Chore: Upgrade to jhillyerd/enmime/v2
2025-05-17 00:34:29 +12:00
bc200c663f
Docs: Add Message ListUnsubscribe to swagger / API documentation ( #494 )
2025-05-13 19:27:27 +12:00
05375fed7a
Feature: Display unread count in app badge ( #485 )
...
* Display unread count in app badge
* Rate limit app badge updates
2025-04-30 17:34:46 +12:00
1b95f2fe39
Remove breaking swagger example
2025-04-06 19:08:31 +12:00
1400936760
Feature: Add ability to mark all search results as read ( #476 )
2025-04-06 18:11:37 +12:00
04289091bc
Chore: Improve error message for From header parsing failure ( #477 )
2025-04-05 15:51:29 +13:00
25671ba94f
Chore: Use Message-ID
header instead of Message-Id
when generating new IDs (RFC 5322)
2025-03-13 17:34:10 +13:00
39886cf57c
Fix: Prevent cropping bottom of label characters in web UI ( #457 )
2025-03-08 22:49:07 +13:00
9a1f3a6bb5
Chore: Replace PrismJS with highlight.js for HTML syntax highlighting
2025-03-05 17:14:06 +13:00
876d0eb5da
Feature: Add configuration to explicitly disable HTTP compression in web UI/API ( #448 )
2025-03-01 22:51:22 +13:00
aafd2a20d9
Chore: Minor speed & memory improvements when storing messages
2025-03-01 22:51:21 +13:00
703e981a8b
Allow limit=0 in URL parameters
2025-02-15 15:22:16 +13:00
7c366669c7
Fix: Update Swagger JSON to prevent overflow ( #442 )
2025-02-14 16:10:54 +13:00
9b2e90279d
Fix: Include font/woff content type to embedded controller
2025-02-13 22:16:46 +13:00
a3bd62482d
Fix: Replace TrimLeft with TrimPrefix for webroot path handling ( #441 )
2025-02-13 15:55:12 +13:00
8f1b7b6ec0
Chore: Enable browser cache for embedded web UI assets
2025-02-09 09:47:45 +13:00
61306e1ae4
Ignore render errors
2025-02-08 15:15:25 +13:00
dac9fcf735
Chore: Replace http.FileServer with custom controller to correctly encode gzipped error responses for embed.FS
...
Go v1.23 removes the Content-Encoding header from error responses, breaking pages such as 404's while using gzip compression middleware.
2025-02-08 15:15:07 +13:00
3528bc8da7
Fix: Add missing "latest" route to message attachment API endpoint ( #437 )
2025-02-08 08:35:37 +13:00
cb3300212f
Fix: Remove recursive HTML regeneration in embedded HTML view ( #434 )
2025-02-07 19:39:55 +13:00
45e67b5cac
Remove swagger example to allow validation
2025-02-05 15:36:07 +13:00
0c63c29769
Feature: Add optional query parameter for HTML message iframe embedding ( #434 )
2025-02-05 15:25:15 +13:00
f4d6dd5c39
Update test error logging formatting
2025-02-04 16:16:17 +13:00
496bf17db7
Chore: Add API CORS policy to HTML preview routes ( #434 )
2025-02-02 15:57:40 +13:00
86b5524217
Feature: Add optional UI setting to skip "Delete all" & "Mark all read" confirmation dialogs( #428 )
2025-02-02 15:31:18 +13:00
d7df895261
Feature: SMTP auto-forwarding option ( #414 )
2025-01-26 12:39:39 +13:00
e2fab49873
Update relay modal wording
2025-01-26 09:48:05 +13:00
a95bc3d29f
Feature: Option to override the From email address in SMTP relay configuration ( #414 )
2025-01-26 00:22:57 +13:00
4d86297169
Feature: Add Chaos functionality to test integration handling of SMTP error responses ( #402 , #110 , #144 & #268 )
...
Closes #405
2025-01-25 12:17:15 +13:00
b2ffb7476d
Order swagger sections by tag name
2025-01-25 00:00:23 +13:00
338f205234
Use consistent swagger tag casing
2025-01-24 11:55:51 +13:00
23fee8e4e1
Chore: Move smtpd & pop3 modules to internal
2024-12-14 17:51:02 +13:00
b2f4acb7ed
Rename smtpd files
2024-12-14 15:12:45 +13:00