mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:19:22 -06:00
groupware: response payload /groupware/accounts/{id}/emails should be without email bodies
This commit is contained in:
@@ -118,7 +118,11 @@ func (g *Groupware) GetAllEmailsInMailbox(w http.ResponseWriter, r *http.Request
|
||||
|
||||
logger := log.From(l)
|
||||
|
||||
emails, sessionState, state, lang, jerr := g.jmap.GetAllEmailsInMailbox(accountId, req.session, req.ctx, logger, req.language(), mailboxId, offset, limit, false, true, g.maxBodyValueBytes, true)
|
||||
collapseThreads := false
|
||||
fetchBodies := false
|
||||
withThreads := true
|
||||
|
||||
emails, sessionState, state, lang, jerr := g.jmap.GetAllEmailsInMailbox(accountId, req.session, req.ctx, logger, req.language(), mailboxId, offset, limit, collapseThreads, fetchBodies, g.maxBodyValueBytes, withThreads)
|
||||
if jerr != nil {
|
||||
return req.errorResponseFromJmap(accountId, jerr)
|
||||
}
|
||||
@@ -637,7 +641,6 @@ func (g *Groupware) searchEmails(w http.ResponseWriter, r *http.Request) {
|
||||
return errorResponseWithSessionState(accountId, err, sessionState)
|
||||
}
|
||||
flattened[i] = EmailWithSnippets{
|
||||
// AccountId: accountId,
|
||||
Email: sanitized,
|
||||
Snippets: snippets,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user