mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-15 01:52:07 -04:00
* adds pkg/jmap/jmap_integration_test.go
* uses ghcr.io/stalwartlabs/stalwart:v0.13.2-alpine
* can be disabled by setting one of the following environment
variables, in the same fashion as ca0493b28
- CI=woodpecker
- CI_SYSTEM_NAME=woodpecker
- USE_TESTCONTAINERS=false
* dependencies:
- bump github.com/go-test/deep from 1.1.0 to 1.1.1
- add github.com/cention-sany/utf7
- add github.com/dustinkirkland/golang-petname
- add github.com/emersion/go-imap/v2
- add github.com/emersion/go-message
- add github.com/emersion/go-sasl
- add github.com/go-crypt/crypt
- add github.com/go-crypt/x
- add github.com/gogs/chardet
- add github.com/inbucket/html2text
- add github.com/jhilleryerd/enmime/v2
- add github.com/ssor/bom
- add gopkg.in/loremipsum.v1
34 lines
789 B
Go
34 lines
789 B
Go
package imap
|
|
|
|
// StatusOptions contains options for the STATUS command.
|
|
type StatusOptions struct {
|
|
NumMessages bool
|
|
UIDNext bool
|
|
UIDValidity bool
|
|
NumUnseen bool
|
|
NumDeleted bool // requires IMAP4rev2 or QUOTA
|
|
Size bool // requires IMAP4rev2 or STATUS=SIZE
|
|
|
|
AppendLimit bool // requires APPENDLIMIT
|
|
DeletedStorage bool // requires QUOTA=RES-STORAGE
|
|
HighestModSeq bool // requires CONDSTORE
|
|
}
|
|
|
|
// StatusData is the data returned by a STATUS command.
|
|
//
|
|
// The mailbox name is always populated. The remaining fields are optional.
|
|
type StatusData struct {
|
|
Mailbox string
|
|
|
|
NumMessages *uint32
|
|
UIDNext UID
|
|
UIDValidity uint32
|
|
NumUnseen *uint32
|
|
NumDeleted *uint32
|
|
Size *int64
|
|
|
|
AppendLimit *uint32
|
|
DeletedStorage *int64
|
|
HighestModSeq uint64
|
|
}
|