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
James Hillyerd
e22ed26633
storage: resolve linter errors ( #432 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-13 11:22:49 -08:00
James Hillyerd
7ae7d29741
rest: resolve linter errors ( #430 )
2023-11-12 19:32:43 -08:00
James Hillyerd
86d762ac88
stringutil: fix golint comment format error ( #429 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-12 13:21:27 -08:00
James Hillyerd
85e1c2c7d7
message: Verify empty mailbox list does not error ( #424 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-12 13:10:29 -08:00
Cyd
20ef8af047
Reject invalidomain with wildcards ( #412 )
...
Co-authored-by: Cyril DUPONT <cyd@9bis.com >
2023-11-12 09:42:20 -08:00
James Hillyerd
4a6b727cbc
lua: bind BeforeMessageStored function ( #418 )
...
* lua: Restore missing test log output
* lua: Use logger for test assert_async output
* lua: add InboundMessage bindings
* lua: bind BeforeMessageStored function
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-06 18:10:02 -08:00
James Hillyerd
01fb161df8
extension: BeforeMessageStored event to rewrite envelope ( #417 )
...
* extension: add InboundMessage type
* manager: fires BeforeMessageStored event
* manager: Reacts to BeforeMessageStored event response
* manager: Apply BeforeMessageStored response fields to message
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-06 14:53:38 -08:00
James Hillyerd
0cb62af074
message: Add test for recipient policy ( #416 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-03 12:34:58 -07:00
James Hillyerd
74a27875e9
message: migrate more delivery logic into manager.go ( #414 )
...
* message: migrate more delivery logic into manager.go
Signed-off-by: James Hillyerd <james@hillyerd.com >
* manager: tidy up a few things
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-11-01 13:54:27 -07:00
James Hillyerd
b655c0cc11
smtp: Use enmime.DecodeHeaders for better performance ( #413 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-10-30 17:10:09 -07:00
James Hillyerd
163a84f353
lua: fix incorrect function name ( #409 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-10-23 17:05:56 -07:00
James Hillyerd
d6c23df241
lua: Expose logger object ( #407 )
...
Allows Lua scripts to add entries to Inbuckets log
Closes #327
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-10-23 16:06:19 -07:00
Saulius Gurklys
b1acff08a3
UTC format timestamps in headers ( #404 ) ( #406 )
...
This change makes all header timestamps (e.g. "Received") to use
UTC time zone.
This way the length of such headers do not depend on local time zone
which if effect fixes #404 .
Signed-off-by: Saulius Gurklys <s4uliu5@gmail.com >
2023-10-21 16:22:49 -07:00