A webmail client. Forked from https://git.sr.ht/~migadu/alps
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
Simon Ser 835e9e5033
go fmt
vor 4 Jahren
cmd/koushin Add basic theme support vor 4 Jahren
public Drop define in templates vor 4 Jahren
.gitignore Add .gitignore vor 4 Jahren
LICENSE Correct license ownership vor 4 Jahren
README.md readme: add link to mailing list & issue tracker vor 4 Jahren
go.mod Add basic support for plugins vor 4 Jahren
go.sum Add basic support for plugins vor 4 Jahren
handlers.go go fmt vor 4 Jahren
imap.go Use imap.BodyStructure.Filename and imap.Address.Address vor 4 Jahren
plugin.go Rename Plugin.Render to Plugin.Inject vor 4 Jahren
plugin_lua.go go fmt vor 4 Jahren
server.go Allow plugins to add new routes vor 4 Jahren
session.go Reconnect to IMAP server when logged out vor 4 Jahren
smtp.go Add basic pagination to message list vor 4 Jahren
strconv.go Add basic pagination to message list vor 4 Jahren
template.go go fmt vor 4 Jahren

README.md

koushin

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/*.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

Contributing

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

License

MIT