Commit graph

68 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
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
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
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
4cbe2fde9d
go fmt 2019-12-03 11:12:26 +01:00
Simon Ser
25c63d0530
Add basic message view 2019-12-02 19:53:09 +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
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