James Hillyerd
cf92969719
chore: Update golangci lint to 2.0.x ( #572 )
...
* Update to golangci lint 2.0.x
Signed-off-by: James Hillyerd <james@hillyerd.com >
* Fix new lint warnings
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2025-05-08 21:23:42 -07:00
James Hillyerd
9a2b0f934a
chore: Update Go deps ( #571 )
...
* chore: Update Go deps
Signed-off-by: James Hillyerd <james@hillyerd.com >
* Fix lint warnings for loopvars
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2025-05-08 20:53:25 -07:00
Steve Atkins
440fddfe46
Add the 821.From / return-path of an email to the stored message ( #560 )
...
as a Return-Path: header. This is visible in the source view and as a
header via the REST API.
Signed-off-by: Steve Atkins <steve@wordtothewise.com >
2025-03-18 08:28:31 -07:00
Steve Atkins
9904399d24
Accept and handle emails sent with an empty 821.From / return-path as… ( #561 )
...
* Accept and handle emails sent with an empty 821.From / return-path as it would any other email.
2025-03-17 08:54:30 -07:00
James Hillyerd
5902189187
fix: AfterMessageStored message.size ( #550 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-20 12:32:51 -07:00
James Hillyerd
15d1970dbe
feat: Add RemoteAddr to SMTPSession ( #548 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-20 11:49:55 -07:00
James Hillyerd
78d4c4f4e7
chore: Update BeforeMailAccepted ( #547 )
...
* chore: rename BeforeMailAccepted to BeforeMailFromAccepted
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: update BeforeMailAccepted to use SMTPSession
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-19 14:06:51 -07:00
James Hillyerd
9f90a59bef
feat: Add SMTPSession and BeforeRcptToAccepted event ( #541 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-13 15:29:50 -07:00
James Hillyerd
3110183a17
feat: Add SMTPResponse type for extensions ( #539 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-05 18:16:49 -07:00
James Hillyerd
8097b3cc8a
fix: ls.Get calls use top-relative index ( #537 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-10-04 21:26:31 -07:00
James Hillyerd
5284171dc5
chore: create Lua test helper ( #532 )
...
* Create lua test helper
Signed-off-by: James Hillyerd <james@hillyerd.com >
* Assert labels
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-09-29 11:46:01 -07:00
James Hillyerd
b1b7e4b07c
chore: use enmime 2.0 ( #531 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-09-28 12:03:01 -07:00
James Hillyerd
95ec463f26
chore: fix linter warnings ( #530 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-09-28 11:49:32 -07:00
James Hillyerd
543c2afda5
chore: refactor proto tests to use ReadDotLines ( #520 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-06-13 17:30:44 -07:00
James Hillyerd
b16764a65d
fix(pop3): Prevent STLS cmd triggered crashes ( #516 )
...
* fix(pop3): Prevent STLS cmd triggered crashes
Signed-off-by: James Hillyerd <james@hillyerd.com >
* err lint fix
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-06-13 12:38:07 -07:00
James Hillyerd
2b174c8b0b
chore: resolve error & string related lint warnings ( #507 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-20 12:47:27 -08:00
James Hillyerd
5729a212ce
chore: two small lint fixes ( #506 )
...
* chore: faster hash to string conv
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: require NoError in integration test setup
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-20 12:30:04 -08:00
James Hillyerd
ed4a83a2bd
chore: migrate integration to testify/suite ( #505 )
...
* fix: future naming collision, suite -> storeSuite
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: migrate integration to testify/suite
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-19 18:45:55 -08:00
James Hillyerd
c59e793775
chore: refactor smtp/handler if-else chain ( #504 )
...
* chore: convert smtp/handler if-else chain to switch-case
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: extract long case into parseMailCmd func
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: remove extraneous braces in cases
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-19 17:30:37 -08:00
James Hillyerd
d62a0fede9
fix: prevent smtp/handler test from freezing on panic ( #503 )
...
* chore: colocate SMTP session WaitGroup incr/decr
Signed-off-by: James Hillyerd <james@hillyerd.com >
* fix: smtp tests that hang on panic/t.Fatal
Signed-off-by: James Hillyerd <james@hillyerd.com >
* chore: reorder smtp/handler test helpers
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-19 16:46:33 -08:00
James Hillyerd
25c6f58535
chore: fix testutils linter warnings ( #502 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-19 12:02:06 -08:00
James Hillyerd
0a51641a30
feature: Context support for REST client ( #496 )
...
* rest/client: add WithContext methods
Signed-off-by: James Hillyerd <james@hillyerd.com >
* cmd/client: pass context
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-17 19:25:01 -08:00
James Hillyerd
73203c6bcd
fstore: remove redundant test helper ( #495 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-17 18:18:30 -08:00
James Hillyerd
6066be831c
chore: refactor playSession etc to use t.Fatal ( #494 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 17:04:35 -08:00
James Hillyerd
33784cbb94
chore: more small lint/perf fixes ( #493 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 16:53:50 -08:00
James Hillyerd
f76b93a8f2
storage_suite: refactor to use common struct param ( #492 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 16:11:07 -08:00
James Hillyerd
0361e971e0
chore: many small lint/perf fixes ( #491 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 14:27:04 -08:00
James Hillyerd
def3e88651
luahost: use sentinel ErrNoScript ( #490 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 14:16:17 -08:00
James Hillyerd
8adae023dc
chore: rework client example to omit log.Fatal, breaks defer ( #489 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 19:13:03 -08:00
James Hillyerd
fc8ea530bb
chore: fix many unit test style warnings ( #488 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 18:52:50 -08:00
James Hillyerd
ea585c4851
chore: fix more capitalization style warnings ( #487 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 18:31:43 -08:00
James Hillyerd
baa2dbd3a1
chore: fix many cosmetic linter warnings ( #486 )
...
* fix whitespace warnings
Signed-off-by: James Hillyerd <james@hillyerd.com >
* fix a number of typos
Signed-off-by: James Hillyerd <james@hillyerd.com >
* fix many cosmetic linter warnings
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 18:02:26 -08:00
corey-aloia
3112deb3e6
[Rest Client] changing to enable relative urls ( #477 )
...
* changing to enable relative urls
Signed-off-by: Corey Aloia <corey.aloia@sap.com >
2024-02-09 08:53:44 -08:00
James Hillyerd
6a389c78cc
rest/client: fix comment lint error ( #465 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-04 19:50:02 -08:00
James Hillyerd
6d66012a0c
Rename client.WithOptTransport ( #464 )
...
* Update apiv1_client_opts.go
* Update apiv1_client_test.go
2024-01-25 10:06:35 -08:00
corey-aloia
b5ccd3da51
[Rest Client] Use options for client.New ( #463 )
...
* adding in clientopts to the rest client
Signed-off-by: Corey Aloia <corey.aloia@sap.com >
2024-01-25 09:46:31 -08:00
James Hillyerd
5a5864fde6
storage test: fix failures on windows ( #457 )
...
* storage test: close source reader
* fstore: properly close directory handle
2023-12-12 19:31:14 -08:00
James Hillyerd
e6e4e0987d
storage: $ can be used in place of : in filestore path ( #449 )
2023-11-30 19:45:26 -08:00
James Hillyerd
32b83e6345
test: preserve SYSTEMROOT on windows ( #451 )
2023-11-29 16:36:40 -08:00
James Hillyerd
043551343c
storage: fail startup if unable to create file store dir ( #448 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-28 15:09:17 -08:00
James Hillyerd
c1d5d49126
event: Use pointers for InboundMessage addresses ( #447 )
...
* event: Use pointers for InboundMessage addresses
To ease conversions to/from MessageMetadata
Signed-off-by: James Hillyerd <james@hillyerd.com >
* message: test StoreManager.MailboxForAddress()
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-22 17:28:33 -08:00
James Hillyerd
d2121a52a9
message: Prefer To header for BeforeMessageStored event ( #446 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-22 16:58:14 -08:00
James Hillyerd
3e94aacc20
message: improve manager test coverage ( #438 )
2023-11-21 15:40:14 -08:00
James Hillyerd
41889ee83a
test: impl StoreStub.PurgeMessages ( #444 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-21 14:56:21 -08:00
James Hillyerd
1b5a783dbd
test: impl StoreStub.MarkSeen ( #443 )
...
* test: impl StoreStub.MarkSeen
Signed-off-by: James Hillyerd <james@hillyerd.com >
* continue to Message interface in StoreStub
Signed-off-by: James Hillyerd <james@hillyerd.com >
* test errors
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-18 11:21:09 -08:00
James Hillyerd
208d20582e
test: Add tests for StoreStub ( #440 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-17 16:34:49 -08:00
James Hillyerd
1088ccb8d1
luahost: add type check TODOs ( #436 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-13 13:26:41 -08:00
James Hillyerd
e56638cbac
various: resolve linter errors in a number of pkgs ( #434 )
...
- webui: resolve linter errors
- msghub: resolve linter errors
- policy: resolve linter errors
- extension: resolve linter errors
2023-11-13 12:21:19 -08:00
James Hillyerd
843cb8a015
lifecycle: Don't create multiple notify channels ( #435 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-13 11:54:14 -08:00
James Hillyerd
535438342e
server: resolve linter errors ( #433 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-13 11:34:05 -08:00