Commit graph

66 commits

Author SHA1 Message Date
Drew DeVault
26e6e66b04 attachments.js: remove unused variables 2020-10-29 15:30:55 -04:00
Drew DeVault
a393429f01 Implement JavaScript UI for attachments
This one is a bit of a doozy. A summary of the changes:

- Session has grown storage for attachments which have been uploaded but
  not yet sent.
- The list of attachments on a message is refcounted so that we can
  clean up the temporary files only after it's done with - i.e. after
  copying to Sent and after all of the SMTP attempts are done.
- Abandoned attachments are cleared out on process shutdown.

Future work:
- Add a limit to the maximum number of pending attachments the user can
  have in the session.
- Periodically clean out abandoned attachments?
2020-10-29 15:18:36 -04:00
Drew DeVault
4904207269 Replace parts tree with attachment list 2020-10-23 16:08:40 -04:00
Drew DeVault
09d19169da alps theme: consoldate tab active/hover styles
Fixes some visual weirdness in an edge case
2020-10-23 15:35:20 -04:00
Drew DeVault
3db443c1df message.html: add tab to view raw email 2020-10-23 15:32:59 -04:00
Drew DeVault
bd91b3eacf Fix errors arising from short-circuit assumption
The and/or operators in text/template don't short-circuit, so this
seemingly benign change caused a breakage when not fully tested.
2020-10-23 15:19:16 -04:00
Drew DeVault
64b16f4a50 message.html: add tabs to select html/plaintext 2020-10-23 15:15:46 -04:00
Drew DeVault
8764397b7d alps theme: fix borders on each unread row
This addresses an oversight from when the fifth column (flags) was
introduced.
2020-10-23 12:03:23 -04:00
Drew DeVault
2d73c882df Link sender name to search for their email address 2020-10-23 11:47:30 -04:00
Drew DeVault
0769190180 message list: color \Flagged status yellow 2020-10-22 13:31:41 -04:00
Drew DeVault
d4fd1c1fe2 Add message flags to mailbox page 2020-10-22 13:28:11 -04:00
Drew DeVault
6ba418c9b2 Generalize sidebar categorization logic 2020-10-22 13:03:50 -04:00
Drew DeVault
9e2c420461 Categorize and normalize folder listing 2020-10-22 12:29:55 -04:00
Drew DeVault
8de661b3bb Hide caldav/carrdav in nav unless present 2020-10-22 11:36:26 -04:00
Drew DeVault
aaa30ead41 Handle \Deleted emails in message list
This can happen if an email is deleted by an external client, and this
change fixes a template crash in such cases.

I elected to display (deleted email) rather than to hide deleted
messages so that, if the message is unread, it provides an explanation
for your inbox showing $n unread emails where $n > number of non-deleted
emails.

This partially addresses ~migadu/alps#121
2020-10-22 10:40:29 -04:00
наб
ae9e70b5ad
sourcehut theme: fix nil on emails without a text part
P.a. to 50e131244a which solved
https://todo.sr.ht/~emersion/alps/100

