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
def3e88651
luahost: use sentinel ErrNoScript ( #490 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 14:16:17 -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
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
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
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
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
James Hillyerd
9836c0ffbb
go: update mod and imports to correctly reflect major version ( #388 )
2023-09-09 12:36:21 -07:00
James Hillyerd
e84d21cb28
events: Remove unnecessary go calls ( #352 )
2023-02-28 10:25:16 -08:00
James Hillyerd
5a886813c3
Provide inbucket object in Lua ( #351 )
...
* fix delve fortify thingy
* Expose inbucket.after.message_stored in lua
* Expose inbucket.after.message_deleted in lua
* Expose inbucket.before.mail_accepted in lua
2023-02-27 20:22:10 -08:00
James Hillyerd
36095a2cdf
extension: split out an async specific broker for "after" events ( #346 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2023-02-16 16:17:06 -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
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
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