diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml
index c626894fa..05586d26b 100644
--- a/.github/workflows/dependabot.yml
+++ b/.github/workflows/dependabot.yml
@@ -10,7 +10,7 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
- if: ${{ github.actor == 'dependabot[bot]' }}
+ if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
steps:
- name: Dependabot metadata
id: metadata
diff --git a/.github/workflows/upload-docs.yml b/.github/workflows/upload-docs.yml
index a2501e4d9..f9598638d 100644
--- a/.github/workflows/upload-docs.yml
+++ b/.github/workflows/upload-docs.yml
@@ -1,4 +1,4 @@
-name: Build & deploy documentation on rs.delta.chat, c.delta.chat, and py.delta.chat
+name: Build & deploy documentation on rs.delta.chat, c.delta.chat, py.delta.chat and cffi.delta.chat
on:
push:
@@ -10,6 +10,9 @@ permissions: {}
jobs:
build-rs:
runs-on: ubuntu-latest
+ environment:
+ name: rs.delta.chat
+ url: https://rs.delta.chat/
steps:
- uses: actions/checkout@v6
@@ -22,9 +25,9 @@ jobs:
- name: Upload to rs.delta.chat
run: |
mkdir -p "$HOME/.ssh"
- echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
+ echo "${{ secrets.RS_DOCS_SSH_KEY }}" > "$HOME/.ssh/key"
chmod 600 "$HOME/.ssh/key"
- rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/target/doc "${{ secrets.USERNAME }}@rs.delta.chat:/var/www/html/rs/"
+ rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/target/doc "${{ secrets.RS_DOCS_SSH_USER }}@rs.delta.chat:/var/www/html/rs.delta.chat/"
build-python:
runs-on: ubuntu-latest
@@ -72,6 +75,10 @@ jobs:
build-ts:
runs-on: ubuntu-latest
+ environment:
+ name: js.jsonrpc.delta.chat
+ url: https://js.jsonrpc.delta.chat/
+
defaults:
run:
working-directory: ./deltachat-jsonrpc/typescript
@@ -95,6 +102,27 @@ jobs:
- name: Upload to js.jsonrpc.delta.chat
run: |
mkdir -p "$HOME/.ssh"
- echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
+ echo "${{ secrets.JS_JSONRPC_DOCS_SSH_KEY }}" > "$HOME/.ssh/key"
chmod 600 "$HOME/.ssh/key"
- rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/deltachat-jsonrpc/typescript/docs/ "${{ secrets.USERNAME }}@js.jsonrpc.delta.chat:/var/www/html/js-jsonrpc/"
+ rsync -avzh --delete -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/deltachat-jsonrpc/typescript/docs/ "${{ secrets.JS_JSONRPC_DOCS_SSH_USER }}@js.jsonrpc.delta.chat:/var/www/html/js.jsonrpc.delta.chat/"
+
+ build-cffi:
+ runs-on: ubuntu-latest
+ environment:
+ name: cffi.delta.chat
+ url: https://cffi.delta.chat/
+
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ show-progress: false
+ persist-credentials: false
+ - name: Build the documentation with cargo
+ run: |
+ cargo doc --package deltachat_ffi --no-deps
+ - name: Upload to cffi.delta.chat
+ run: |
+ mkdir -p "$HOME/.ssh"
+ echo "${{ secrets.CFFI_DOCS_SSH_KEY }}" > "$HOME/.ssh/key"
+ chmod 600 "$HOME/.ssh/key"
+ rsync -avzh --delete -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/target/doc/ "${{ secrets.CFFI_DOCS_SSH_USER }}@delta.chat:/var/www/html/cffi.delta.chat/"
diff --git a/.github/workflows/upload-ffi-docs.yml b/.github/workflows/upload-ffi-docs.yml
deleted file mode 100644
index 2d4e532fb..000000000
--- a/.github/workflows/upload-ffi-docs.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-# GitHub Actions workflow
-# to build `deltachat_ffi` crate documentation
-# and upload it to
-
-name: Build & Deploy Documentation on cffi.delta.chat
-
-on:
- push:
- branches:
- - main
-
-permissions: {}
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v6
- with:
- show-progress: false
- persist-credentials: false
- - name: Build the documentation with cargo
- run: |
- cargo doc --package deltachat_ffi --no-deps
- - name: Upload to cffi.delta.chat
- run: |
- mkdir -p "$HOME/.ssh"
- echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
- chmod 600 "$HOME/.ssh/key"
- rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/target/doc/ "${{ secrets.USERNAME }}@delta.chat:/var/www/html/cffi/"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0a8204db4..3d0d3c075 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,61 @@
# Changelog
+## [2.48.0] - 2026-03-30
+
+### Fixes
+
+- Fix reordering problems in multi-relay setups by not sorting received messages below the last seen one.
+- Always sort "Messages are end-to-end encrypted" notice to the beginning.
+- Make Message-ID of pre-messages stable across resends ([#8007](https://github.com/chatmail/core/pull/8007)).
+- Delete `imap_markseen` entries not corresponding to any `imap` rows.
+- Cleanup `imap` and `imap_sync` records without transport in housekeeping.
+- When receiving MDN, mark all preceding messages as noticed, even having same timestamp ([#7928](https://github.com/chatmail/core/pull/7928)).
+- Remove migration 108 preventing upgrades from core 1.86.0 to the latest version.
+
+### Features / Changes
+
+- Improve IMAP loop logs.
+- Add decryption error to the device message about outgoing message decryption failure.
+- Log received message sort timestamp.
+
+### Performance
+
+- Move sorting outside of SQL query in `store_seen_flags_on_imap`.
+
+### API-Changes
+
+- Add JSON-RPC API `markfresh_chat()`.
+- ffi: Correctly declare `dc_event_channel_new()` as having no params ([#7831](https://github.com/chatmail/core/pull/7831)).
+
+### Refactor
+
+- Remove `wal_checkpoint_mutex`, lock `write_mutex` before getting sql connection instead.
+- Replace async `RwLock` with sync `RwLock` for stock strings.
+- Cleanup remaining Autocrypt Setup Message processing in `mimeparser`.
+- SecureJoin: do not check for self address in forwarding protection.
+- Fix clippy warnings.
+
+### CI
+
+- Update {c,py}.delta.chat website deployments.
+- Use environments for {rs,cffi,js.jsonrpc}.delta.chat deployments.
+- Fix https://docs.zizmor.sh/audits/#bot-conditions.
+
+### Documentation
+
+- Add SQL performance tips to STYLE.md.
+
+### Tests
+
+- Remove `test_old_message_5`.
+- Do not rely on loading newest chat in `load_imf_email()`.
+- Use `load_imf_email()` more.
+- The message is sorted correctly in the chat even if it arrives late.
+
+### Miscellaneous Tasks
+
+- cargo: update rustls-webpki to 0.103.10.
+
## [2.47.0] - 2026-03-24
### Fixes
@@ -7984,3 +8040,4 @@ https://github.com/chatmail/core/pulls?q=is%3Apr+is%3Aclosed
[2.45.0]: https://github.com/chatmail/core/compare/v2.44.0..v2.45.0
[2.46.0]: https://github.com/chatmail/core/compare/v2.45.0..v2.46.0
[2.47.0]: https://github.com/chatmail/core/compare/v2.46.0..v2.47.0
+[2.48.0]: https://github.com/chatmail/core/compare/v2.47.0..v2.48.0
diff --git a/Cargo.lock b/Cargo.lock
index 1449080d8..b24c166eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1307,7 +1307,7 @@ dependencies = [
[[package]]
name = "deltachat"
-version = "2.48.0-dev"
+version = "2.48.0"
dependencies = [
"anyhow",
"astral-tokio-tar",
@@ -1416,7 +1416,7 @@ dependencies = [
[[package]]
name = "deltachat-jsonrpc"
-version = "2.48.0-dev"
+version = "2.48.0"
dependencies = [
"anyhow",
"async-channel 2.5.0",
@@ -1437,7 +1437,7 @@ dependencies = [
[[package]]
name = "deltachat-repl"
-version = "2.48.0-dev"
+version = "2.48.0"
dependencies = [
"anyhow",
"deltachat",
@@ -1453,7 +1453,7 @@ dependencies = [
[[package]]
name = "deltachat-rpc-server"
-version = "2.48.0-dev"
+version = "2.48.0"
dependencies = [
"anyhow",
"deltachat",
@@ -1482,7 +1482,7 @@ dependencies = [
[[package]]
name = "deltachat_ffi"
-version = "2.48.0-dev"
+version = "2.48.0"
dependencies = [
"anyhow",
"deltachat",
diff --git a/Cargo.toml b/Cargo.toml
index 1adc8d5b1..347b126b2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "deltachat"
-version = "2.48.0-dev"
+version = "2.48.0"
edition = "2024"
license = "MPL-2.0"
rust-version = "1.88"
diff --git a/STYLE.md b/STYLE.md
index ffc477ed7..7d97e7334 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -68,6 +68,12 @@ keyword doesn't help here.
Consider adding context to `anyhow` errors for SQL statements using `.context()` so that it's
possible to understand from logs which statement failed. See [Errors](#errors) for more info.
+When changing complex SQL queries, test them on a new database with `EXPLAIN QUERY PLAN`
+to make sure that indexes are used and large tables are not going to be scanned.
+Never run `ANALYZE` on the databases,
+this makes query planner unpredictable
+and may make performance significantly worse:
+
## Errors
Delta Chat core mostly uses [`anyhow`](https://docs.rs/anyhow/) errors.
diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
index 6e6d342c5..8d706d868 100644
--- a/deltachat-ffi/Cargo.toml
+++ b/deltachat-ffi/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "deltachat_ffi"
-version = "2.48.0-dev"
+version = "2.48.0"
description = "Deltachat FFI"
edition = "2018"
readme = "README.md"
diff --git a/deltachat-jsonrpc/Cargo.toml b/deltachat-jsonrpc/Cargo.toml
index aaee7988b..865fb039e 100644
--- a/deltachat-jsonrpc/Cargo.toml
+++ b/deltachat-jsonrpc/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "deltachat-jsonrpc"
-version = "2.48.0-dev"
+version = "2.48.0"
description = "DeltaChat JSON-RPC API"
edition = "2021"
license = "MPL-2.0"
diff --git a/deltachat-jsonrpc/typescript/package.json b/deltachat-jsonrpc/typescript/package.json
index 8ce7c4f01..c8ee203a5 100644
--- a/deltachat-jsonrpc/typescript/package.json
+++ b/deltachat-jsonrpc/typescript/package.json
@@ -54,5 +54,5 @@
},
"type": "module",
"types": "dist/deltachat.d.ts",
- "version": "2.48.0-dev"
+ "version": "2.48.0"
}
diff --git a/deltachat-repl/Cargo.toml b/deltachat-repl/Cargo.toml
index 7e92f7f26..8f5ecacb4 100644
--- a/deltachat-repl/Cargo.toml
+++ b/deltachat-repl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "deltachat-repl"
-version = "2.48.0-dev"
+version = "2.48.0"
license = "MPL-2.0"
edition = "2021"
repository = "https://github.com/chatmail/core"
diff --git a/deltachat-rpc-client/pyproject.toml b/deltachat-rpc-client/pyproject.toml
index dd6fde1e0..c8bb8c7c8 100644
--- a/deltachat-rpc-client/pyproject.toml
+++ b/deltachat-rpc-client/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "deltachat-rpc-client"
-version = "2.48.0-dev"
+version = "2.48.0"
license = "MPL-2.0"
description = "Python client for Delta Chat core JSON-RPC interface"
classifiers = [
diff --git a/deltachat-rpc-server/Cargo.toml b/deltachat-rpc-server/Cargo.toml
index d8a61a8c9..5386d5493 100644
--- a/deltachat-rpc-server/Cargo.toml
+++ b/deltachat-rpc-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "deltachat-rpc-server"
-version = "2.48.0-dev"
+version = "2.48.0"
description = "DeltaChat JSON-RPC server"
edition = "2021"
readme = "README.md"
diff --git a/deltachat-rpc-server/npm-package/package.json b/deltachat-rpc-server/npm-package/package.json
index 0644ba7a6..7556ae5d8 100644
--- a/deltachat-rpc-server/npm-package/package.json
+++ b/deltachat-rpc-server/npm-package/package.json
@@ -15,5 +15,5 @@
},
"type": "module",
"types": "index.d.ts",
- "version": "2.48.0-dev"
+ "version": "2.48.0"
}
diff --git a/python/pyproject.toml b/python/pyproject.toml
index a08579000..936252e9f 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "deltachat"
-version = "2.48.0-dev"
+version = "2.48.0"
license = "MPL-2.0"
description = "Python bindings for the Delta Chat Core library using CFFI against the Rust-implemented libdeltachat"
readme = "README.rst"
diff --git a/release-date.in b/release-date.in
index 50ded3194..a502bb90f 100644
--- a/release-date.in
+++ b/release-date.in
@@ -1 +1 @@
-2026-03-24
\ No newline at end of file
+2026-03-30
\ No newline at end of file
diff --git a/src/chat.rs b/src/chat.rs
index 971cca5df..7f296f9ca 100644
--- a/src/chat.rs
+++ b/src/chat.rs
@@ -477,12 +477,17 @@ impl ChatId {
/// Adds message "Messages are end-to-end encrypted".
pub(crate) async fn add_e2ee_notice(self, context: &Context, timestamp: i64) -> Result<()> {
let text = stock_str::messages_e2ee_info_msg(context);
+
+ // Sort this notice to the very beginning of the chat.
+ // We don't want any message to appear before this notice
+ // which is normally added when encrypted chat is created.
+ let sort_timestamp = 0;
add_info_msg_with_cmd(
context,
self,
&text,
SystemMessage::ChatE2ee,
- Some(timestamp),
+ Some(sort_timestamp),
timestamp,
None,
None,
@@ -925,6 +930,17 @@ SELECT id, rfc724_mid, pre_rfc724_mid, timestamp, ?, 1 FROM msgs WHERE chat_id=?
.unwrap_or(0))
}
+ /// Returns timestamp of us joining the chat if we are the member of the chat.
+ pub(crate) async fn join_timestamp(self, context: &Context) -> Result