Deuxfleurs patches for alps webmail (from https://sr.ht/~migadu/alps/)
Find a file
Simon Ser b24cc85fb1
Fix undefined ErrSessionExpired
Fixes: f07ab52632 ("Add docs")
2019-12-12 16:40:52 +01:00
cmd/koushin Add basic theme support 2019-12-04 18:30:01 +01:00
public Drop define in templates 2019-12-09 15:00:01 +01:00
.gitignore Add plugins/ to .gitignore 2019-12-10 17:41:35 +01:00
go.mod Add basic support for plugins 2019-12-09 16:05:40 +01:00
go.sum Add basic support for plugins 2019-12-09 16:05:40 +01:00
handlers.go Export Server.{Sessions,Plugins} 2019-12-11 13:03:31 +01:00
imap.go Use imap.BodyStructure.Filename and imap.Address.Address 2019-12-09 13:45:15 +01:00
LICENSE Correct license ownership 2019-12-03 07:48:25 -05:00
plugin.go Add docs 2019-12-11 15:24:39 +01:00
plugin_lua.go Allow plugins to provide their own templates 2019-12-11 15:08:31 +01:00
README.md Allow plugins to provide their own templates 2019-12-11 15:08:31 +01:00
server.go Fix undefined ErrSessionExpired 2019-12-12 16:40:52 +01:00
session.go Fix undefined ErrSessionExpired 2019-12-12 16:40:52 +01:00
smtp.go Add basic pagination to message list 2019-12-03 19:49:04 +01:00
strconv.go Add basic pagination to message list 2019-12-03 19:49:04 +01:00
template.go Add docs 2019-12-11 15:24:39 +01:00

koushin

GoDoc

Usage

go run ./cmd/koushin imaps://mail.example.org:993 smtps://mail.example.org:465

See -h for more information.

Themes

They should be put in public/themes/<name>/.

Templates in public/themes/<name>/*.html override default templates in public/*.html. Assets in public/themes/<name>/assets/* are served by the HTTP server at themes/<name>/assets/*.

Plugins

Lua plugins are supported. They can be dropped in plugins/<name>/main.lua.

API:

  • koushin.on_render(name, f): prior to rendering the template name, call f with the template data
  • koushin.set_filter(name, f): set a template function
  • koushin.set_route(method, path, f): register a new HTTP route, f will be called with the HTTP context

Plugins can provide their own templates in plugins/<name>/public/*.html.

Contributing

Send patches on the mailing list, report bugs on the issue tracker.

License

MIT