Rename to inbuxa-migrate
The crate, binary, library path and every name the tool writes or reads become inbuxa-migrate: the CLI name and about text, the HTTP user agent, the credential variables (INBUXA_MIGRATE_PASSWORD, _TOKEN, _EWS_CLIENT_SECRET and _GRAPH_TOKEN, with no fallback to the old names), thread names, synthesized UIDs and calendar addresses (urn:x-inbuxa-migrate:attendee:), and the Maildir file suffix used by the export script. This is a new tool, so archives written by Vandelay are not read back. The version moves to the date scheme the release tags use (2026.9.30), and the package metadata points at the inbuxa-migrate repository. The cargo-dist and MSI metadata goes with the release tooling it served. Modified files carry an added copyright line; the original notices stay.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
||||
* SPDX-FileCopyrightText: 2026 John Coffey <[email protected]>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*/
|
||||
@@ -53,7 +54,7 @@ fn build_event_map(raw: &CalendarItemRaw, iana: Option<&str>) -> Map<String, Val
|
||||
event.insert(
|
||||
"uid".to_owned(),
|
||||
Value::String(format!(
|
||||
"vandelay-ews-event-{}",
|
||||
"inbuxa-migrate-ews-event-{}",
|
||||
blake3::hash(raw.id.id.as_bytes()).to_hex()
|
||||
)),
|
||||
);
|
||||
@@ -723,7 +724,7 @@ mod tests {
|
||||
.unwrap();
|
||||
let addr = p["calendarAddress"].as_str().unwrap();
|
||||
assert!(
|
||||
addr.starts_with("urn:x-vandelay:attendee:"),
|
||||
addr.starts_with("urn:x-inbuxa-migrate:attendee:"),
|
||||
"a name-only attendee gets a stable synthetic calendarAddress, got {addr}"
|
||||
);
|
||||
assert!(
|
||||
@@ -771,7 +772,7 @@ mod tests {
|
||||
let v = to_jscalendar(&raw).data;
|
||||
let org_addr = v["organizerCalendarAddress"].as_str().unwrap();
|
||||
assert!(
|
||||
org_addr.starts_with("urn:x-vandelay:attendee:") && !org_addr.contains("mailto:"),
|
||||
org_addr.starts_with("urn:x-inbuxa-migrate:attendee:") && !org_addr.contains("mailto:"),
|
||||
"an EX organizer must not become mailto:/o=.../cn=...; got {org_addr}"
|
||||
);
|
||||
let att = v["participants"]
|
||||
@@ -921,7 +922,7 @@ mod tests {
|
||||
let v = to_jscalendar(&raw).data;
|
||||
let addr = v["organizerCalendarAddress"].as_str().unwrap();
|
||||
assert!(
|
||||
addr.starts_with("urn:x-vandelay:attendee:"),
|
||||
addr.starts_with("urn:x-inbuxa-migrate:attendee:"),
|
||||
"an unresolvable directory reference stays synthetic, got {addr}"
|
||||
);
|
||||
let participants = v["participants"].as_object().unwrap();
|
||||
@@ -947,7 +948,7 @@ mod tests {
|
||||
v["organizerCalendarAddress"]
|
||||
.as_str()
|
||||
.unwrap()
|
||||
.starts_with("urn:x-vandelay:attendee:")
|
||||
.starts_with("urn:x-inbuxa-migrate:attendee:")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user