Commit graph

80 commits

Author SHA1 Message Date
Simon Ser
48d6d5d227
Add session lock
HTTP requests can be processed in parallel, but we only have one IMAP
connection per session.

Closes: https://todo.sr.ht/~sircmpwn/koushin/12
2019-12-03 17:18:17 +01:00
Simon Ser
ec03c60dff
Import go-message charsets package
Enables support for non-UTF8 charsets.

Closes: https://todo.sr.ht/~sircmpwn/koushin/18
2019-12-03 17:03:57 +01:00
Simon Ser
36923a0dc2
Pre-fill composer with sender address 2019-12-03 16:46:03 +01:00
Simon Ser
89cebfd819
Add basic SMTP support 2019-12-03 16:27:49 +01:00
Simon Ser
702719c072
Save username/password in session
This is required for authenticating with the SMTP server when composing
a new message.
2019-12-03 15:44:24 +01:00
Simon Ser
ae79f99876
Parse SMTP URL from CLI 2019-12-03 15:21:59 +01:00
Simon Ser
1194b98e54
Fix EOF on message view 2019-12-03 15:06:29 +01:00
Simon Ser
2d3cce64da
Fix format string 2019-12-03 14:48:43 +01:00
Simon Ser
96646c8324
Add context to errors 2019-12-03 14:48:11 +01:00
Simon Ser
9f6b086f62
Add compose view 2019-12-03 14:34:15 +01:00
Drew DeVault
e62b48caa8 Correct license ownership 2019-12-03 07:48:25 -05:00
Simon Ser
4c52849539
Show last 50 messages in mailbox view 2019-12-03 13:25:35 +01:00
Simon Ser
f4808eb4c5
Add logout route 2019-12-03 13:24:46 +01:00
Simon Ser
23e3e85251
Set HTTP error handler 2019-12-03 13:17:51 +01:00
Simon Ser
be14524c33
Display & download any message part 2019-12-03 13:07:25 +01:00
Simon Ser
33b8679f1c
Extract string conversion functions 2019-12-03 11:54:43 +01:00
Simon Ser
ed50cef3cf
Linkify message part tree 2019-12-03 11:36:53 +01:00
Simon Ser
4cbe2fde9d
go fmt 2019-12-03 11:12:26 +01:00
Simon Ser
61f2f3e139
Print body structure tree 2019-12-03 11:11:49 +01:00
Simon Ser
80eeaeeb1e
Add missing public/message.html 2019-12-02 19:55:52 +01:00
Simon Ser
25c63d0530
Add basic message view 2019-12-02 19:53:09 +01:00
Simon Ser
fce17c9733
Linkify mailbox list 2019-12-02 18:29:06 +01:00
Simon Ser
39629b0740
Add basic message list 2019-12-02 18:21:45 +01:00
Simon Ser
e9d31b0940
Extract IMAP functions into separate file 2019-12-02 17:58:19 +01:00
Simon Ser
594bb2ec19
Add synchronization to connection pool 2019-12-02 17:40:53 +01:00
Simon Ser
85f8530fd3
Evict connection pool entry on logout 2019-12-02 17:36:43 +01:00
Simon Ser
c62703985e
readme: add IMAP URL to usage 2019-12-02 17:32:44 +01:00
Simon Ser
640bd49731
List mailboxes 2019-12-02 17:31:34 +01:00
Simon Ser
8b84d81f9b
Add initial login logic 2019-12-02 17:24:19 +01:00
Simon Ser
a1a067e6de
Add HTTP server boilerplate 2019-12-02 15:31:00 +01:00