diff options
author | Robin Jarry <robin@jarry.cc> | 2024-06-28 23:49:20 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-29 00:18:18 +0200 |
commit | 446d5303b9c7e7100261fe444bf42319e25e228e (patch) | |
tree | 11f65d83bed2fd503d8eeedb30ce023cb0409d82 /worker/jmap/cache/state.go | |
parent | 7f833baa90bf6521997c70557a1534dc7528ce0d (diff) | |
download | aerc-446d5303b9c7e7100261fe444bf42319e25e228e.tar.gz |
jmap: revert fetch threads support
This reverts commits:
9e93d9efdb88 ("jmap: fix go static check failure")
0465509eedad ("jmap: skip Email/get call if no emails to get")
9f97c698e3dd ("jmap: fetch entire threads")
Issues have been reported about disappearing sent messages.
Reported-by: Tristan Partin <tristan@partin.io>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'worker/jmap/cache/state.go')
-rw-r--r-- | worker/jmap/cache/state.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/worker/jmap/cache/state.go b/worker/jmap/cache/state.go index 6538ccad..5fec5034 100644 --- a/worker/jmap/cache/state.go +++ b/worker/jmap/cache/state.go @@ -12,18 +12,6 @@ func (c *JMAPCache) PutMailboxState(state string) error { return c.put(mailboxStateKey, []byte(state)) } -func (c *JMAPCache) GetThreadState() (string, error) { - buf, err := c.get(threadStateKey) - if err != nil { - return "", err - } - return string(buf), nil -} - -func (c *JMAPCache) PutThreadState(state string) error { - return c.put(threadStateKey, []byte(state)) -} - func (c *JMAPCache) GetEmailState() (string, error) { buf, err := c.get(emailStateKey) if err != nil { @@ -39,5 +27,4 @@ func (c *JMAPCache) PutEmailState(state string) error { const ( mailboxStateKey = "state/mailbox" emailStateKey = "state/email" - threadStateKey = "state/thread" ) |