James Hillyerd
eaae1a1e44
GHA: Use node16 actions, Go 1.20 ( #340 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-15 21:01:24 -08:00
James Hillyerd
a55da8b7d1
file & mem stores should emit delete events on purge ( #338 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-14 19:51:42 -08:00
James Hillyerd
561ed93451
feat: Monitor tab dynamically updates when messages are deleted ( #337 )
...
* WIP: msghub handles deletes, UI does not yet display them
Signed-off-by: James Hillyerd <james@hillyerd.com >
* socket and UI support message deletes
Signed-off-by: James Hillyerd <james@hillyerd.com >
* use Delete naming for consistency
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-14 19:02:06 -08:00
James Hillyerd
ef12d02b83
msghub: Recover and log panics ( #336 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-14 14:00:13 -08:00
James Hillyerd
de617b6a73
delete event: test lua func ( #335 )
...
* lua: tidy test helpers
Signed-off-by: James Hillyerd <james@hillyerd.com >
* lua: test after_message_deleted func
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-14 10:56:43 -08:00
James Hillyerd
69b6225554
storage: emit AfterMessageDeleted events ( #334 )
...
* Ignore test lua script
Signed-off-by: James Hillyerd <james@hillyerd.com >
* Wire ExtHost into storage system
imports
Signed-off-by: James Hillyerd <james@hillyerd.com >
* storage/file: emit deleted events
Signed-off-by: James Hillyerd <james@hillyerd.com >
* storage/mem: emit deleted events
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-13 17:11:04 -08:00
James Hillyerd
5adef42df7
Replace message.Metadata usage with event.MessageMetadata ( #333 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-13 13:52:28 -08:00
James Hillyerd
d11ae3710c
config: make note of domain addressing ( #331 )
2023-02-12 16:17:41 -08:00
James Hillyerd
5d18d79539
lua: Preload json module ( #330 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-10 11:44:36 -08:00
James Hillyerd
b38b2e9760
lua: Preload gluahttp module ( #328 )
2023-02-09 19:04:33 -08:00
James Hillyerd
75b7c69b5c
lua: Add getter/setter tests for bound objects ( #326 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-08 17:20:57 -08:00
James Hillyerd
239426692e
lua: Use table syntax for user object bindings ( #325 )
...
* lua: update bind_message to use table syntax
* lua: update bind_address to use table syntax
2023-02-08 13:38:00 -08:00
James Hillyerd
17b054b5a1
add: direnv config ( #324 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-08 10:32:19 -08:00
James Hillyerd
7f91c3e9cb
lua: Bind after_message_stored and before_mail_accepted ( #322 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-24 16:37:26 -08:00
James Hillyerd
55addbb556
lua: Init with config and pool ( #321 )
...
* lua: Intial impl with config and pool
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-24 12:16:58 -08:00
James Hillyerd
8fd5cdfc86
extension: Add BeforeMailAccepted event ( #320 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-22 18:01:56 -08:00
James Hillyerd
e74efbaa77
extension: Make AfterMessageStored async ( #319 )
2023-01-22 16:26:52 -08:00
James Hillyerd
b383fbf9ab
manager: Test that MessageStored event is emitted ( #318 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-17 19:26:44 -08:00
James Hillyerd
c9912bc2bb
Fix incorrect test capitalization ( #317 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-17 19:08:59 -08:00
James Hillyerd
f0d457b8f5
extension: Add MessageStored event ( #316 )
...
* Replace existing direct StoreManager->msghub communication with this
event
* For #280 #309 #312 #310
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-16 21:30:47 -08:00
James Hillyerd
3bf4b5c39b
extension: Implement an EventBroker ( #315 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-16 20:34:16 -08:00
James Hillyerd
37806f222d
shell.nix: add a quick-test script, qt ( #314 )
2023-01-16 20:15:40 -08:00
James Hillyerd
f5899c293c
etc: scripts use /usr/bin/env bash ( #313 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-16 16:10:27 -08:00
James Hillyerd
cd9c3d61ee
shell.nix: Add gopls as build dep ( #308 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-16 14:29:38 -08:00
James Hillyerd
37d314fd2e
Makefile: fix, wasn't testing SRC timestamps ( #307 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-15 16:41:11 -08:00
James Hillyerd
28b0557865
Update go.mod to 1.18 syntax ( #306 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-13 09:09:28 -08:00
James Hillyerd
997cb55847
Update go deps ( #304 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-01-12 20:28:24 -08:00
James Hillyerd
61454a0c9c
Build with Go 1.19 ( #305 )
...
Also adds `:edge` tag to dev docker-run.sh script
2023-01-12 20:19:40 -08:00
dependabot[bot]
e875a4c382
build(deps): bump json5 from 2.2.1 to 2.2.3 in /ui ( #302 )
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-08 10:09:25 -08:00
James Hillyerd
bc6548b6f3
Update CHANGELOG for 3.0.4
2022-10-02 15:35:59 -07:00
James Hillyerd
911a6c8d78
bump nix go to 1.18
2022-10-02 13:14:01 -07:00
James Hillyerd
547a12ffca
smtp: Adjust fromRegex to handle AUTH=<> in middle of args ( #291 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2022-09-03 14:03:55 -07:00
James Hillyerd
c8d22ac802
smtp: Break up handler tests ( #290 )
...
* Do drain logging from main to reduce test output
* Break up some of the larger handler test funcs
* Introduce sub-tests
2022-08-25 14:19:57 -07:00
James Hillyerd
9dbffa88de
Refactor SMTP handler_test log collection ( #289 )
...
* smtp: allow logger to be passed into startSession
* smtp: remove logbuf and teardown from handler_test
* smtp: handler_test log output to testing.T
2022-08-24 21:42:53 -07:00
James Hillyerd
eae4926b23
Dependency injection improvements ( #288 )
...
Refactor server life-cycle into it's own file, make service startup and monitoring more consistent and testable.
* Extract services creation in preparation for DI
* pop3: rename New to NewServer
* lifecycle: Add fatal error Notify()
* web: Introduce Server struct w/ Notify()
* Extract Start in lifecycle
* Add Start() to Hub
* RetentionScanner startup consistent with other svcs
* Remove global shutdown channel
* Implement a readiness notification system
2022-08-13 13:22:34 -07:00
Abirdcfly
29d1ed1e7f
delete minor unreachable code caused by t.Fatal ( #287 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2022-08-10 08:59:09 -07:00
James Hillyerd
1f1a8b4192
Handle IP address domains ( #285 )
...
* Add basic TestRecipientAddress tests
* Handle forward-path route spec
* Validate IP addr "domains"
* Forward-path test cases
* Add integration test
* Add IPv4 recip swaks test
* Special case domain mailbox extraction
* add IPv6 swaks test
* Formatting
Signed-off-by: James Hillyerd <james@hillyerd.com >
* Update changelog
2022-08-07 20:13:58 -07:00
James Hillyerd
344c3ffb21
Update CHANGELOG for 3.0.3 ( #286 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
v3.0.3
2022-08-07 19:39:48 -07:00
James Hillyerd
87018ed42d
Allow AUTH=<> FROM parameter ( #284 )
...
* Use backtick on regex
* Accept AUTH=<> FROM parameter
* Update changelog
2022-07-30 10:57:29 -07:00
James Hillyerd
1650a5b375
Merge pull request #281 from inbucket/dependabot/npm_and_yarn/ui/terser-5.14.2
...
build(deps): bump terser from 5.12.1 to 5.14.2 in /ui
2022-07-30 09:41:41 -07:00
dependabot[bot]
3f7adbfb22
build(deps): bump terser from 5.12.1 to 5.14.2 in /ui
...
Bumps [terser](https://github.com/terser/terser ) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases )
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/terser/terser/commits )
---
updated-dependencies:
- dependency-name: terser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-21 02:45:45 +00:00
James Hillyerd
03cc31fb70
Build with Go 1.18
2022-07-04 16:23:06 -07:00
James Hillyerd
a10a6244c9
Merge pull request #279 from inbucket/v302rel
...
Release 3.0.2
v3.0.2
2022-07-04 12:02:17 -07:00
James Hillyerd
9185423022
Update CHANGELOG
2022-07-04 11:03:48 -07:00
James Hillyerd
9aaca449f8
Fix non-root basepaths, closes #273
2022-05-22 21:47:52 -07:00
James Hillyerd
f39395bd7f
Fix error in swaks tests server default env var
2022-05-22 21:47:52 -07:00
James Hillyerd
2c68128d5d
swaks-tests: allow server address override
2022-05-08 13:13:25 -07:00
James Hillyerd
06d4120682
Migrate to Yarn & Parcel ( #260 )
...
* Switch from npm to yarn
* Add minimum viable parcel dev server config
* Remove webpack configs
* Update docker build, build w/ yarn on node 16.x
2022-04-23 13:35:54 -07:00
James Hillyerd
58bcd4f557
Docker frontend build runs as amd64 ( #270 )
2022-04-23 10:33:46 -07:00
kaustubh105
e91e8d5aee
Add support for ARMv7 and ARM64 docker images ( #267 )
...
* Build armv7 and arm64 docker containers
* Add QEMU step to build for multi arch
* Pin qemu action version
2022-02-25 08:56:18 -08:00