Commit Graph

22850 Commits

Author SHA1 Message Date
Pascal Bleser
b9999076e5 groupware: fix keyword patching syntax for adding and removing email keywords endpoints 2026-02-04 09:40:22 +01:00
Pascal Bleser
8cce5286f0 groupware: fix keyword patching syntax for markAsSeen=true 2026-02-04 09:40:22 +01:00
Pascal Bleser
c61bded13f groupware: add threadSize property in the email summary endpoint 2026-02-04 09:40:22 +01:00
Pascal Bleser
5a3b66c312 groupware: improve email sanitization by using the mime package to parse the part type, in order to recognize HTML ones that need sanitization 2026-02-04 09:40:22 +01:00
Pascal Bleser
32a2cf5100 groupware: add headers Unmatched-Path and Unsupported-Method to make
development of the web UI easier
2026-02-04 09:40:22 +01:00
Pascal Bleser
fa6b695f24 groupware: add markAsSeen=true to mark an email as $seen before it is
retrieved
2026-02-04 09:40:22 +01:00
Pascal Bleser
f4ed735441 groupware: add the Retry-After header in responses when the session cannot be retrieved 2026-02-04 09:40:22 +01:00
Pascal Bleser
8999caf5a1 groupware: add searching emails by their Message-Id + retrieving an email by its ID as message/rfc822 2026-02-04 09:40:22 +01:00
Pascal Bleser
df4253102d groupware: add email HTML sanitization
* sanitize email text/html body parts using bluemonday

 * deps(groupware):
   - new dependency: github.com/microcosm-cc/bluemonday
   - transitive dependencies:
     - github.com/aymerick/douceur
     - github.com/gorilla/css
2026-02-04 09:40:22 +01:00
Pascal Bleser
9ee798f42e groupware: add identity deletion 2026-02-04 09:40:22 +01:00
Pascal Bleser
9ef74191c0 groupware:
* made several email related operations multi-account:
   QueryEmailSnippets, QueryEmails, QueryEmailsWithSnippets

 * add GetIdentitiesForAllAccounts

 * add GetEmailsForAllAccounts

 * jmap: add CreateIdentity, UpdateIdentity; groupware: add
   GetIdentityById, AddIdentity, ModifyIdentity

 * add temporary workaround until Calendars, Tasks, Contacts are
   implemented in Stalwart when determining the default account for
   those: use the mail one in the mean time
2026-02-04 09:40:22 +01:00
Pascal Bleser
a9efa44908 groupware: add instructions for using stalwart-admin 2026-02-04 09:40:22 +01:00
Pascal Bleser
dce74c9e21 groupware: fix NPE when one of the accounts is a group account 2026-02-04 09:40:22 +01:00
Pascal Bleser
ce2b951afe groupware: fix devtools LDAP passwords, as it was breaking regular opencloud drive authentication 2026-02-04 09:40:22 +01:00
Pascal Bleser
4b09cb576a groupware: DEVELOPER.md: add note explaining LDAPTLS_REQCERT 2026-02-04 09:40:22 +01:00
Pascal Bleser
773edd9e2a groupware: accept both '_' and '*' as the 'default account' placeholder 2026-02-04 09:40:22 +01:00
Pascal Bleser
78e52d1c00 groupware: DEVELOPER.md: explain how to set a quota on a user using the Stalwart management API 2026-02-04 09:40:22 +01:00
Pascal Bleser
6f42eb8f6e groupware: jmap: don't collpase threads when searching for emails, and add dumping of JMAP request payloads when trace logging is enabled 2026-02-04 09:40:21 +01:00
Pascal Bleser
e1a1383527 groupware: try an alternative way to configure Stalwart dynamically in the devtools Docker Compose setup, by using separate files and ${STALWART_AUTH_DIRECTORY} to name to file to mount 2026-02-04 09:40:21 +01:00
Pascal Bleser
0c7a14d4dd jmap: add GetInboxNameForMultipleAccounts 2026-02-04 09:40:21 +01:00
Pascal Bleser
366576e29d groupware: add Mermaid diagrams to describe the two setup options 2026-02-04 09:40:21 +01:00
Pascal Bleser
4620aa4727 groupware: implement email updating and email keyword updating endpoints 2026-02-04 09:40:21 +01:00
Pascal Bleser
f294181d71 docs(groupware): upgrade @redocly/cli 2.3.1 -> 2.4.0 2026-02-04 09:40:21 +01:00
Pascal Bleser
933688db83 jmap: fix Email/set 2026-02-04 09:40:21 +01:00
Pascal Bleser
a3c6cea180 groupware: further updates to make everything work with the builtin LDAP and OIDC 2026-02-04 09:40:21 +01:00
Pascal Bleser
5871d814d3 groupware: for /accounts/all/emails/latest/summary, rename the ?unread query parameter into ?seen as that is more intuitive 2026-02-04 09:40:21 +01:00
Pascal Bleser
5352b9a75e groupware: make everything also work with the built-in LDAP and IDP 2026-02-04 09:40:21 +01:00
Pascal Bleser
ccf560e1a6 groupware: devtools: Stalwart: add internal LDAP configuration 2026-02-04 09:40:21 +01:00
Pascal Bleser
ead960e227 groupware: update @redocly/cli from 2.3.0 to 2.3.1 2026-02-04 09:40:21 +01:00
Pascal Bleser
b5c454cd2c docs(groupware): fix basepath in OpenAPI, /groupware instead of /groupware/groupware 2026-02-04 09:40:21 +01:00
Viktor Scharf
de01c1e75c fixed connection reset issue. adapted make file to generate swagger docs on mac 2026-02-04 09:40:21 +01:00
Pascal Bleser
acd2532ba2 groupware: improve jmap integration tests
* use gofakeit instead of loremipsum, as it can also fake images for
   attachments

 * random emails for testing: generate threads, add attachments
