A webmail client. Forked from https://git.sr.ht/~migadu/alps
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
Simon Ser f07ab52632
Add docs
4 år sedan
cmd/koushin Add basic theme support 4 år sedan
public Drop define in templates 4 år sedan
.gitignore Add plugins/ to .gitignore 4 år sedan
LICENSE Correct license ownership 4 år sedan
README.md Allow plugins to provide their own templates 4 år sedan
go.mod Add basic support for plugins 4 år sedan
go.sum Add basic support for plugins 4 år sedan
handlers.go Export Server.{Sessions,Plugins} 4 år sedan
imap.go Use imap.BodyStructure.Filename and imap.Address.Address 4 år sedan
plugin.go Add docs 4 år sedan
plugin_lua.go Allow plugins to provide their own templates 4 år sedan
server.go Add docs 4 år sedan
session.go Add docs 4 år sedan
smtp.go Add basic pagination to message list 4 år sedan
strconv.go Add basic pagination to message list 4 år sedan
template.go Add docs 4 år sedan

README.md

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