Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Repair the probe, and record what note formatting actually is

Yashwanth Kamireddib78d955f9a40
diff --git a/probe/src/main.rs b/probe/src/main.rs
index e73b4bf..101217d 100644
--- a/probe/src/main.rs
+++ b/probe/src/main.rs
@@ -665,16 +665,14 @@ async fn main() -> Result<()> {
if kind == "Note" {
println!(" text={:?}", decode("TextDataEncrypted"));
}
- // Emit any body that will not decode, so its shape can be read
- // directly rather than guessed at.
- if kind == "Note"
- && quince_icloud::cloudkit::field::document_text(r, "TextDataEncrypted")
- .is_none()
- {
+ // Emit a small body so its attribute runs can be read directly.
+ if kind == "Note" {
if let Some(raw) =
quince_icloud::cloudkit::field::string(r, "TextDataEncrypted")
{
- println!(" BODY_B64 {raw}");
+ if raw.len() < 1200 {
+ println!(" BODY_B64 {raw}");
+ }
}
}
}