2026-02-04 09:40:21 +01:00
Pascal Bleser
588ef84a63 groupware: rewrite JMAP integration test to be more reusable, and upgrade Stalwart container to 0.13.4 2026-02-04 09:40:21 +01:00
Pascal Bleser
3e5a8bc6e7 groupware: upgrade Stalwart in devtools from 0.13.2 to 0.13.4
* changes from 0.13.4:
   - JMAP: Protocol layer rewrite for zero-copy deserialization and
     architectural improvements.
   - IMAP: Unbounded memory allocation in request parser
     (CVE-2025-61600)
   - IMAP: Wrong permission checked for GETACL.
   - JMAP: References to previous method fail when there are no results
     (stalwartlabs#1507).
   - JMAP: Enforce quota checks on Blob/copy.
   - JMAP: Mailbox/get fails without accountId argument (stalwartlabs#1936).
   - JMAP: Do not return invalidProperties when email update doesn't
     contain changes (stalwartlabs#1139)
   - iTIP: Include date properties in REPLY (stalwartlabs#2102).
   - OIDC: Do not set username field if it is the same as the email field.
   - Telemetry: Fix calculateMetrics housekeeper task (stalwartlabs#2155).
   - Directory: Always use rsplit to extract the domain part from email
     addresses.

  * changes from 0.13.3:
   - CLI: Health checks
   - WebDAV: Assisted discovery v2
   - iTIP: Do not send a REPLY when deleting an event that was not
     accepted.
   - iTIP: Include event details in REPLY messages (stalwart#2102).
   - iTIP: Add organizer to iMIP replies if missing to deal with MS
     Exchange 2010 bug.
   - OIDC: Do not overwrite locally defined aliases (stalwart#2065).
   - HTTP: Scan ban should only be triggered by HTTP parse errors.
   - HTTP: Skip scanner fail2ban checks when the proxy client IP can't
     be parsed (stalwart#2121).
   - JMAP: Do not allow roles to be removed from system mailboxes
     (stalwart#1977).
   - JMAP WS: Fix panic when using invalid server url.
   - SMTP: Do no send EHLO twice when STARTTLS is unavailable
     (stalwart#2050).
   - IMAP: Allow ENABLE UTF8 in IMAPrev1.
   - IMAP: Include administer permission in ACL responses.
   - IMAP: Add owner rights to ACL get responses.
   - IMAP: Do not auto-train Bayes when moving messages from Junk to
     Trash.
   - IMAP/ManageSieve: Increase maximum quoted argument size
     (stalwart#2039).
   - CalDAV: Limit recurrence expansions in calendar reports
     (CVE-2025-59045).
   - WebDAV: Do not fix percent encoding on WebDAV FS (stalwart#2036).
2026-02-04 09:40:21 +01:00
Pascal Bleser
d01bdc9d0c groupware: add bootstrapping on / with quotas for all accounts 2026-02-04 09:40:21 +01:00
Pascal Bleser
2eaae9f979 groupware: add /quota for all accounts 2026-02-04 09:40:21 +01:00
Pascal Bleser
8ed33d9d7d groupware: improve instructions in DEVELOPER.md 2026-02-04 09:40:21 +01:00
Pascal Bleser
b8d6282caf groupware: update @redocly/cli: 2.2.2 -> 2.3.0 2026-02-04 09:40:21 +01:00
Pascal Bleser
9bfa73869f groupware: add quota API + add support for Accept-Language and Content-Language 2026-02-04 09:40:21 +01:00
Pascal Bleser
9f8672a68d groupware: minor improvements to the DEVELOPER.md 2026-02-04 09:40:21 +01:00
Pascal Bleser
7a0ebbee70 groupware: add flag to currently ignore session capability checks for calendars, contacts and tasks, as those are not implemented in Stalwart yet; will need to remove it in the future 2026-02-04 09:40:21 +01:00
Pascal Bleser
86815a61a4 groupware: add JMAP capability checking (in part: for contacts, calendars, tasks) 2026-02-04 09:40:21 +01:00
Pascal Bleser
e95604ff70 /auth: add SkipXAccessToken:true 2026-02-04 09:40:21 +01:00
Pascal Bleser
15d45f5ded groupware: add mock endpoints for tasklists and tasks 2026-02-04 09:40:21 +01:00
Pascal Bleser
bbf9d1bd9c groupware: implement JMAP Task specification 2026-02-04 09:40:21 +01:00
Pascal Bleser
ae1f5af2d4 groupware: more mock data, added missing JMAP types 2026-02-04 09:40:21 +01:00
Pascal Bleser
0ef3af4e19 groupware: add mock endpoints for addressbooks and contacts 2026-02-04 09:40:21 +01:00
Pascal Bleser
245fa99236 opencloud_full: also keep the 'Trace-Id' HTTP header 2026-02-04 09:40:21 +01:00
Pascal Bleser
9dad87beff implement JSCalendar (RFC 8984) 2026-02-04 09:40:21 +01:00
Pascal Bleser
d8b417a5fa services/groupware/DEVELOPER.md: adapt to new path for the opencloud_full deployment 2026-02-04 09:40:21 +01:00