aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Extract Lua plugin logic into separate fileLibravatarLibravatar Simon Ser 2019-12-102-151/+158
|
* Allow plugins to add new routesLibravatarLibravatar Simon Ser 2019-12-103-0/+40
| | | | References: https://todo.sr.ht/~sircmpwn/koushin/6
* Reconnect to IMAP server when logged outLibravatarLibravatar Simon Ser 2019-12-093-20/+90
| | | | | | | | | | | | | | | The session manager has been upgraded to deal with reconnections. Each session has its own expiration timer. Each time a request is received, the expiration timer is reset. A session can be closed (this is used when the user wants to logout). When the IMAP connection is closed by the server, it's set to nil in the session. The next time an IMAP command needs to be issued, the connection is re-established. Closes: https://todo.sr.ht/~sircmpwn/koushin/30
* Make SessionManager create the IMAP clientLibravatarLibravatar Simon Ser 2019-12-094-23/+46
| | | | | This will allow SessionManager to re-connect when the IMAP server logs the user out.
* Rename ConnPool to SessionManagerLibravatarLibravatar Simon Ser 2019-12-093-20/+20
|
* readme: sync with new Lua APILibravatarLibravatar Simon Ser 2019-12-091-2/+5
|
* Add a Lua API to set template filtersLibravatarLibravatar Simon Ser 2019-12-093-10/+49
|
* Change Lua API to koushin.on_renderLibravatarLibravatar Simon Ser 2019-12-091-7/+27
|
* Make render data staticLibravatarLibravatar Simon Ser 2019-12-091-14/+39
| | | | | | | | This makes sure fields filled by vanilla koushin keep the right type. A new Extra field allows plugins to attach their own data. This also makes it easier to write Go plugins, which would have trouble working with interface{}.
* Add basic support for pluginsLibravatarLibravatar Simon Ser 2019-12-096-1/+115
|
* Drop define in templatesLibravatarLibravatar Simon Ser 2019-12-096-12/+8
| | | | Just use the full filename instead, this is simpler and more explicit.
* Use imap.BodyStructure.Filename and imap.Address.AddressLibravatarLibravatar Simon Ser 2019-12-094-6/+5
| | | | | The former fixes encoding issues in filenames. The latter is just for brevity.
* Extract HTTP handlers in separate fileLibravatarLibravatar Simon Ser 2019-12-042-263/+277
|
* Add .gitignoreLibravatarLibravatar Simon Ser 2019-12-041-0/+2
|
* Add basic theme supportLibravatarLibravatar Simon Ser 2019-12-045-25/+75
| | | | References: https://todo.sr.ht/~sircmpwn/koushin/1
* Make message view's Back link set the mailbox pageLibravatarLibravatar Simon Ser 2019-12-033-6/+9
| | | | | | | This allows to go back and forth between the mailbox view and the message view. References: https://todo.sr.ht/~sircmpwn/koushin/22
* Add separator between Prev and Next linksLibravatarLibravatar Simon Ser 2019-12-031-0/+1
|
* Add basic pagination to message listLibravatarLibravatar Simon Ser 2019-12-037-20/+60
| | | | References: https://todo.sr.ht/~sircmpwn/koushin/22
* Fix missing OutgoingMessage.InReplyTo assignmentLibravatarLibravatar Simon Ser 2019-12-031-9/+5
|
* Add basic support for multiple recipientsLibravatarLibravatar Simon Ser 2019-12-032-3/+10
|
* Add support for replying to a messageLibravatarLibravatar Simon Ser 2019-12-035-12/+103
|
* Fix mailbox view when emptyLibravatarLibravatar Simon Ser 2019-12-032-9/+15
| | | | | | This fixes the second part of #14. References: https://todo.sr.ht/~sircmpwn/koushin/14
* Add empty CSS stylesheetLibravatarLibravatar Simon Ser 2019-12-033-1/+3
| | | | References: https://todo.sr.ht/~sircmpwn/koushin/19
* Set imap.CharsetReaderLibravatarLibravatar Simon Ser 2019-12-031-1/+5
| | | | | This adds support for additional charsets when parsing e.g. subject lines.
* Escape mailbox names in URLsLibravatarLibravatar Simon Ser 2019-12-034-5/+17
| | | | Closes: https://todo.sr.ht/~sircmpwn/koushin/14
* Add session lockLibravatarLibravatar Simon Ser 2019-12-033-16/+45
| | | | | | | HTTP requests can be processed in parallel, but we only have one IMAP connection per session. Closes: https://todo.sr.ht/~sircmpwn/koushin/12
* Import go-message charsets packageLibravatarLibravatar Simon Ser 2019-12-031-0/+1
| | | | | | Enables support for non-UTF8 charsets. Closes: https://todo.sr.ht/~sircmpwn/koushin/18
* Pre-fill composer with sender addressLibravatarLibravatar Simon Ser 2019-12-033-22/+30
|
* Add basic SMTP supportLibravatarLibravatar Simon Ser 2019-12-035-7/+196
|
* Save username/password in sessionLibravatarLibravatar Simon Ser 2019-12-032-13/+26
| | | | | This is required for authenticating with the SMTP server when composing a new message.
* Parse SMTP URL from CLILibravatarLibravatar Simon Ser 2019-12-033-11/+57
|
* Fix EOF on message viewLibravatarLibravatar Simon Ser 2019-12-031-2/+10
|
* Fix format stringLibravatarLibravatar Simon Ser 2019-12-031-1/+1
|
* Add context to errorsLibravatarLibravatar Simon Ser 2019-12-032-14/+14
|
* Add compose viewLibravatarLibravatar Simon Ser 2019-12-034-2/+38
|
* Correct license ownershipLibravatarLibravatar Drew DeVault 2019-12-031-1/+1
|
* Show last 50 messages in mailbox viewLibravatarLibravatar Simon Ser 2019-12-031-1/+1
|
* Add logout routeLibravatarLibravatar Simon Ser 2019-12-032-0/+11
|
* Set HTTP error handlerLibravatarLibravatar Simon Ser 2019-12-031-0/+11
|
* Display & download any message partLibravatarLibravatar Simon Ser 2019-12-035-55/+142
|
* Extract string conversion functionsLibravatarLibravatar Simon Ser 2019-12-033-32/+37
|
* Linkify message part treeLibravatarLibravatar Simon Ser 2019-12-032-8/+52
|
* go fmtLibravatarLibravatar Simon Ser 2019-12-033-14/+14
|
* Print body structure treeLibravatarLibravatar Simon Ser 2019-12-031-1/+16
|
* Add missing public/message.htmlLibravatarLibravatar Simon Ser 2019-12-021-0/+11
|
* Add basic message viewLibravatarLibravatar Simon Ser 2019-12-025-9/+211
|
* Linkify mailbox listLibravatarLibravatar Simon Ser 2019-12-022-4/+1
|
* Add basic message listLibravatarLibravatar Simon Ser 2019-12-023-3/+64
|
* Extract IMAP functions into separate fileLibravatarLibravatar Simon Ser 2019-12-022-37/+51
|
* Add synchronization to connection poolLibravatarLibravatar Simon Ser 2019-12-021-1/+11
|