Closes: https://todo.sr.ht/~emersion/alps/102
2020-07-13 17:07:18 +02:00
Eyal Sawady
50e131244a
alps theme: fix nil on emails without a text part
Closes: https://todo.sr.ht/~emersion/alps/100
2020-06-29 16:37:41 +02:00
Simon Ser
9a7acd2791
Add INBOX unread count on mailbox/message pages 2020-05-21 19:19:17 +02:00
Simon Ser
0a9c246794
plugins/caldav: add basic day view 2020-05-21 17:06:51 +02:00
Drew DeVault
79233fa5cb
alps theme: wire up auto-completion in compose 2020-05-20 22:12:37 +02:00
Drew DeVault
7293b7e8e7
alps theme: add button to load remote content 2020-05-20 22:10:56 +02:00
Drew DeVault
a892251387
alps theme: add event page layout 2020-05-20 22:06:35 +02:00
Drew DeVault
7fb2b65eaa
alps theme: unify create/update styles 2020-05-20 22:06:35 +02:00
Drew DeVault
024cab94f1
alps theme: add layout for calendar event update 2020-05-20 22:06:32 +02:00
Drew DeVault
9465f8db6d
login: set encrypted "remember me" token 2020-05-20 19:07:47 +02:00
Drew DeVault
ee3f66c24c
alps theme: layout settings page 2020-05-20 19:00:40 +02:00
Drew DeVault
7142da950d
alps theme: initial layout for calendar 2020-05-20 18:59:01 +02:00
Drew DeVault
50cb8bef77
alps theme: add contact edit/create 2020-05-20 17:47:52 +02:00
Drew DeVault
e4e410de1e
alps theme: add contact details page 2020-05-20 17:47:52 +02:00
Simon Ser
8589228c73
Replace IMAPMessage.TextPartName with TextPart 2020-05-20 16:25:25 +02:00
Simon Ser
ac7a3fb156
Always reply to plain-text part, if any
Closes: https://todo.sr.ht/~emersion/alps/51
2020-05-20 16:18:24 +02:00
Drew DeVault
7ba4275471
alps: improve margin on email bodies 2020-05-20 15:26:42 +02:00
Drew DeVault
5fee600c6e
alps theme: theme the login page 2020-05-13 20:54:15 +02:00
Drew DeVault
5a73ca6ebb
alps theme: if there's nothing to show, say so 2020-05-13 20:52:36 +02:00
Drew DeVault
7456c9574c
alps: theme contact list page 2020-05-13 20:52:06 +02:00
Drew DeVault
dfb381058b
mailbox view: improve pagination styles
This makes the buttons larger and easier to notice/click.
2020-05-13 20:45:59 +02:00
Drew DeVault
02bc8f68c9
message view: add part switcher
This also makes the appearance of HTML emails more consistent with
plaintext ones.
2020-05-13 20:40:57 +02:00
Drew DeVault
e39879ec9a
alps theme: overhaul tables and action lists
This patch contains a whole lot of layout improvements for the alps
theme, mainly replacing the table soup with flexbox and CSS grids, and
fixing up a number of loose ends. This gives us a lot more flexibility
over how the page is laid out. I also cleaned up a lot of other
low-hanging fruit in the layout & styles.
2020-05-13 19:55:41 +02:00
Simon Ser
297798dca2
themes/alps: fix search form method 2020-05-13 17:32:09 +02:00
Drew DeVault
3d1f278fae
Use context-appropriate title for mbox/msg view 2020-05-13 17:00:47 +02:00
Drew DeVault
1cf95af41e
Add <meta refresh> to mailbox view
This causes the mailbox to automatically reload the page every 60
seconds, without JavaScript.

This also updates the base template data to include the full URL, and
replaces the earlier "Path" field with a pre-split array of path
components, which is more immediately useful to most templates given the
limitations of string munging with text/template primitives.
2020-05-13 16:58:48 +02:00
Simon Ser
b891a95fcf
Rename project to alps 2020-05-13 14:07:44 +02:00
Simon Ser
6395be6737
themes/alps: add button to save as draft 2020-03-27 11:30:11 +01:00
Simon Ser
c053b7332e
themes/alps: add link to edit drafts 2020-03-27 11:25:07 +01:00
Simon Ser
f079bcc704
themes/alps: fix hardcoded mailbox list in message view 2020-03-27 10:50:58 +01:00
Simon Ser
e4e826dde2
themes/test: remove leftovers 2020-03-27 10:48:38 +01:00
Simon Ser
81f52cc906
themes/alps: better redirect after performing message operations
Go back to the right page.
2020-03-27 10:46:32 +01:00
Simon Ser
c182fbde63
themes/alps: new theme 2020-03-19 18:03:13 +01:00
Simon Ser
b61e40f363
plugins/base: allow move/delete/flag operations to take multiple UIDs 2020-03-19 16:43:27 +01:00
Simon Ser
ae8658f468
plugins/base: add route to forward messages
Only inline forwarding is supported for now.

References: https://todo.sr.ht/~sircmpwn/koushin/37
2020-03-18 15:01:15 +01:00