2021-11-05 10:19:46 +01:00
|
|
|
module git.sr.ht/~rjarry/aerc
|
2018-03-02 15:27:27 +01:00
|
|
|
|
2022-08-05 14:29:49 +02:00
|
|
|
go 1.16
|
2019-06-27 13:06:41 +02:00
|
|
|
|
2018-03-02 15:27:27 +01:00
|
|
|
require (
|
2021-10-30 22:13:29 +02:00
|
|
|
git.sr.ht/~sircmpwn/getopt v1.0.0
|
2021-12-30 10:25:07 +01:00
|
|
|
github.com/ProtonMail/go-crypto v0.0.0-20211221144345-a4f6767435ab
|
imap: add option to cache headers
Add option to cache headers for imap accounts. Cache db is located at
$XDG_CACHE_DIR/aerc/{account name}. The cache is cleaned of stale
entries when aerc is first opened.
Two new account level configuration options are introduced:
* cache-headers (Default: false)
* cache-max-age (Default: 30 days (720 hours))
The change in worker/imap/open.go is to set the selected directory. This
is required to access the UIDVALIDITY field, which is used in
combination with the message ID to form the key for use in the cache db.
The key structure is: "header.{UIDVALIDITY}.{UID}"
Where reasonable, cache does not stop aerc from running. In general, if
there is an error in the cache, aerc should continue working as usual.
Errors are either displayed to the user or logged.
All messages are stored without flags, and when retrieved have the flags
set to SEEN. This is to prevent UI flashes. A new method to
FetchMessageFlags is introduced to update flags of cached headers. This
is done asynchronously, and the user will see their messages appear and
then any flags updated. The message will initially show as SEEN, but
will update to unread. I considered updating the cache with the
last-known flag state, however it seems prudent to spare the R/W cycle
and assume that - eventually - all messages will end up read, and if it
isn't the update will occur rather quickly.
Note that leveldb puts a lock on the database, preventing multiple
instances of aerc from accessing the cache at the same time.
Much of this work is based on previous efforts by Vladimír Magyar.
Implements: https://todo.sr.ht/~rjarry/aerc/2
Thanks: Vladimír Magyar <vladimir@mgyar.me>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: inwit <inwit@sindominio.net>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-06-15 14:23:51 +02:00
|
|
|
github.com/arran4/golang-ical v0.0.0-20220517104411-fd89fefb0182
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/creack/pty v1.1.17
|
2019-03-31 20:24:53 +02:00
|
|
|
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
|
2019-05-26 21:48:29 +02:00
|
|
|
github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/emersion/go-imap v1.2.0
|
|
|
|
github.com/emersion/go-imap-sortthread v1.2.0
|
2020-03-03 22:20:07 +01:00
|
|
|
github.com/emersion/go-maildir v0.2.0
|
2022-07-11 20:11:18 +02:00
|
|
|
github.com/emersion/go-mbox v1.0.2
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/emersion/go-message v0.15.0
|
2022-07-11 20:11:18 +02:00
|
|
|
github.com/emersion/go-msgauth v0.6.5
|
2021-12-30 10:25:07 +01:00
|
|
|
github.com/emersion/go-pgpmail v0.2.0
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/emersion/go-sasl v0.0.0-20211008083017-0b9dcfb154ac
|
|
|
|
github.com/emersion/go-smtp v0.15.0
|
2022-07-30 13:00:37 +02:00
|
|
|
github.com/fsnotify/fsnotify v1.5.4
|
imap: add option to cache headers
Add option to cache headers for imap accounts. Cache db is located at
$XDG_CACHE_DIR/aerc/{account name}. The cache is cleaned of stale
entries when aerc is first opened.
Two new account level configuration options are introduced:
* cache-headers (Default: false)
* cache-max-age (Default: 30 days (720 hours))
The change in worker/imap/open.go is to set the selected directory. This
is required to access the UIDVALIDITY field, which is used in
combination with the message ID to form the key for use in the cache db.
The key structure is: "header.{UIDVALIDITY}.{UID}"
Where reasonable, cache does not stop aerc from running. In general, if
there is an error in the cache, aerc should continue working as usual.
Errors are either displayed to the user or logged.
All messages are stored without flags, and when retrieved have the flags
set to SEEN. This is to prevent UI flashes. A new method to
FetchMessageFlags is introduced to update flags of cached headers. This
is done asynchronously, and the user will see their messages appear and
then any flags updated. The message will initially show as SEEN, but
will update to unread. I considered updating the cache with the
last-known flag state, however it seems prudent to spare the R/W cycle
and assume that - eventually - all messages will end up read, and if it
isn't the update will occur rather quickly.
Note that leveldb puts a lock on the database, preventing multiple
instances of aerc from accessing the cache at the same time.
Much of this work is based on previous efforts by Vladimír Magyar.
Implements: https://todo.sr.ht/~rjarry/aerc/2
Thanks: Vladimír Magyar <vladimir@mgyar.me>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: inwit <inwit@sindominio.net>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-06-15 14:23:51 +02:00
|
|
|
github.com/gatherstars-com/jwz v1.3.0
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/gdamore/tcell/v2 v2.4.0
|
|
|
|
github.com/go-ini/ini v1.63.2
|
2022-07-30 13:00:37 +02:00
|
|
|
github.com/golangci/golangci-lint v1.47.3
|
2020-03-03 17:55:06 +01:00
|
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/imdario/mergo v0.3.12
|
2020-03-03 17:55:06 +01:00
|
|
|
github.com/kyoh86/xdg v1.2.0
|
2022-03-06 03:58:07 +01:00
|
|
|
github.com/lithammer/fuzzysearch v1.1.3
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/mattn/go-isatty v0.0.14
|
|
|
|
github.com/mattn/go-pointer v0.0.1 // indirect
|
|
|
|
github.com/mattn/go-runewidth v0.0.13
|
2020-03-03 17:55:06 +01:00
|
|
|
github.com/miolini/datacounter v1.0.2
|
2019-03-15 15:47:09 +01:00
|
|
|
github.com/mitchellh/go-homedir v1.1.0
|
2020-03-03 17:55:06 +01:00
|
|
|
github.com/pkg/errors v0.9.1
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab
|
2022-07-30 13:00:37 +02:00
|
|
|
github.com/stretchr/testify v1.8.0
|
imap: add option to cache headers
Add option to cache headers for imap accounts. Cache db is located at
$XDG_CACHE_DIR/aerc/{account name}. The cache is cleaned of stale
entries when aerc is first opened.
Two new account level configuration options are introduced:
* cache-headers (Default: false)
* cache-max-age (Default: 30 days (720 hours))
The change in worker/imap/open.go is to set the selected directory. This
is required to access the UIDVALIDITY field, which is used in
combination with the message ID to form the key for use in the cache db.
The key structure is: "header.{UIDVALIDITY}.{UID}"
Where reasonable, cache does not stop aerc from running. In general, if
there is an error in the cache, aerc should continue working as usual.
Errors are either displayed to the user or logged.
All messages are stored without flags, and when retrieved have the flags
set to SEEN. This is to prevent UI flashes. A new method to
FetchMessageFlags is introduced to update flags of cached headers. This
is done asynchronously, and the user will see their messages appear and
then any flags updated. The message will initially show as SEEN, but
will update to unread. I considered updating the cache with the
last-known flag state, however it seems prudent to spare the R/W cycle
and assume that - eventually - all messages will end up read, and if it
isn't the update will occur rather quickly.
Note that leveldb puts a lock on the database, preventing multiple
instances of aerc from accessing the cache at the same time.
Much of this work is based on previous efforts by Vladimír Magyar.
Implements: https://todo.sr.ht/~rjarry/aerc/2
Thanks: Vladimír Magyar <vladimir@mgyar.me>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: inwit <inwit@sindominio.net>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-06-15 14:23:51 +02:00
|
|
|
github.com/syndtr/goleveldb v1.0.0
|
|
|
|
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778
|
2021-10-30 22:13:29 +02:00
|
|
|
github.com/zenhack/go.notmuch v0.0.0-20211022191430-4d57e8ad2a8b
|
2022-07-30 13:00:37 +02:00
|
|
|
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
|
2018-03-02 15:27:27 +01:00
|
|
|
)
|
2019-06-01 17:28:29 +02:00
|
|
|
|
2020-04-20 18:17:19 +02:00
|
|
|
replace golang.org/x/crypto => github.com/ProtonMail/crypto v0.0.0-20200420072808-71bec3603bf3
|
2020-08-28 16:36:40 +02:00
|
|
|
|
2020-11-26 07:31:05 +01:00
|
|
|
replace github.com/zenhack/go.notmuch => github.com/brunnre8/go.notmuch v0.0.0-20201126061756-caa2daf7093c
|