Commit graph

370 commits

Author SHA1 Message Date
Konstantinos Koukas
f01fbcbc48 Upgrade go-smtp to latest commit 2022-10-19 00:57:56 +02:00
Simon Ser
11c35e9305 go fmt 2022-10-13 14:44:00 +02:00
Simon Ser
47e08a196b Upgrade dependencies 2022-10-13 14:43:05 +02:00
Conrad Hoffmann
9cb23b0997 themes/sourcehut: fix calender event URLs
This makes calendar events viewable in the sourcehut theme.
2022-06-03 10:14:09 +02:00
Conrad Hoffmann
1dfcf61f63 Upgrade go-webdav dependency
This commit upgrades go-webdav to what is currently the master branch.
The go-webdav client implementation gained some features with regards to
service discovery that alps can benefit from.

With this change, one can pass e.g. the following upstream URL:

   carddav+insecure://example.com/.well-known/carddav

This URL is defined in [RFC 6764, section 6][1]. If the server supports
it, it will respond with a redirect to the currently authenticated
user's principal URL. In the version used so far, the go-webdav client
does not handle this redirect well.

[1]: https://datatracker.ietf.org/doc/html/rfc6764#section-6

See also: https://github.com/emersion/go-webdav/commit/0363312
2022-05-31 17:06:24 +02:00
Simon Ser
6f578aa894 Upgrade dependencies 2022-05-07 10:20:42 +02:00
Alex McGrath
7cb145748a gracefully fail when no messages are selected for deletion or moving 2022-05-07 10:18:59 +02:00
Conrad Hoffmann
f4523b51af carddav: fix accidental shadowing of variables
The statement changed here creates new variables, whereas it means to
assign values to the previously declared `ao` to be used outside of the
if statement. This lead to PUT requests always being sent to a URL
containing a new UUID, causing problems with some CardDAV servers.
2022-03-01 11:17:34 +01:00
Jonas Mueller
9553724c82 Show notice & error code on failed login
Upon failed login, this patch sets the status code to 401 and provides a
Notice to show in login.html
2022-02-25 16:18:42 +01:00
Alexey Terentyev
d4c35f3c31 sourcehut theme: show only loaded plugin links and and mark current active plugin name
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
2021-09-29 22:30:54 +02:00
Alex McGrath
1988b2a158 make path to themes configurable via ldflags 2021-09-12 12:01:29 +02:00
Gusted
1af693ce53 themes/sourcehut: fallback to Mailbox@Hostname 2021-08-23 10:05:16 +02:00
Gusted
5265ac59b1 Simplify 2021-08-04 11:01:05 +02:00
Gusted
5d290410ee Use shorter if syntax 2021-08-04 10:59:46 +02:00
Gusted
477bfd69a6 plugins/{carddav,caldav}: remove unused conversion 2021-08-04 10:58:45 +02:00
Gusted
1d070b1a62 sessions: remove unused property 2021-08-04 10:57:53 +02:00
Simon Ser
03fef08314 Upgrade dependencies 2021-07-05 11:19:41 +02:00
Simon Ser
556ce5b2c8 go fmt 2021-07-05 11:19:07 +02:00
Martin Ashby
7adc90e229 Fix crash in alps theme when common mailboxes are not present.
Fixes https://todo.sr.ht/~migadu/alps/154

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
2021-07-05 11:18:53 +02:00
Martin Ashby
765eeca8ce Add error page for sourcehut theme.
Signed-off-by: Martin Ashby <martin@ashbysoft.com>
2021-07-04 21:54:39 +02:00
Martin Ashby
a09385cb06 Add 'remember me' checkbox to sourcehut theme login page.
Signed-off-by: Martin Ashby <martin@ashbysoft.com>
2021-07-04 21:54:12 +02:00
Martin Ashby
fdfde5bad5 Add documentation for -login-key cli option 2021-07-04 18:33:46 +02:00
Mark Dain
e64550207c Identify JavaScript as MIT/Expat for LibreJS
This commit introduces LibreJS compatible `@license' blocks as per
https://www.gnu.org/software/librejs/free-your-javascript.html

The magnet URI can be opened in a BitTorrent client to retrieve a copy
of the MIT/Expat license. Section 3.2.2.1 from the above link has a
list of magnet URIs for various free software licenses.
2021-04-03 09:03:55 -04:00
Mark Dain
5cef0aaff2 Fix link to mailing list 2020-11-24 11:09:25 -05:00
j3s
b5fcf10c44 Repoint repository references to new location 2020-11-20 07:38:10 -05:00
Drew DeVault
51d762ac5f Implement mailbox subscriptions 2020-11-19 13:14:12 -05:00
Drew DeVault
8cc742f45d Fix issues with to/from headers 2020-11-19 13:06:38 -05:00
Drew DeVault
61cdb93e48 s/email/text/ in To & From fields
type="email" does not validate RFC 2822 address lists
2020-11-19 12:40:39 -05:00
Drew DeVault
797b426ec6 Add "Full name" option to settings
This provides the name portion of your From header in the compose view.
2020-11-19 11:48:12 -05:00
Drew DeVault
51498a2dc3 JS enhancements to encourage bottom-posting 2020-11-19 11:41:47 -05:00
Drew DeVault
a1e8bcc561 Implement message signature setting 2020-11-19 11:35:57 -05:00
Drew DeVault
a5d2af2c4e Remove "this email was deleted by another client"
I was on the fence about adding this in the first place. The state of an
email being \Deleted but still in this inbox is unusual, and unlikely to
occur unless the user is already somewhat knowledgable about IMAP and
utilizing power-user-level tooling which could cause the situation to
arise. Alps does not target that kind of user, so this can be hidden.
2020-11-19 11:24:58 -05:00
Drew DeVault
cb37df882e Add notices on action completion 2020-11-19 11:17:40 -05:00
Drew DeVault
405c18d213 Convert HTML to plaintext for forwarding & replies 2020-11-19 10:52:18 -05:00
Drew DeVault
2fb78cad97 Fix name of HTML tab in HTML-only emails 2020-11-19 10:43:18 -05:00
Drew DeVault
2430473dbc Comment out subscription buttons
This probably doesn't make sense to prioritize on the last day of
development in this billing phase.
2020-11-19 10:36:09 -05:00
Drew DeVault
8771ddeb2d Add favicons for alps theme 2020-11-19 10:26:26 -05:00
Drew DeVault
1992880454 Add theme-specific error page 2020-11-19 10:09:05 -05:00
Drew DeVault
5087e4b327 Improve "attachments exceed max size" error message 2020-11-19 09:30:46 -05:00
Drew DeVault
297afc5ce6 Limit total size of unsent attachments 2020-11-19 09:28:10 -05:00
Drew DeVault
7b3e580fe4 Workaround for MISSING_MAILBOX@MISSING_DOMAIN 2020-11-13 13:42:27 -05:00
Drew DeVault
1565a335db alps/compose.html: fix autofocus on wrong field 2020-11-13 13:32:07 -05:00
Drew DeVault
1d0630dde9 Design work for mailbox subscriptions 2020-11-13 13:23:29 -05:00
Drew DeVault
18ad982c53 Remove leftover outbox handling 2020-11-13 13:19:44 -05:00
Drew DeVault
fa102822bb HTML image proxy: handle missing Content-Length
This is less than ideal, but we still won't end up over-reading because
we're using a LimitedReader here.
2020-11-13 12:45:39 -05:00
Drew DeVault
2611bee170 Humanize message list dates 2020-11-13 12:28:46 -05:00
Drew DeVault
6ecb243620 Fix duplicate drafts on repeated saves 2020-11-13 12:19:46 -05:00
Drew DeVault
1321cea241 Redirect to edit draft after saving message 2020-11-13 11:55:56 -05:00
Drew DeVault
12547e2654 compose.html: add font awesome license 2020-11-13 11:08:04 -05:00
Drew DeVault
fe32c53a17 Improve UI while emails are being sent 2020-11-13 11:05:10 -05:00