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
James Hillyerd
dd14fb9989
ui: Much elm work, such wow
...
- ui: Fix favicon
- webui: Changes to support serving Elm UI
- Static files now served from `/` mount point.
- Old UI handlers moved to `/serve` mount point, some will still be
needed by the Elm UI; safe HTML and attachments for example.
- Update dev-start.sh for new UI, with tip on how to build it.
- ui: Detect browser host:port for websocket URL,
- webui: Remove unused mailbox handlers, rename routes
- Many routes not needed by Elm UI.
- `/serve/mailbox/*` becomes `/serve/m/*`.
- webui: Impl custom JSON message API for web UI,
- ui: Refactor Mailbox view functions,
- ui: Add body tabs for safe HTML and plain text,
- webui: Format plain text for new UI,
- ui: List attachments with view & download links,
2018-11-12 20:34:51 -08:00
James Hillyerd
60db73b813
test: Correctly shutdown integration test server
2018-11-03 18:53:24 -07:00
James Hillyerd
469132fe2f
rest: Add godoc example test for client.
...
- Update README and CHANGELOG
2018-10-31 19:45:15 -07:00
James Hillyerd
690b19a22c
rest: Rewrite client tests using httptest server.
2018-10-31 18:44:32 -07:00
James Hillyerd
30e3892cb0
webui, rest: Render UTF-8 addresses correctly, fixes #117
2018-10-22 18:29:03 -07:00
James Hillyerd
fcb4bc20e0
test: Add basic integration test suite, closes #119
2018-10-22 16:25:27 -07:00
James Hillyerd
8a3d2ff6a2
storage: Add test for id='latest', implment in mem store.
2018-10-22 15:43:17 -07:00
James Hillyerd
82e6a9fe5d
rest: Use a subrouter for /api/ paths
2018-10-22 10:48:08 -07:00
James Hillyerd
1a7e47b60a
rest: Make tests easier to read, less logic.
2018-10-22 09:37:15 -07:00
James Hillyerd
0640f9fa08
file: Use os.Readdirnames to eliminate Lstat calls for #122
...
- This a speed/syscall optimization, not memory.
2018-10-21 09:25:32 -07:00
James Hillyerd
f68f07d896
file: pool index readers to reduce allocs for #122
2018-10-20 20:39:14 -07:00
James Hillyerd
98745b3bb9
web: Optionally mount /debug/pprof for #120
...
- web: eliminate use of http.DefaultServeMux
2018-10-20 16:16:09 -07:00
James Hillyerd
0d7c94c531
smtp: add missing log message param
2018-10-20 11:13:39 -07:00
kingforaday
00dad88bde
Fixing an erroneous connection close introduced in #98 . ( #101 )
2018-05-20 09:51:40 -07:00
James Hillyerd
fdcb29a52b
smtp: rename readByteLine to readDataBlock for #98 .
...
Update change log.
2018-05-06 12:09:55 -07:00
kingforaday
894db04d70
Opportunistic TLS Support ( #98 )
...
* STARTTLS Support, disabled by default.
* Added documentation
2018-05-06 11:56:38 -07:00
James Hillyerd
bcede38453
webui: Friendly URL support for #73
2018-04-07 18:17:39 -07:00
James Hillyerd
7a783efd5d
config: Document MailboxNaming for #33
2018-04-07 16:20:00 -07:00
James Hillyerd
c6bb7d1d4d
Fix some null pointers during message retrieval
2018-04-07 14:40:54 -07:00
James Hillyerd
12f98868ba
smtp/policy: Store messages with full naming for #33
...
- Added some tests to make sure stores do not enforce their own naming.
- Improve recipient structured logging.
2018-04-07 13:06:56 -07:00
James Hillyerd
bf152adbef
Use enum for MailboxNaming for #33
2018-04-04 21:55:52 -07:00
James Hillyerd
ff2121fbb9
policy: Add support for MailboxNaming to ExtractMailbox for #33
2018-04-04 20:22:40 -07:00
James Hillyerd
939ff19991
policy: Tie mailbox extraction to Addressing for #33
2018-04-02 20:15:50 -07:00
James Hillyerd
c2e1d58b90
policy: Accept Root config instead of SMTP for #33
2018-04-02 19:43:05 -07:00
James Hillyerd
8c66a24513
config: lowercase log levels for #90
2018-04-01 20:50:18 -07:00
James Hillyerd
064549f576
policy: Implement store domain policy for #51
...
- Update docs, change log, status.html
2018-04-01 19:59:04 -07:00
James Hillyerd
a7d2b00a9c
policy: Implement recipient domain policy for #51
...
- INBUCKET_SMTP_DEFAULTACCEPT
- INBUCKET_SMTP_ACCEPTDOMAINS
- INBUCKET_SMTP_REJECTDOMAINS
2018-04-01 18:05:21 -07:00
James Hillyerd
c695a2690d
ui: Mark messages as seen after 1.5s for #58
...
Embolden subject font for unseen messages.
2018-04-01 15:16:48 -07:00
James Hillyerd
dc02092cf6
rest: Implement MarkSeen for #58
...
- message: Add MarkSeen to Manager, StoreManager.
- rest: Add PATCH for /mailbox/name/id.
- rest: Add MailboxMarkSeenV1 handler.
- rest: Add Seen to model.
- rest: Update handlers to set Seen.
- rest: Add doJSONBody func.
2018-04-01 13:30:43 -07:00
James Hillyerd
cc5cd7f9c3
storage: Add Seen flag, tests for #58
2018-04-01 13:30:43 -07:00
James Hillyerd
3fe4140733
pop3, smtp: embed Server struct into Session for #91
2018-03-31 17:09:30 -07:00
James Hillyerd
7b073562eb
pop3: Use config.POP3 directly in server #91
2018-03-31 17:01:02 -07:00
James Hillyerd
2c813081eb
smtp: Use config.SMTP directly in Server #91
2018-03-31 16:49:52 -07:00
James Hillyerd
5a28e9f9e7
config: Use log level name DEBUG instead of TRACE
...
Add log level parsing into openLog() for #90
2018-03-31 15:30:36 -07:00
James Hillyerd
e076f80416
smtp: Use zerolog hooks for warns/errors expvars #90
2018-03-31 14:06:58 -07:00
James Hillyerd
92f2da5025
server: -netdebug flag now controls tracing for #90
...
Network trace is sent to stdout, no longer part of normal debug
logging.
2018-03-31 13:37:42 -07:00
James Hillyerd
cbdb96a421
log: package deleted for #90
2018-03-31 12:25:54 -07:00
James Hillyerd
6601d156be
metric: new pkg refactored from log for #90
2018-03-31 12:16:54 -07:00
James Hillyerd
779b1e63af
smtp, pop3: Use zerolog for session logging #90
2018-03-27 21:52:28 -07:00
James Hillyerd
6f25a1320e
pop3, smtp: rename Session method receivers to s
2018-03-27 20:51:13 -07:00
James Hillyerd
e2ba10c8ca
Replace pkg/log with zerolog for normal logging #90
2018-03-27 20:26:06 -07:00
James Hillyerd
2d09e94f87
log: Fix another deadlock.
2018-03-25 16:08:34 -07:00
James Hillyerd
69a0d355f9
doc: Add doc/config.md to document config for #86
...
- Increase default max message size to 10MB.
2018-03-25 14:12:18 -07:00
James Hillyerd
04bb842549
config: Combine TemplateDir and PublicDir into UIDir
...
- Define static names for `templates` and `static`
2018-03-25 11:55:23 -07:00