From 128772bb219e509dba2eea3d9080c5c880aae57a Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 21 May 2026 13:11:53 +0200 Subject: [PATCH] Add tuta-sdk as submodule, use SDK blob reading API - Add tuta-repo as git submodule pointing to spartanz51/tutanota branch feat/rust-sdk-blob-read (pending upstream PR) - Remove inline load_mail_details_blob hack, call through mail_facade().load_mail_details_blob() instead - Remove /tuta-repo from .gitignore since it's now a submodule --- .gitignore | 1 - .gitmodules | 4 ++++ src/tuta.rs | 2 +- tuta-repo | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 tuta-repo diff --git a/.gitignore b/.gitignore index 70fdea0..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /target -/tuta-repo diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..84edd70 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "tuta-repo"] + path = tuta-repo + url = https://github.com/spartanz51/tutanota.git + branch = feat/rust-sdk-blob-read diff --git a/src/tuta.rs b/src/tuta.rs index aa72cee..7cd7681 100644 --- a/src/tuta.rs +++ b/src/tuta.rs @@ -85,7 +85,7 @@ impl TutaSession { mail: &Mail, ) -> Result, ApiCallError> { if mail.mailDetails.is_some() { - let blob = self.logged_in.load_mail_details_blob(mail).await?; + let blob = self.logged_in.mail_facade().load_mail_details_blob(mail).await?; Ok(Some(blob)) } else { Ok(None) diff --git a/tuta-repo b/tuta-repo new file mode 160000 index 0000000..e61ea25 --- /dev/null +++ b/tuta-repo @@ -0,0 +1 @@ +Subproject commit e61ea250586bfe7075d799fc76c3d869add5afb1