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
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
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
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
2016142747
smtp: allow empty user & pass during AUTH LOGIN ( #225 )
2021-07-31 10:38:48 -07:00
James Hillyerd
4f9f961cac
smtp: fix formatting ( #224 )
2021-07-31 10:32:08 -07:00
James Hillyerd
985f2702f2
Fix command line length bug ( #221 )
...
* handler: Don't fail on 8 character command lines
Fixes #214
* handler: Test that STARTTLS is parsed correctly.
2021-07-11 12:00:28 -07:00
James Hillyerd
81edf40996
store_test: Fix t.Fatal non-test goroutine lint error
2021-05-06 09:58:30 -07:00
Timur Makarchuk
c096f018d6
Add support for AUTH, closes #62
...
* Add PLAIN and LOGIN auth support
2021-04-10 13:58:18 -07:00
Stuart Skelton
3c5960aba0
Avoid potential click jacking ( #190 )
2020-11-19 08:16:01 -08:00
James Hillyerd
5a0c4778cb
Set base path in index.html ( #172 )
...
- Create a new index-dev.html for webpack live server
- Update Go+index.html to set <base href>
- Fixes #171
2020-08-29 19:06:21 -07:00
James Hillyerd
289b38f016
Add configurable base path for reverse proxy use ( #169 )
...
* ui: Refactor routing functions into Router record
* ui: Store base URI in AppConfig
* ui: Use basePath in Router functions
* backend: Add Web.BasePath config option and update routes
* Tweaks to get SPA to bootstrap basePath configured
* ui: basePath support for apis/serve
* ui: basePath support for message monitor
* web: Redirect requests to / when basePath configured
* doc: add basepath to config.md
* Closes #107
2020-08-09 15:53:15 -07:00
James Hillyerd
316a732e7f
cmd, pkg: add line breaks to several go source files
2020-07-26 11:59:27 -07:00
Sascha Andres
046de42774
allow empty envelope ( #166 )
...
* feat: allow empty MAIL FROM
Closes #164
2020-07-25 10:23:31 -07:00
James Hillyerd
3a1c757d04
smtp: Handle late EHLO, fixes #141
2019-08-17 15:46:28 -07:00
James Hillyerd
a73ffeabd3
rest: Update attachments to 3.0 URL scheme, closes #138
2019-08-17 12:07:20 -07:00
Matt John
c78656b400
Add ability to name mailboxes after domain of email ( #140 )
...
* Add ability to name mailboxes after domain of email
* Update argument documentation for 'domain' filtering
* Update address policy to verify domain against RFC and return error on invalid domain
2019-08-10 14:13:21 -07:00
James Hillyerd
e4c48a0705
go code: rename to github.com/inbucket/inbucket
2019-02-24 09:43:10 -08:00
James Hillyerd
07e75495e8
build: Update goreleaser for Elm UI
2019-01-06 13:57:20 -08:00
James Hillyerd
dbdc60a0fb
message, webui: Fix QP address rendering, closes #117
2019-01-01 10:04:37 -08:00
James Hillyerd
c0a878db47
config: Remove mailbox prompt, no longer used
2019-01-01 09:36:39 -08:00
James Hillyerd
c57260349b
web + ui: Pass init cookie from server to client
2018-12-31 15:10:05 -08:00
James Hillyerd
362ece171a
webui: Add MIME errors to mailbox message
2018-12-28 10:28:36 -08:00
James Hillyerd
caec5e7c17
ui: Add request context for error flash
...
- webui: Update mailbox, attachment paths
2018-12-15 20:16:20 -08:00
James Hillyerd
77ea66e0e6
web: Remove unused helpers
2018-12-15 09:51:37 -08:00
James Hillyerd
89886843bd
web: Remove template related code
2018-12-15 09:20:57 -08:00
James Hillyerd
4894244d5c
webui: Remove sessions & securecookie
2018-12-15 08:35:00 -08:00
James Hillyerd
d627da2038
webui: Remove unused routes/handlers
2018-12-15 08:35:00 -08:00
James Hillyerd
fc5cc4d864
ui: Display server uptime, scan completion time
2018-12-10 21:47:34 -08:00
James Hillyerd
9b3049562d
ui: Display server configuration on status page
2018-12-09 16:23:15 -08:00
James Hillyerd
cf265dbe2c
rest: Add posix-millis field for easier date parsing
2018-11-17 20:57:52 -08:00
James Hillyerd
e70900dd1a
web: Implement SPA compatible routing
2018-11-17 14:38:04 -08:00
James Hillyerd
2bbcef072a
ui: Add greeting.html to Home
2018-11-12 20:38:00 -08:00
James Hillyerd
523c04a522
Logging improvements, handler extraction.
...
- rest: improve error logging.
- web: extract handlers/middleware into their own file.
- web: log all requests, not just ones hitting our handlers.
- test: improve integration test logging format.
2018-11-12 20:38:00 -08:00
James Hillyerd
7a5459ce08
test: Fix integation test server startup
2018-11-12 20:38:00 -08:00