From 646c8f48dfcaa2df5ed02db2a20084b9d24b3e45 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:32:41 +0100 Subject: [PATCH 01/11] #209: read a remembered DAV password of its own where it is used Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/ui-egui/src/dav_job.rs | 6 + crates/ui-egui/src/dav_secret_read.rs | 119 +++++++++++++++ crates/ui-egui/src/dav_secret_read_tests.rs | 161 ++++++++++++++++++++ crates/ui-egui/src/lib.rs | 3 + crates/ui-egui/src/secrets_binding_tests.rs | 3 + 5 files changed, 292 insertions(+) create mode 100644 crates/ui-egui/src/dav_secret_read.rs create mode 100644 crates/ui-egui/src/dav_secret_read_tests.rs diff --git a/crates/ui-egui/src/dav_job.rs b/crates/ui-egui/src/dav_job.rs index c6545b840c..ddbfeaae52 100644 --- a/crates/ui-egui/src/dav_job.rs +++ b/crates/ui-egui/src/dav_job.rs @@ -93,6 +93,8 @@ pub(crate) struct DavSync { /// their settings then: said once while runs keep finding it so, again after a run that /// didn't or once the settings were put away or changed. full_said: HashMap, + /// The reads of the store for the passwords the jobs need (`dav_secret_read.rs`). + pub(crate) secrets: crate::dav_secret_read::DavSecretRead, } impl DavSync { @@ -192,6 +194,10 @@ impl MailApp { { return; } + // (A password of their own that the store may have is read first, off the window's thread.) + if self.dav_secrets_first() { + return; + } self.dav.next = now + EVERY; // Accounts to pass over: one in its back-off, or whose server refused what it would be // given now (left alone for hours, and until it has other passwords). diff --git a/crates/ui-egui/src/dav_secret_read.rs b/crates/ui-egui/src/dav_secret_read.rs new file mode 100644 index 0000000000..90972e3326 --- /dev/null +++ b/crates/ui-egui/src/dav_secret_read.rs @@ -0,0 +1,119 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Reading a remembered calendar and contacts password where it is used (#209): by the DAV job, +//! before it starts, for the origins of an account whose servers have a password of their own. +//! +//! The store may be locked, and asking it then waits on the owner (`secret_read.rs`): so the +//! window never asks it, a thread of its own does. Each name is asked once in a session +//! ([`DavSecretRead::asked`]): a miss stays a miss until the settings name another (a user name +//! or certificate changed), so a locked store doesn't put its prompt in front of the owner at +//! every job. Nothing is asked while remembering is off, for a mailbox nobody has confirmed, after +//! Remove all data, or for a name with a forget pending. What comes back is taken only while the +//! settings still give its name and no forget is pending for it; it goes where the opening read's +//! answers go (`MailApp::secret_cache`), where `MailApp::dav_password_from` finds it. + +use std::collections::HashSet; +use std::sync::mpsc::{self, Receiver}; + +use crate::{MailApp, StoreTrouble}; + +/// What one read brings: each name asked, with what was found under it, and why the store +/// couldn't be used, when it said. +type Brought = (Vec<(String, Option)>, Option); + +/// Most names one read asks for: a mailbox's accounts and their origins are few, and a file can't +/// make a read grow. +const MOST: usize = 64; + +/// What the DAV job remembers of its reads of the store, for one opening of the mailbox. +#[derive(Default)] +pub(crate) struct DavSecretRead { + /// The names asked this session, whatever came back. + asked: HashSet, + /// The read under way: what it brings, name by name. + reading: Option>, +} + +impl MailApp { + /// The names the job would need from the store now: for each account whose servers have a + /// password of their own, each origin of its homes that has none in this session. + fn dav_names_to_read(&self) -> Vec { + let mut names = Vec::new(); + for a in &self.session.mailbox.accounts { + let Some(server) = a.dav.as_ref().filter(|d| d.separate_password) else { continue }; + for origin in server.home_origins() { + if self.dav_passwords.contains_key(&(a.id, origin.clone())) { + continue; + } + if let Some(key) = Self::dav_secret_key(a, &origin) + && !self.secret_cache.contains_key(&key) + && !self.dav.secrets.asked.contains(&key) + && !self.dav_forget_pending(&key) + && !names.contains(&key) + { + names.push(key); + } + } + } + names.truncate(MOST); + names + } + + /// Before a job: take in a read of the store that came back, and start one for the names the + /// job would need. Whether the job is to wait (a read is under way). + pub(crate) fn dav_secrets_first(&mut self) -> bool { + if let Some(receive) = &self.dav.secrets.reading { + let (answers, trouble) = match receive.try_recv() { + Ok(brought) => brought, + Err(mpsc::TryRecvError::Empty) => return true, + // (The thread ended without an answer: nothing was found.) + Err(mpsc::TryRecvError::Disconnected) => (Vec::new(), None), + }; + self.dav.secrets.reading = None; + self.take_in_dav_secrets(answers); + if let Some(trouble) = trouble { + self.note_secret_trouble(trouble); + } + } + if !self.ui.remember_sign_in || self.unconfirmed || self.data_removed { + return false; + } + let Some(store) = self.services.secrets.clone() else { return false }; + let names = self.dav_names_to_read(); + if names.is_empty() { + return false; + } + self.dav.secrets.asked.extend(names.iter().cloned()); + let (send, receive) = mpsc::channel(); + let job = std::thread::Builder::new().name("dav-secret-read".into()).spawn(move || { + let answers = names.into_iter().map(|key| (key.clone(), store.get(&key).filter(|s| !s.is_empty()))).collect(); + let _ = send.send((answers, store.take_trouble())); + }); + match job { + Ok(_) => { + self.dav.secrets.reading = Some(receive); + true + } + Err(e) => { + log::warn!("couldn't start reading the credential store: {e}"); + false + } + } + } + + /// Take in what the store gave, for the names the settings still give and no forget is + /// pending for. + fn take_in_dav_secrets(&mut self, answers: Vec<(String, Option)>) { + let now: HashSet = self.session.mailbox.accounts.iter().flat_map(Self::dav_secret_keys).collect(); + for (key, secret) in answers { + if !now.contains(&key) || self.dav_forget_pending(&key) { + continue; + } + if let Some(secret) = secret { + // Noted, as one the opening read brings is, so that Remove all data finds it. + self.index_secret_key(key.clone()); + self.secret_cache.insert(key, secret); + } + } + } +} diff --git a/crates/ui-egui/src/dav_secret_read_tests.rs b/crates/ui-egui/src/dav_secret_read_tests.rs new file mode 100644 index 0000000000..29f68ef764 --- /dev/null +++ b/crates/ui-egui/src/dav_secret_read_tests.rs @@ -0,0 +1,161 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! A remembered password of their own for an account's calendar servers (#209), read where it is +//! used: by the DAV job, off the window's thread, each name once in a session. + +use std::collections::HashMap; +use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::{Arc, Mutex}; +use std::time::Duration; + +use mailcraft_engine::Session; +use mailcraft_host::SecretError; +use mailcraft_model::{DavDownload, Id}; +use serde_json::json; + +use crate::{DavDone, DavJob, MailApp, SecretStore, Services}; + +const NOW: i64 = 1_791_993_600; +const HOME: &str = "https://dav.example.org"; + +/// A store that keeps what it is given and counts how often it is asked. +#[derive(Default)] +struct Store { + held: Mutex>, + asked: AtomicUsize, +} + +impl SecretStore for Store { + fn get(&self, key: &str) -> Option { + self.asked.fetch_add(1, Ordering::SeqCst); + self.held.lock().ok()?.get(key).cloned() + } + fn set(&self, key: &str, secret: &str) -> Result<(), SecretError> { + self.held.lock().map_err(|_| SecretError::Refused)?.insert(key.into(), secret.into()); + Ok(()) + } + fn delete(&self, key: &str) { + if let Ok(mut held) = self.held.lock() { + held.remove(key); + } + } +} + +type Sent = Arc>>>; + +/// A window with one account whose calendar server has a password of its own (or shares the +/// mail one), a store, and a host that notes the passwords each job was given. +fn app(store: &Arc, separate: bool) -> (MailApp, Id, Sent) { + let session = Session::at(mailcraft_engine::sample::mailbox(NOW, 0), NOW, 0); + let services = Services { secrets: Some(store.clone()), ..Services::default() }; + let mut a = MailApp::new(session, services); + a.autosave = false; + a.session.dav_enabled = true; + let id = a.execute("account.add", json!({"email": "ada@example.org", "incoming": {"host": "imap.example.org"}})).unwrap()["id"].as_u64().unwrap(); + a.execute("account.davSet", json!({"id": id, "calendarHomes": [format!("{HOME}/cal/ada/")], "separatePassword": separate})).unwrap(); + let sent: Sent = Arc::default(); + let seen = sent.clone(); + a.services.dav = Some(Box::new(move |job: DavJob| { + seen.lock().unwrap().push(job.passwords.clone()); + let (send, receive) = std::sync::mpsc::channel(); + let download = DavDownload { account: job.ask.account, email: job.ask.email.clone(), server: job.ask.server.clone(), ..Default::default() }; + send.send(DavDone { download }).unwrap(); + receive + })); + (a, id, sent) +} + +fn key(a: &MailApp, id: Id) -> String { + MailApp::dav_secret_key(a.session.mailbox.account(id).unwrap(), HOME).unwrap() +} + +/// Tick until a job has started (or give up: none was to start). +fn until_a_job(a: &mut MailApp, sent: &Sent) { + for _ in 0..2_000 { + a.dav_tick(); + if !sent.lock().unwrap().is_empty() { + return; + } + std::thread::sleep(Duration::from_millis(1)); + } +} + +#[test] +fn a_remembered_password_of_their_own_is_read_and_given_to_the_job() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = app(&store, true); + store.set(&key(&a, id), "own").unwrap(); + until_a_job(&mut a, &sent); + let sent = sent.lock().unwrap(); + assert_eq!(sent.len(), 1); + assert_eq!(sent[0].get(HOME).map(String::as_str), Some("own")); + assert!(a.ui.remembered_keys.contains(&key(&a, id)), "noted for Remove all data"); +} + +#[test] +fn a_name_is_asked_once_a_session_and_a_miss_stays_a_miss() { + let store = Arc::new(Store::default()); + let (mut a, _, sent) = app(&store, true); + until_a_job(&mut a, &sent); + assert_eq!(store.asked.load(Ordering::SeqCst), 1); + assert_eq!(sent.lock().unwrap()[0].len(), 0, "nothing to give"); + // The next jobs don't ask again (a locked store would prompt at every one). + a.dav.next = 0.0; + a.dav.trouble.clear(); + a.dav_tick(); + a.dav_tick(); + assert_eq!(store.asked.load(Ordering::SeqCst), 1); +} + +#[test] +fn another_user_name_asks_for_its_own_name_and_never_gets_the_old_one() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = app(&store, true); + let old = key(&a, id); + store.set(&old, "old").unwrap(); + a.execute("account.davSet", json!({"id": id, "username": "grace"})).unwrap(); + let new = key(&a, id); + assert_ne!(old, new); + until_a_job(&mut a, &sent); + assert_eq!(sent.lock().unwrap()[0].get(HOME), None); + assert!(!a.secret_cache.contains_key(&old)); +} + +#[test] +fn nothing_is_asked_while_remembering_is_off_or_for_a_mailbox_nobody_confirmed() { + for off in [true, false] { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = app(&store, true); + store.set(&key(&a, id), "own").unwrap(); + if off { + a.ui.remember_sign_in = false; + } else { + a.unconfirmed = true; + } + until_a_job(&mut a, &sent); + assert_eq!(store.asked.load(Ordering::SeqCst), 0); + assert!(sent.lock().unwrap().iter().all(|passwords| passwords.is_empty())); + } +} + +#[test] +fn a_name_with_a_forget_pending_is_not_asked() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = app(&store, true); + let k = key(&a, id); + store.set(&k, "own").unwrap(); + a.dav_forget_queue.push(k.clone()); + until_a_job(&mut a, &sent); + assert_eq!(store.asked.load(Ordering::SeqCst), 0); + assert!(!a.secret_cache.contains_key(&k)); +} + +#[test] +fn servers_that_share_the_mail_password_need_nothing_read() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = app(&store, false); + a.passwords.insert(id, "mail".into()); + until_a_job(&mut a, &sent); + assert_eq!(store.asked.load(Ordering::SeqCst), 0); + assert_eq!(sent.lock().unwrap()[0].get(HOME).map(String::as_str), Some("mail")); +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 57a61f0e0b..cddf3adb3f 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -101,6 +101,9 @@ pub mod dates; mod dav_job; #[cfg(test)] mod dav_job_tests; +mod dav_secret_read; +#[cfg(test)] +mod dav_secret_read_tests; #[cfg(test)] mod dav_secrets_tests; #[cfg(test)] diff --git a/crates/ui-egui/src/secrets_binding_tests.rs b/crates/ui-egui/src/secrets_binding_tests.rs index f8f4e1e495..e6fda3bbe6 100644 --- a/crates/ui-egui/src/secrets_binding_tests.rs +++ b/crates/ui-egui/src/secrets_binding_tests.rs @@ -362,6 +362,9 @@ fn the_secret_cache_and_the_old_names_are_used_only_where_they_are_listed() { // A calendar server's password for one origin, found by the name that holds the account's // address, the origin, the user name and the pin (`dav_password`, #209): one read. ("dav_job.rs", "secret_cache.get(", 1), + // Whether that password is still to be read from the store by the DAV job, where it is + // used (`dav_names_to_read`, #209): one look, never a read of the value. + ("dav_secret_read.rs", "secret_cache.contains_key(", 1), ]; let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src"); let mut stack = vec![root.clone()]; From 8eeba12a51f72a76d2b2a9345d1c6382fb0bba3f Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:42:33 +0100 Subject: [PATCH 02/11] #209 D7: ask for a calendar server's password, remember it once taken, read it back Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/i18n/po/cs.po | 39 +++++- crates/i18n/po/de.po | 39 +++++- crates/i18n/po/es.po | 39 +++++- crates/i18n/po/fr.po | 39 +++++- crates/i18n/po/hu.po | 39 +++++- crates/i18n/po/it.po | 39 +++++- crates/i18n/po/ka.po | 39 +++++- crates/i18n/po/messages.pot | 39 +++++- crates/i18n/po/nl.po | 39 +++++- crates/i18n/po/pl.po | 39 +++++- crates/i18n/po/ro.po | 39 +++++- crates/i18n/po/zh_CN.po | 39 +++++- crates/ui-egui/src/backstage.rs | 2 + crates/ui-egui/src/dav_job.rs | 16 ++- crates/ui-egui/src/dav_password_ask.rs | 130 ++++++++++++++++++ crates/ui-egui/src/dav_password_ask_tests.rs | 68 +++++++++ crates/ui-egui/src/dav_secret_read.rs | 34 ++++- crates/ui-egui/src/dav_secret_read_tests.rs | 77 ++++++++++- crates/ui-egui/src/dialogs.rs | 9 ++ crates/ui-egui/src/lib.rs | 3 + crates/ui-egui/src/secrets_binding_tests.rs | 3 + .../log.d/ROADMAP/progress/209-d7-password.md | 1 + 22 files changed, 778 insertions(+), 33 deletions(-) create mode 100644 crates/ui-egui/src/dav_password_ask.rs create mode 100644 crates/ui-egui/src/dav_password_ask_tests.rs create mode 100644 docs/log.d/ROADMAP/progress/209-d7-password.md diff --git a/crates/i18n/po/cs.po b/crates/i18n/po/cs.po index f8d75e7563..558b6769e8 100644 --- a/crates/i18n/po/cs.po +++ b/crates/i18n/po/cs.po @@ -2822,6 +2822,11 @@ msgstr "Kontrola připojení kalendáře" msgid "Calendar Listed Twice" msgstr "Kalendář uveden dvakrát" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5565,6 +5570,11 @@ msgstr "Končí dne" msgid "Ends on a day" msgstr "Končí v určitý den" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6670,6 +6680,11 @@ msgstr "Stránka GitHubu je otevřená: zkontrolujte ji a pak odešlete. MailCra msgid "Give it a title first" msgstr "Nejprve zadejte název" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9042,7 +9057,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft uchovává nejvýše {n} zde importovaných klíčů a tolik jich už má: odeberte jeden, který nepoužíváte, a pak importujte tento." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft ho uchovává v paměti, dokud aplikaci nezavřete. Nikdy se nezapisuje na disk." @@ -11569,7 +11584,7 @@ msgid "Numbering" msgstr "Číslování" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11736,6 +11751,11 @@ msgstr "Až to správce schválí, zkuste to znovu: přihlášení pak projde." msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Jakmile to bude fungovat, úložiště přihlašovacích údajů systému si ho uchová pro příště. Nikdy se nezapisuje do poštovní schránky." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12548,6 +12568,11 @@ msgstr "Heslo" msgid "Password for {account}" msgstr "Heslo pro {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17597,6 +17622,11 @@ msgstr "" "\n" "Odebrat kopii otevřenou podle adresy? Druhá zůstane a na serveru se nic nezmění." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17621,6 +17651,11 @@ msgstr "Kalendářový server účtu {account} odmítl přihlášení. MailCraft msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Kalendář {name} a jeho události uchovávané v tomto počítači budou odstraněny, stejně jako adresa, která se pro něj uchovává. Nikam se nic neodešle; k odběru se můžete znovu přihlásit pomocí adresy." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/de.po b/crates/i18n/po/de.po index 13e08415b9..a3e9c79b00 100644 --- a/crates/i18n/po/de.po +++ b/crates/i18n/po/de.po @@ -2681,6 +2681,11 @@ msgstr "Prüfung der Kalenderverbindung" msgid "Calendar Listed Twice" msgstr "Kalender doppelt aufgeführt" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5268,6 +5273,11 @@ msgstr "Endet am" msgid "Ends on a day" msgstr "Endet an einem Tag" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6287,6 +6297,11 @@ msgstr "Die GitHub-Seite ist geöffnet: Überprüfen Sie Ihren Beitrag und sende msgid "Give it a title first" msgstr "Geben Sie zuerst einen Titel ein" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs msgid "Give the report a title, on one line and in 200 characters at most." @@ -8482,7 +8497,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft speichert höchstens {n} hier importierte Schlüssel und hat diese Anzahl bereits erreicht: Entfernen Sie einen Schlüssel, den Sie nicht verwenden, und importieren Sie dann diesen." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft hält es im Arbeitsspeicher, bis Sie die App schließen. Es wird nie auf den Datenträger geschrieben." @@ -10865,7 +10880,7 @@ msgid "Numbering" msgstr "Nummerierung" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11018,6 +11033,11 @@ msgstr "Sobald ein Administrator genehmigt hat, versuchen Sie es erneut: Dann kl msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Sobald es funktioniert hat, bewahrt der Anmeldeinformationsspeicher Ihres Systems es für das nächste Mal auf. Es wird nie in das Postfach geschrieben." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -11780,6 +11800,11 @@ msgstr "Kennwort" msgid "Password for {account}" msgstr "Kennwort für {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs msgid "Password:" @@ -16548,6 +16573,11 @@ msgstr "" "\n" "Die über die Adresse geöffnete Kopie entfernen? Der andere Kalender bleibt erhalten und auf dem Server wird nichts geändert." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -16572,6 +16602,11 @@ msgstr "Der Kalenderserver von {account} hat die Anmeldung nicht angenommen. Mai msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Der Kalender {name} und seine auf diesem Computer gespeicherten Termine werden entfernt, ebenso die dafür gespeicherte Adresse. Es wird nichts gesendet; Sie können mit der Adresse erneut abonnieren." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/es.po b/crates/i18n/po/es.po index 0f0f7e3eef..84eb120a7d 100644 --- a/crates/i18n/po/es.po +++ b/crates/i18n/po/es.po @@ -2827,6 +2827,11 @@ msgstr "Comprobación de la conexión del calendario" msgid "Calendar Listed Twice" msgstr "Calendario listado dos veces" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5566,6 +5571,11 @@ msgstr "Termina el" msgid "Ends on a day" msgstr "Termina un día" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6662,6 +6672,11 @@ msgstr "La página de GitHub está abierta: revísela y envíela. MailCraft no e msgid "Give it a title first" msgstr "Ponle primero un título" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9026,7 +9041,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserva como máximo {n} claves importadas aquí, y ya tiene ese número: quite una que no use e importe esta." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft la guarda en memoria hasta que cierre la aplicación. Nunca se escribe en el disco." @@ -11553,7 +11568,7 @@ msgid "Numbering" msgstr "Numeración" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "Aceptar" @@ -11720,6 +11735,11 @@ msgstr "Cuando un administrador lo haya aprobado, vuelva a intentarlo: entonces msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Cuando haya funcionado, el almacén de credenciales de su sistema la guarda para la próxima vez. Nunca se escribe en el buzón." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12534,6 +12554,11 @@ msgstr "Contraseña" msgid "Password for {account}" msgstr "Contraseña de {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17575,6 +17600,11 @@ msgstr "" "\n" "¿Quitar la copia abierta por dirección? La otra se mantiene y no cambia nada en el servidor." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17599,6 +17629,11 @@ msgstr "El servidor de calendario de {account} no aceptó el inicio de sesión. msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Se quitarán el calendario {name} y sus eventos guardados en este equipo, y también la dirección guardada para él. No se envía nada a ninguna parte; puede volver a suscribirse con la dirección." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/fr.po b/crates/i18n/po/fr.po index 9da7a3a13d..bbbe7ddace 100644 --- a/crates/i18n/po/fr.po +++ b/crates/i18n/po/fr.po @@ -2820,6 +2820,11 @@ msgstr "Vérification de la connexion du calendrier" msgid "Calendar Listed Twice" msgstr "Calendrier listé deux fois" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5544,6 +5549,11 @@ msgstr "Se termine le" msgid "Ends on a day" msgstr "Se termine un jour donné" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6634,6 +6644,11 @@ msgstr "La page de GitHub est ouverte : vérifiez-la, puis envoyez. MailCraft n' msgid "Give it a title first" msgstr "Donnez-lui d'abord un titre" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -8986,7 +9001,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserve au plus {n} clés importées ici, et en a déjà autant : supprimez-en une que vous n'utilisez pas, puis importez celle-ci." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft le garde en mémoire jusqu'à la fermeture de l'application. Il n'est jamais écrit sur le disque." @@ -11506,7 +11521,7 @@ msgid "Numbering" msgstr "Numérotation" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11672,6 +11687,11 @@ msgstr "Une fois l'approbation d'un administrateur obtenue, réessayez : la co msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Une fois qu'il a fonctionné, le magasin d'identifiants de votre système le conserve pour la prochaine fois. Il n'est jamais écrit dans la boîte aux lettres." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12483,6 +12503,11 @@ msgstr "Mot de passe" msgid "Password for {account}" msgstr "Mot de passe de {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17492,6 +17517,11 @@ msgstr "" "\n" "Supprimer la copie ouverte par adresse ? L'autre reste, et rien ne change sur le serveur." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17516,6 +17546,11 @@ msgstr "Le serveur de calendrier de {account} n’a pas accepté la connexion. M msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Le calendrier {name} et ses événements conservés sur cet ordinateur seront supprimés, ainsi que l'adresse conservée pour lui. Rien n'est envoyé nulle part ; vous pouvez vous réabonner avec l'adresse." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/hu.po b/crates/i18n/po/hu.po index 1d1762159f..282278c0b9 100644 --- a/crates/i18n/po/hu.po +++ b/crates/i18n/po/hu.po @@ -2828,6 +2828,11 @@ msgstr "Naptári kapcsolatellenőrzés" msgid "Calendar Listed Twice" msgstr "Naptári lista kétszer" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5560,6 +5565,11 @@ msgstr "Befejezés dátuma" msgid "Ends on a day" msgstr "Egy napon ér véget" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6650,6 +6660,11 @@ msgstr "GitHub oldala nyitva van: ellenőrizze, majd adja be. MailCraft nem kül msgid "Give it a title first" msgstr "Először adjon meg egy címet" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9021,7 +9036,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft tartja a legtöbb {n} kulcsok importált itt, és ennyi: távolítsa el egyet nem használ, majd importálni ezt." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft tartja emlékezetben, amíg nem zárja be az alkalmazást. Ez soha nem íródott lemezre." @@ -11545,7 +11560,7 @@ msgid "Numbering" msgstr "Számozás" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11712,6 +11727,11 @@ msgstr "Ha egy adminisztrátor jóváhagyta, próbálja újra: a bejelentkezést msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Ha már működött, a rendszer hiteles boltja legközelebb megtartja." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12526,6 +12546,11 @@ msgstr "Jelszó" msgid "Password for {account}" msgstr "Jelszó {account} számára" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17568,6 +17593,11 @@ msgstr "" "\n" "Címre is megnyitottad, így kétszer is ott van. A másik a címre nyitott másolatot távolítsd el? A másik marad, és a szerveren semmi változás." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17592,6 +17622,11 @@ msgstr "A(z) {account} naptárkiszolgálója nem fogadta el a bejelentkezést. A msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "A(z) {name} naptár és az ezen a számítógépen tárolt eseményei törlődnek, a hozzá tárolt címmel együtt. Semmi nem kerül elküldésre; a címmel újra előfizethet." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/it.po b/crates/i18n/po/it.po index 1c411f3c48..d647c7d367 100644 --- a/crates/i18n/po/it.po +++ b/crates/i18n/po/it.po @@ -2823,6 +2823,11 @@ msgstr "Verifica connessione calendario" msgid "Calendar Listed Twice" msgstr "Calendario elencato due volte" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5562,6 +5567,11 @@ msgstr "Termina il" msgid "Ends on a day" msgstr "Termina in un giorno" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6658,6 +6668,11 @@ msgstr "La pagina di GitHub è aperta: controllala, poi invia. MailCraft non ha msgid "Give it a title first" msgstr "Prima dagli un titolo" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9021,7 +9036,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserva al massimo {n} chiavi importate qui, e le ha già: rimuovine una che non usi, poi importa questa." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft la conserva in memoria fino alla chiusura dell'app. Non viene mai scritta su disco." @@ -11545,7 +11560,7 @@ msgid "Numbering" msgstr "Elenco numerato" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11712,6 +11727,11 @@ msgstr "Dopo l'approvazione di un amministratore, riprovare: l'accesso andrà a msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Dopo che ha funzionato, l'archivio credenziali del sistema la conserva per la volta successiva. Non viene mai scritta nella cassetta postale." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12526,6 +12546,11 @@ msgstr "Password" msgid "Password for {account}" msgstr "Password per {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17555,6 +17580,11 @@ msgstr "" "\n" "Rimuovere la copia aperta per indirizzo? L'altra resta e sul server non cambia nulla." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17579,6 +17609,11 @@ msgstr "Il server del calendario di {account} non ha accettato l’accesso. Mail msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Il calendario {name} e i suoi eventi conservati su questo computer verranno rimossi, così come l'indirizzo conservato per esso. Non viene inviato nulla; puoi iscriverti di nuovo con l'indirizzo." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/ka.po b/crates/i18n/po/ka.po index 2db29afb9d..2268e9b904 100644 --- a/crates/i18n/po/ka.po +++ b/crates/i18n/po/ka.po @@ -2817,6 +2817,11 @@ msgstr "კალენდრის კავშირის შემოწმ msgid "Calendar Listed Twice" msgstr "კალენდარი ორჯერაა სიაში" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5554,6 +5559,11 @@ msgstr "მთავრდება" msgid "Ends on a day" msgstr "მთავრდება გარკვეულ დღეს" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6647,6 +6657,11 @@ msgstr "GitHub-ის გვერდი გახსნილია: შეა msgid "Give it a title first" msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9002,7 +9017,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft აქ იმპორტირებულ მაქსიმუმ {n} გასაღებს ინახავს და ამდენი უკვე აქვს: წაშალეთ ერთი, რომელსაც არ იყენებთ, შემდეგ კი ეს იმპორტირეთ." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft მას მეხსიერებაში ინახავს, სანამ აპლიკაციას დახურავთ. დისკზე ის არასოდეს იწერება." @@ -11518,7 +11533,7 @@ msgid "Numbering" msgstr "დანომვრა" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11685,6 +11700,11 @@ msgstr "ადმინისტრატორის დამტკიცე msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "როგორც კი იმუშავებს, თქვენი სისტემის ავტორიზაციის მონაცემების საცავი მას შემდეგი ჯერისთვის შეინახავს. საფოსტო ყუთში ის არასოდეს იწერება." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12495,6 +12515,11 @@ msgstr "პაროლი" msgid "Password for {account}" msgstr "პაროლი: {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17506,6 +17531,11 @@ msgstr "" "\n" "წაიშალოს მისამართით გახსნილი ასლი? მეორე რჩება და სერვერზე არაფერი იცვლება." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17530,6 +17560,11 @@ msgstr "{account}-ის კალენდრის სერვერმა msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "კალენდარი {name} და ამ კომპიუტერზე შენახული მისი ღონისძიებები წაიშლება, ასევე მისთვის შენახული მისამართიც. არსად არაფერი იგზავნება; მისამართით შეგიძლიათ ხელახლა გამოიწეროთ." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/messages.pot b/crates/i18n/po/messages.pot index 2837d03d98..235ccc6176 100644 --- a/crates/i18n/po/messages.pot +++ b/crates/i18n/po/messages.pot @@ -2351,6 +2351,11 @@ msgstr "" msgid "Calendar Listed Twice" msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs msgid "Calendar and Contacts Changes to Send" @@ -4624,6 +4629,11 @@ msgstr "" msgid "Ends on a day" msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs msgid "Enter a date and a time." @@ -5531,6 +5541,11 @@ msgstr "" msgid "Give it a title first" msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs msgid "Give the report a title, on one line and in 200 characters at most." @@ -7495,7 +7510,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "" @@ -9584,7 +9599,7 @@ msgid "Numbering" msgstr "" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs msgid "OK" msgstr "" @@ -9723,6 +9738,11 @@ msgstr "" msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs msgid "One occurrence of a series can't be in another calendar than the rest of the series." @@ -10400,6 +10420,11 @@ msgstr "" msgid "Password for {account}" msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs msgid "Password:" @@ -14575,6 +14600,11 @@ msgid "" "Remove the copy opened by address? The other one stays, and nothing on the server changes." msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs msgid "The calendar server of {account} answered with errors, so some events may be out of date. MailCraft will try again later." @@ -14595,6 +14625,11 @@ msgstr "" msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs msgid "The categories couldn't be kept in step: the job stopped unexpectedly" diff --git a/crates/i18n/po/nl.po b/crates/i18n/po/nl.po index 213134f273..7b14efd8f5 100644 --- a/crates/i18n/po/nl.po +++ b/crates/i18n/po/nl.po @@ -2737,6 +2737,11 @@ msgstr "Controle van de agendaverbinding" msgid "Calendar Listed Twice" msgstr "Agenda twee keer vermeld" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5365,6 +5370,11 @@ msgstr "Eindigt op" msgid "Ends on a day" msgstr "Eindigt op een dag" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6404,6 +6414,11 @@ msgstr "De pagina van GitHub is open: controleer die en dien hem daarna in. Mail msgid "Give it a title first" msgstr "Geef het eerst een titel" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -8709,7 +8724,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft bewaart maximaal {n} hier geïmporteerde sleutels en heeft er zoveel: verwijder een sleutel die u niet gebruikt en importeer deze dan." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft houdt het in het geheugen totdat u de app sluit. Het wordt nooit naar schijf geschreven." @@ -11163,7 +11178,7 @@ msgid "Numbering" msgstr "Nummering" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11328,6 +11343,11 @@ msgstr "Zodra een beheerder heeft goedgekeurd, probeert u het opnieuw: de aanmel msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Zodra het heeft gewerkt, bewaart de referentieopslag van uw systeem het voor de volgende keer. Het wordt nooit naar het postvak geschreven." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12123,6 +12143,11 @@ msgstr "Wachtwoord" msgid "Password for {account}" msgstr "Wachtwoord voor {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17007,6 +17032,11 @@ msgstr "" "\n" "De kopie die op adres is geopend verwijderen? De andere blijft, en op de server verandert niets." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17031,6 +17061,11 @@ msgstr "De agendaserver van {account} accepteerde de aanmelding niet. MailCraft msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "De agenda {name} en de afspraken die op deze computer zijn bewaard worden verwijderd, evenals het adres dat ervoor is bewaard. Er wordt niets verzonden; u kunt opnieuw abonneren met het adres." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/pl.po b/crates/i18n/po/pl.po index bbb76e00f4..50dd5309c1 100644 --- a/crates/i18n/po/pl.po +++ b/crates/i18n/po/pl.po @@ -2831,6 +2831,11 @@ msgstr "Sprawdzenie połączenia z kalendarzem" msgid "Calendar Listed Twice" msgstr "Kalendarz wymieniony dwukrotnie" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5576,6 +5581,11 @@ msgstr "Kończy się" msgid "Ends on a day" msgstr "Kończy się danego dnia" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6682,6 +6692,11 @@ msgstr "Strona GitHub jest otwarta: sprawdź ją, a potem wyślij. MailCraft nic msgid "Give it a title first" msgstr "Najpierw nadaj tytuł" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9057,7 +9072,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft przechowuje tu co najwyżej {n} zaimportowanych kluczy i tyle już ma: usuń nieużywany klucz, a potem zaimportuj ten." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft trzyma to w pamięci do zamknięcia aplikacji. Nigdy nie jest zapisywane na dysku." @@ -11588,7 +11603,7 @@ msgid "Numbering" msgstr "Numerowanie" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11755,6 +11770,11 @@ msgstr "Gdy administrator zatwierdzi, spróbuj ponownie: logowanie się wtedy po msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "Gdy się powiedzie, magazyn poświadczeń systemu zapamięta je na przyszłość. Nigdy nie jest zapisywane w skrzynce pocztowej." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12569,6 +12589,11 @@ msgstr "Hasło" msgid "Password for {account}" msgstr "Hasło do konta {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17625,6 +17650,11 @@ msgstr "" "\n" "Usunąć kopię otwartą według adresu? Druga pozostaje i nic na serwerze się nie zmienia." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17649,6 +17679,11 @@ msgstr "Serwer kalendarza konta {account} nie przyjął logowania. MailCraft spr msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Kalendarz {name} i jego wydarzenia przechowywane na tym komputerze zostaną usunięte, tak samo jak zapisany dla niego adres. Nic nie jest nigdzie wysyłane; możesz zasubskrybować go ponownie, używając adresu." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/ro.po b/crates/i18n/po/ro.po index 72905974c1..1215fffad1 100644 --- a/crates/i18n/po/ro.po +++ b/crates/i18n/po/ro.po @@ -2829,6 +2829,11 @@ msgstr "Verificare conexiune calendar" msgid "Calendar Listed Twice" msgstr "Calendar listat de două ori" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5574,6 +5579,11 @@ msgstr "Se termină la" msgid "Ends on a day" msgstr "Se termină într-o zi" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6678,6 +6688,11 @@ msgstr "Pagina GitHub este deschisă: verificați-o, apoi trimiteți. MailCraft msgid "Give it a title first" msgstr "Dă-i mai întâi un titlu" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9053,7 +9068,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft păstrează cel mult {n} chei importate aici și are deja atâtea: eliminați una pe care nu o folosiți, apoi importați-o pe aceasta." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft o păstrează în memorie până închideți aplicația. Nu este scrisă niciodată pe disc." @@ -11584,7 +11599,7 @@ msgid "Numbering" msgstr "Numerotare" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "OK" @@ -11751,6 +11766,11 @@ msgstr "După ce un administrator a aprobat, încercați din nou: conectarea va msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "După ce a funcționat, depozitul de acreditări al sistemului o păstrează pentru data viitoare. Nu este scrisă niciodată în cutia poștală." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12565,6 +12585,11 @@ msgstr "Parolă" msgid "Password for {account}" msgstr "Parola pentru {account}" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17621,6 +17646,11 @@ msgstr "" "\n" "Eliminați copia deschisă după adresă? Cealaltă rămâne, iar pe server nu se schimbă nimic." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17645,6 +17675,11 @@ msgstr "Serverul de calendar al {account} nu a acceptat conectarea. MailCraft va msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "Calendarul {name} și evenimentele lui păstrate pe acest calculator vor fi eliminate, la fel și adresa păstrată pentru el. Nu se trimite nimic nicăieri; vă puteți abona din nou cu adresa." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/i18n/po/zh_CN.po b/crates/i18n/po/zh_CN.po index 233172339d..200514607d 100644 --- a/crates/i18n/po/zh_CN.po +++ b/crates/i18n/po/zh_CN.po @@ -2825,6 +2825,11 @@ msgstr "日历连接检查" msgid "Calendar Listed Twice" msgstr "日历重复列出" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Calendar Server Password" +msgstr "" + #. command label #: crates/engine/src/cmd/dav_sync.rs #, fuzzy @@ -5565,6 +5570,11 @@ msgstr "结束于" msgid "Ends on a day" msgstr "在某一天结束" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Enter Password…" +msgstr "" + #. interface #: crates/ui-egui/src/send_later.rs #, fuzzy @@ -6653,6 +6663,11 @@ msgstr "GitHub 页面已打开:请检查后再提交。MailCraft 没有发送 msgid "Give it a title first" msgstr "请先为其设置标题" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." +msgstr "" + #. interface #: crates/ui-egui/src/report_problem.rs #, fuzzy @@ -9020,7 +9035,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft 在此最多可保存 {n} 个导入的密钥,目前已达上限。请先移除一个不使用的密钥,再导入此密钥。" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft 仅将其保存在内存中,直到您关闭应用;它绝不会写入磁盘。" @@ -11543,7 +11558,7 @@ msgid "Numbering" msgstr "编号" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AboutPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/AccountDialogs.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarScreen.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/auto_replies.rs crates/ui-egui/src/calendar_sync.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/merge_contacts.rs crates/ui-egui/src/move_items.rs crates/ui-egui/src/reminder_dialog.rs crates/ui-egui/src/send_later.rs crates/ui-egui/src/settings_notice.rs crates/ui-egui/src/software.rs crates/ui-egui/src/updates.rs #, fuzzy msgid "OK" msgstr "确定" @@ -11710,6 +11725,11 @@ msgstr "管理员批准后请重试;届时即可登录。" msgid "Once it has worked, your system's credential store keeps it for next time. It is never written to the mailbox." msgstr "成功后,系统凭据存储会保存它以供下次使用;它不会写入邮箱。" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar/meeting.rs #, fuzzy @@ -12524,6 +12544,11 @@ msgstr "密码" msgid "Password for {account}" msgstr "{account} 的密码" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "Password for {server}" +msgstr "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -17566,6 +17591,11 @@ msgstr "" "\n" "移除通过地址打开的副本吗?另一份会保留,服务器上的内容也不会更改。" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendar server needs its password." +msgstr "" + #. interface #: crates/ui-egui/src/dav_job.rs #, fuzzy @@ -17590,6 +17620,11 @@ msgstr "{account} 的日历服务器未接受登录。MailCraft 稍后会重试 msgid "The calendar {name} and its events kept on this computer will be removed, and so will the address kept for it. Nothing is sent anywhere; you can subscribe again with the address." msgstr "日历 {name} 及其保存在此计算机上的事件将被删除,为它保存的地址也一并删除。不会向任何地方发送任何内容;您可以用该地址重新订阅。" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "The calendars and contacts of {account} have a password of their own." +msgstr "" + #. interface #: crates/ui-egui/src/category_sync.rs #, fuzzy diff --git a/crates/ui-egui/src/backstage.rs b/crates/ui-egui/src/backstage.rs index d494100396..076dcca69f 100644 --- a/crates/ui-egui/src/backstage.rs +++ b/crates/ui-egui/src/backstage.rs @@ -263,6 +263,8 @@ fn info(app: &mut MailApp, ui: &mut Ui, t: &Tokens) { if a.kind == AccountKind::Exchange { crate::ews_setup::info_rows(app, ui, t, a); } + // Its calendar servers want a password of their own that nothing here has (#209). + crate::dav_password_ask::info_row(app, ui, t, a.id); // Where keeping the to-dos, the rules, the automatic replies and the categories in step // with Outlook stands, in one line, with a way to turn it on (#661); what each stands at // is its tip. diff --git a/crates/ui-egui/src/dav_job.rs b/crates/ui-egui/src/dav_job.rs index ddbfeaae52..e235e1e6bd 100644 --- a/crates/ui-egui/src/dav_job.rs +++ b/crates/ui-egui/src/dav_job.rs @@ -12,7 +12,8 @@ //! ([`mailcraft_model::DavServer::may_use_mail_password`]), the account's mail password. The host //! sends one only in answer to that origin's own challenge. A password that was accepted is held //! for the session under its origin, unless a forget is pending for its name -//! ([`MailApp::dav_forget_pending`]); nothing is written to the credential store here. A password +//! ([`MailApp::dav_forget_pending`]), and kept in the credential store when the owner lets +//! sign-ins be remembered (`MailApp::remember_dav_password`, `dav_secret_read.rs`). A password //! the server refused is not kept to compare with: only a keyed hash of it, with the settings it //! was sent under, so that the same password under the same settings is not sent again (a //! lockout) and a password or user name put right is. @@ -110,12 +111,11 @@ impl DavSync { impl MailApp { /// The password the account has for `origin` ([`mailcraft_model::origin_of`] form), by the rules /// in the module's note. `None` when the owner has to be asked. - #[cfg(test)] pub(crate) fn dav_password(&self, account: Id, origin: &str) -> Option { self.dav_password_from(account, origin).map(|(password, _)| password) } - /// As `MailApp::dav_password` (the tests' look at it), and whether it is the account's mail password (which is + /// As `MailApp::dav_password` (the tests' look at it, and what Enter Password asks for), and whether it is the account's mail password (which is /// asked again at every job, under the rule as it stands, and never held). fn dav_password_from(&self, account: Id, origin: &str) -> Option<(String, bool)> { let a = self.session.mailbox.account(account)?; @@ -280,11 +280,13 @@ impl MailApp { } }; // A password the server took is held for the session (the one that was sent, not what - // would be found now), unless it is the mail password: that one is looked up at every - // job, by the rule as it stands. + // would be found now), and remembered when the owner lets it be, unless it is the mail + // password: that one is looked up at every job, by the rule as it stands. for origin in signed_in { - if let Some((password, false)) = sent.get(&origin) { - self.hold_dav_password(account, &origin, password); + if let Some((password, false)) = sent.get(&origin) + && self.hold_dav_password(account, &origin, password) + { + self.remember_dav_password(account, &origin, password); } } let now = now_ms(); diff --git a/crates/ui-egui/src/dav_password_ask.rs b/crates/ui-egui/src/dav_password_ask.rs new file mode 100644 index 0000000000..7219ba47d6 --- /dev/null +++ b/crates/ui-egui/src/dav_password_ask.rs @@ -0,0 +1,130 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Asking the owner for the password of an account's calendar servers (#209, D7): for servers +//! that have a password of their own, when an origin the settings name has none in this session +//! and the store gave none either. +//! +//! File › Info says so under the account, with Enter Password…; the dialog has one field for each +//! origin that wants one (calendars and contacts on one server share it). What is typed is never +//! a command's parameter: it is held for its origin ([`MailApp::hold_dav_password`]) and the +//! account's next job tries it at once. It is remembered only once a server took it, and only +//! when the owner lets sign-ins be remembered (`dav_secret_read.rs`). + +use egui::Ui; +use mailcraft_model::Id; +use serde_json::json; + +use crate::MailApp; +use crate::dialogs::{buttons, window}; +use crate::theme::{Tokens, regular}; + +/// The dialog's state. +pub struct DavPasswordAsk { + account: Id, + /// The origins that want a password, each with what is typed and whether its eye is open. + pub(crate) fields: Vec<(String, String, bool)>, +} + +/// What became of the dialog this frame. +pub enum Outcome { + Open, + Close, +} + +impl MailApp { + /// The origins of the account's calendar servers that want a password of their own the owner + /// hasn't given in this session, nor the store. Empty while the feature is off, or when they + /// take the mail password. + pub(crate) fn dav_origins_wanting_password(&self, account: Id) -> Vec { + if !self.session.dav_enabled { + return Vec::new(); + } + let Some(server) = self.session.mailbox.account(account).and_then(|a| a.dav.as_ref()).filter(|d| d.separate_password) else { + return Vec::new(); + }; + server.home_origins().into_iter().filter(|origin| self.dav_password(account, origin).is_none()).collect() + } +} + +impl DavPasswordAsk { + pub(crate) fn name(&self) -> &'static str { + "davPassword" + } + + /// For the account `account`, when its servers want a password. `None` otherwise. + pub(crate) fn open(app: &MailApp, account: Id) -> Option { + let origins = app.dav_origins_wanting_password(account); + if origins.is_empty() { + return None; + } + Some(Self { account, fields: origins.into_iter().map(|origin| (origin, String::new(), false)).collect() }) + } + + /// Hold what was typed, and have the account's servers tried with it now. + pub(crate) fn give(&self, app: &mut MailApp) { + let mut given = false; + for (origin, password, _) in &self.fields { + if !password.is_empty() { + given |= app.hold_dav_password(self.account, origin, password); + } + } + if given { + app.dav.trouble.remove(&self.account); + app.dav.next = 0.0; + } + } +} + +/// The host of an origin, as it is shown (`sync.example.org`, with its port when it has one). +fn host(origin: &str) -> &str { + origin.strip_prefix("https://").unwrap_or(origin) +} + +pub fn show(ctx: &egui::Context, d: &mut DavPasswordAsk, app: &mut MailApp, t: &Tokens, enter: bool) -> Outcome { + let watch = app.secret_watch(); + let who = app.session.mailbox.account(d.account).map(|a| a.email.trim().to_string()).unwrap_or_default(); + let remember = app.ui.remember_sign_in; + let (mut ok, mut cancel) = (false, false); + let open = window(ctx, tl!("Calendar Server Password"), 420.0, |ui| { + ui.label(crate::i18n::fmt(tl!("The calendars and contacts of {account} have a password of their own."), &[("account", &who)])); + let room = egui::Margin::from(ui.spacing().button_padding); + for (origin, password, shown) in &mut d.fields { + ui.label(crate::i18n::fmt(tl!("Password for {server}"), &[("server", &crate::forms::kit::shown(host(origin), 80))])); + let resp = crate::secret_field::field(ui, password, shown, watch, room, |edit| edit); + crate::text_menu::hold(&resp); + } + let said = if remember { + tl!("Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it.") + } else { + tl!("MailCraft keeps it in memory until you close the app. It is never written to disk.") + }; + ui.label(egui::RichText::new(said).color(t.text_dim).size(11.0)); + let ready = d.fields.iter().any(|(_, password, _)| !password.is_empty()); + (ok, cancel) = buttons(ui, tl!("OK"), ready); + ok |= enter && ready; + }); + if ok { + d.give(app); + return Outcome::Close; + } + if !open || cancel { + return Outcome::Close; + } + Outcome::Open +} + +/// The account's line in File › Info when its calendar servers want a password. +pub(crate) fn info_row(app: &mut MailApp, ui: &mut Ui, t: &Tokens, account: Id) { + if app.dav_origins_wanting_password(account).is_empty() { + return; + } + ui.horizontal(|ui| { + ui.add_space(36.0); + ui.label(egui::RichText::new(tl!("The calendar server needs its password.")).font(regular(11.5)).color(t.orange)); + let tip = tl!("Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it."); + if ui.link(tl!("Enter Password…")).on_hover_text(tip).clicked() { + let _ = app.run("ui.dialog", json!({"name": "davPassword", "id": account})); + } + }); + ui.add_space(4.0); +} diff --git a/crates/ui-egui/src/dav_password_ask_tests.rs b/crates/ui-egui/src/dav_password_ask_tests.rs new file mode 100644 index 0000000000..4f63839656 --- /dev/null +++ b/crates/ui-egui/src/dav_password_ask_tests.rs @@ -0,0 +1,68 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Asking for the password of an account's calendar servers (#209, D7). + +use mailcraft_engine::Session; +use mailcraft_model::Id; +use serde_json::json; + +use crate::dav_password_ask::DavPasswordAsk; +use crate::{MailApp, Services}; + +const NOW: i64 = 1_791_993_600; +const CAL: &str = "https://dav.example.org"; +const CARD: &str = "https://cards.example.org"; + +fn app(separate: bool, contacts: &str) -> (MailApp, Id) { + let session = Session::at(mailcraft_engine::sample::mailbox(NOW, 0), NOW, 0); + let mut a = MailApp::new(session, Services::default()); + a.autosave = false; + a.session.dav_enabled = true; + let id = a.execute("account.add", json!({"email": "ada@example.org", "incoming": {"host": "imap.example.org"}})).unwrap()["id"].as_u64().unwrap(); + a.execute( + "account.davSet", + json!({"id": id, "calendarHomes": [format!("{CAL}/cal/ada/")], "contactHomes": [format!("{contacts}/card/ada/")], "separatePassword": separate}), + ) + .unwrap(); + (a, id) +} + +#[test] +fn servers_with_a_password_of_their_own_ask_for_it_once_for_each_origin() { + let (a, id) = app(true, CAL); + assert_eq!(a.dav_origins_wanting_password(id), vec![CAL.to_string()], "one server: one password"); + let (a, id) = app(true, CARD); + let mut wanted = a.dav_origins_wanting_password(id); + wanted.sort(); + assert_eq!(wanted, vec![CARD.to_string(), CAL.to_string()]); +} + +#[test] +fn nothing_is_asked_for_the_mail_password_while_the_feature_is_off_or_once_one_is_held() { + let (a, id) = app(false, CAL); + assert!(a.dav_origins_wanting_password(id).is_empty(), "they take the mail password"); + let (mut a, id) = app(true, CAL); + a.session.dav_enabled = false; + assert!(a.dav_origins_wanting_password(id).is_empty()); + assert!(a.execute("ui.dialog", json!({"name": "davPassword", "id": id})).is_err() || a.dialog.is_none()); + a.session.dav_enabled = true; + assert!(a.hold_dav_password(id, CAL, "own")); + assert!(a.dav_origins_wanting_password(id).is_empty()); +} + +#[test] +fn what_is_typed_is_held_for_its_origin_and_tried_at_once() { + let (mut a, id) = app(true, CARD); + a.execute("ui.dialog", json!({"name": "davPassword", "id": id})).unwrap(); + assert!(a.dialog.is_some()); + let mut ask = DavPasswordAsk::open(&a, id).unwrap(); + for (origin, password, _) in &mut ask.fields { + *password = if origin == CAL { "cal".into() } else { String::new() }; + } + a.dav.next = f64::MAX; + ask.give(&mut a); + assert_eq!(a.dav_password(id, CAL).as_deref(), Some("cal")); + assert_eq!(a.dav_password(id, CARD), None, "an empty field gives nothing"); + assert_eq!(a.dav.next, 0.0, "the next job may start now"); + assert_eq!(a.dav_origins_wanting_password(id), vec![CARD.to_string()]); +} diff --git a/crates/ui-egui/src/dav_secret_read.rs b/crates/ui-egui/src/dav_secret_read.rs index 90972e3326..4c8ac56158 100644 --- a/crates/ui-egui/src/dav_secret_read.rs +++ b/crates/ui-egui/src/dav_secret_read.rs @@ -11,11 +11,17 @@ //! Remove all data, or for a name with a forget pending. What comes back is taken only while the //! settings still give its name and no forget is pending for it; it goes where the opening read's //! answers go (`MailApp::secret_cache`), where `MailApp::dav_password_from` finds it. +//! +//! **Remembering.** A password of their own is written to the store only once a server took it +//! (`MailApp::remember_dav_password`, from the job's answer), as a mail password is (#802): one +//! that was only typed, or that a server refused, is never kept. Only while the owner lets +//! sign-ins be remembered, never for a name with a forget pending, and the name is noted so that +//! Remove all data finds it. The account's mail password is never written under a DAV name. use std::collections::HashSet; use std::sync::mpsc::{self, Receiver}; -use crate::{MailApp, StoreTrouble}; +use crate::{Id, MailApp, StoreTrouble}; /// What one read brings: each name asked, with what was found under it, and why the store /// couldn't be used, when it said. @@ -116,4 +122,30 @@ impl MailApp { } } } + + /// Have the store keep the password a server of the account took for `origin`, when the owner + /// lets sign-ins be remembered (File › Options). Nothing when it holds that one already. + pub(crate) fn remember_dav_password(&mut self, account: Id, origin: &str, password: &str) { + if !self.ui.remember_sign_in || password.is_empty() || self.data_removed || self.unconfirmed { + return; + } + let Some(key) = self.session.mailbox.account(account).and_then(|a| Self::dav_secret_key(a, origin)) else { return }; + if self.dav_forget_pending(&key) || self.secret_cache.get(&key).is_some_and(|kept| kept == password) { + return; + } + let Some(store) = self.services.secrets.clone() else { return }; + match store.set(&key, password) { + Ok(()) => { + self.secret_cache.insert(key.clone(), password.to_string()); + self.index_secret_key(key); + } + Err(_) => { + // A store error can echo its input; never put it in diagnostics. A partial write + // must not leave a password that seems kept. + log::warn!("couldn't keep a calendar server's password in the operating system's credential store"); + store.delete(&key); + self.secret_cache.remove(&key); + } + } + } } diff --git a/crates/ui-egui/src/dav_secret_read_tests.rs b/crates/ui-egui/src/dav_secret_read_tests.rs index 29f68ef764..aaa14d2d21 100644 --- a/crates/ui-egui/src/dav_secret_read_tests.rs +++ b/crates/ui-egui/src/dav_secret_read_tests.rs @@ -69,11 +69,12 @@ fn key(a: &MailApp, id: Id) -> String { MailApp::dav_secret_key(a.session.mailbox.account(id).unwrap(), HOME).unwrap() } -/// Tick until a job has started (or give up: none was to start). +/// Tick until a job has started and its answer is taken in (or give up: none was to start). fn until_a_job(a: &mut MailApp, sent: &Sent) { for _ in 0..2_000 { a.dav_tick(); if !sent.lock().unwrap().is_empty() { + a.dav_tick(); return; } std::thread::sleep(Duration::from_millis(1)); @@ -159,3 +160,77 @@ fn servers_that_share_the_mail_password_need_nothing_read() { assert_eq!(store.asked.load(Ordering::SeqCst), 0); assert_eq!(sent.lock().unwrap()[0].get(HOME).map(String::as_str), Some("mail")); } + +/// A window whose host signs in to the home with whatever it is given (`took`), or refuses it. +fn signing_in(store: &Arc, separate: bool, took: bool) -> (MailApp, Id, Sent) { + let (mut a, id, sent) = app(store, separate); + let seen = sent.clone(); + a.services.dav = Some(Box::new(move |job: DavJob| { + seen.lock().unwrap().push(job.passwords.clone()); + let (send, receive) = std::sync::mpsc::channel(); + let (signed_in, problem) = + if took { (vec![HOME.to_string()], mailcraft_model::DavProblem::None) } else { (vec![], mailcraft_model::DavProblem::WrongPassword) }; + let download = DavDownload { + account: job.ask.account, + email: job.ask.email.clone(), + server: job.ask.server.clone(), + signed_in, + problem, + ..Default::default() + }; + send.send(DavDone { download }).unwrap(); + receive + })); + (a, id, sent) +} + +#[test] +fn a_password_the_server_took_is_remembered_when_the_owner_lets_it_be() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = signing_in(&store, true, true); + a.dav_passwords.insert((id, HOME.into()), "typed".into()); + until_a_job(&mut a, &sent); + let k = key(&a, id); + assert_eq!(store.held.lock().unwrap().get(&k).map(String::as_str), Some("typed")); + assert!(a.ui.remembered_keys.contains(&k), "noted for Remove all data"); + // A new window finds it there: the next session reads it back. + let (mut b, id, sent) = app(&store, true); + until_a_job(&mut b, &sent); + assert_eq!(sent.lock().unwrap()[0].get(HOME).map(String::as_str), Some("typed")); + assert_eq!(key(&b, id), k); +} + +#[test] +fn nothing_is_written_while_remembering_is_off_or_for_a_refused_password() { + for (remember, took) in [(false, true), (true, false)] { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = signing_in(&store, true, took); + a.ui.remember_sign_in = remember; + a.dav_passwords.insert((id, HOME.into()), "typed".into()); + until_a_job(&mut a, &sent); + assert!(store.held.lock().unwrap().is_empty(), "remember {remember}, took {took}"); + } +} + +#[test] +fn the_mail_password_is_never_written_under_a_calendar_server_s_name() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = signing_in(&store, false, true); + a.passwords.insert(id, "mail".into()); + until_a_job(&mut a, &sent); + assert_eq!(sent.lock().unwrap()[0].get(HOME).map(String::as_str), Some("mail")); + assert!(store.held.lock().unwrap().is_empty()); +} + +#[test] +fn a_password_is_not_written_while_a_forget_is_pending_for_its_name() { + let store = Arc::new(Store::default()); + let (mut a, id, _) = signing_in(&store, true, true); + let k = key(&a, id); + a.dav_forget_queue.push(k.clone()); + a.remember_dav_password(id, HOME, "typed"); + assert!(store.held.lock().unwrap().is_empty()); + a.dav_forget_queue.clear(); + a.remember_dav_password(id, HOME, "typed"); + assert_eq!(store.held.lock().unwrap().get(&k).map(String::as_str), Some("typed")); +} diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 8265d60884..c6ef6a1609 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -47,6 +47,8 @@ pub enum Dialog { /// Delay Delivery, Send Later and Change Send Time (#950): a date and a time; runs /// `compose.delay`, `compose.sendLater` or `mail.setSendTime`. SendLater(crate::send_later::Ask), + /// The password of an account's calendar servers (#209). + DavPassword(Box), /// Direct Replies To: where replies to the message being written go; runs `compose.replyTo`. ReplyTo { text: String, @@ -295,6 +297,7 @@ impl Dialog { Dialog::AddReminder(d) => d.name(), Dialog::ReplyTo { .. } => "replyTo", Dialog::SendLater(d) => d.name(), + Dialog::DavPassword(d) => d.name(), Dialog::SharedMailbox { .. } => "sharedMailbox", Dialog::OpenCalendar { .. } => "openCalendar", Dialog::Subscribe { .. } => "subscribe", @@ -379,6 +382,7 @@ impl Dialog { .filter(|id| app.session.mailbox.message(*id).is_some_and(|m| crate::send_later::waits(app, m)))?; Dialog::SendLater(crate::send_later::Ask::open(app, crate::send_later::Mode::Change(queued))?) } + "davPassword" => Dialog::DavPassword(Box::new(crate::dav_password_ask::DavPasswordAsk::open(app, id("id")?)?)), "replyTo" => Dialog::ReplyTo { text: app.session.compose.as_ref()?.reply_to.clone(), error: String::new() }, "sharedMailbox" => { // Under the account named, else the first that can open one. @@ -2491,6 +2495,11 @@ pub fn show(app: &mut MailApp, ctx: &egui::Context) { close = true; } } + Dialog::DavPassword(d) => { + if matches!(crate::dav_password_ask::show(ctx, d, app, &t, enter), crate::dav_password_ask::Outcome::Close) { + close = true; + } + } Dialog::ReplyTo { text, error } => { let mut submit = false; let open = window(ctx, tl!("Direct Replies To"), 420.0, |ui| { diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index cddf3adb3f..a0d0f46ff3 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -101,6 +101,9 @@ pub mod dates; mod dav_job; #[cfg(test)] mod dav_job_tests; +mod dav_password_ask; +#[cfg(test)] +mod dav_password_ask_tests; mod dav_secret_read; #[cfg(test)] mod dav_secret_read_tests; diff --git a/crates/ui-egui/src/secrets_binding_tests.rs b/crates/ui-egui/src/secrets_binding_tests.rs index e6fda3bbe6..e5c10432f6 100644 --- a/crates/ui-egui/src/secrets_binding_tests.rs +++ b/crates/ui-egui/src/secrets_binding_tests.rs @@ -365,6 +365,9 @@ fn the_secret_cache_and_the_old_names_are_used_only_where_they_are_listed() { // Whether that password is still to be read from the store by the DAV job, where it is // used (`dav_names_to_read`, #209): one look, never a read of the value. ("dav_secret_read.rs", "secret_cache.contains_key(", 1), + // Whether the store holds the password a server just took already, before it is written + // (`remember_dav_password`): one look. + ("dav_secret_read.rs", "secret_cache.get(", 1), ]; let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src"); let mut stack = vec![root.clone()]; diff --git a/docs/log.d/ROADMAP/progress/209-d7-password.md b/docs/log.d/ROADMAP/progress/209-d7-password.md new file mode 100644 index 0000000000..67dabc7c8a --- /dev/null +++ b/docs/log.d/ROADMAP/progress/209-d7-password.md @@ -0,0 +1 @@ +| 2026-11-25 | #209 D7, the password: a calendar server's password of its own is asked for in File › Info (Enter Password…, one field for each origin the settings name), held for its origin, remembered in the system's credential store once a server took it and only while sign-ins are remembered, and read back by the calendar job where it is used, off the window's thread, each name once a session; behind `MAILCRAFT_DAV=1` | From 7826e9bdb1033ea8c5d2cff58e75d775068684da Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:47:58 +0100 Subject: [PATCH 03/11] #209 D7: ui_shot reads MAILCRAFT_DAV as the app does, for screenshots Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/ui-egui/examples/ui_shot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/examples/ui_shot.rs b/crates/ui-egui/examples/ui_shot.rs index 26bae36e62..a758a0e269 100644 --- a/crates/ui-egui/examples/ui_shot.rs +++ b/crates/ui-egui/examples/ui_shot.rs @@ -694,6 +694,8 @@ fn main() { // A word index beside a mailbox opened from a file (`file.open`), as the window keeps one // (R6.2); the sample is kept in no file and has none. session.index_words = true; + // (Calendar and contacts servers, as the app has them: `MAILCRAFT_DAV=1`, #209.) + session.dav_enabled = std::env::var("MAILCRAFT_DAV").is_ok_and(|v| v == "1"); // A stand-in for the host's part in signing in, when a line of the script speaks to one. let host: Arc> = Default::default(); let stood_in = lines.iter().any(|l| l.get("host").is_some()); From 71ea141a30637c440563693d7f3dfc22d7eb55e3 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:27:40 +0100 Subject: [PATCH 04/11] #209 D7: a refused remembered password is asked for again; reviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From the review of this pull request: - A remembered password the server refused is no longer offered for the rest of the session, so File › Info asks for another. The store keeps it until a new one is taken in its place. - A password that waits for the old one under its name to be removed keeps what was typed, and the dialog stays open and says so. - A read of the store under way when a name is forgotten brings nothing back for that name. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/i18n/po/cs.po | 5 +++ crates/i18n/po/de.po | 5 +++ crates/i18n/po/es.po | 5 +++ crates/i18n/po/fr.po | 5 +++ crates/i18n/po/hu.po | 5 +++ crates/i18n/po/it.po | 5 +++ crates/i18n/po/ka.po | 5 +++ crates/i18n/po/messages.pot | 5 +++ crates/i18n/po/nl.po | 5 +++ crates/i18n/po/pl.po | 5 +++ crates/i18n/po/ro.po | 5 +++ crates/i18n/po/zh_CN.po | 5 +++ crates/ui-egui/src/dav_job.rs | 13 +++++++ crates/ui-egui/src/dav_password_ask.rs | 33 ++++++++++++----- crates/ui-egui/src/dav_password_ask_tests.rs | 24 ++++++++++++- crates/ui-egui/src/dav_secret_read.rs | 17 +++++++-- crates/ui-egui/src/dav_secret_read_tests.rs | 37 ++++++++++++++++++++ crates/ui-egui/src/lib.rs | 4 +++ 18 files changed, 176 insertions(+), 12 deletions(-) diff --git a/crates/i18n/po/cs.po b/crates/i18n/po/cs.po index 558b6769e8..37eae36221 100644 --- a/crates/i18n/po/cs.po +++ b/crates/i18n/po/cs.po @@ -9032,6 +9032,11 @@ msgstr "MailCraft je open source (MIT nebo Apache-2.0). Každé tlačítko zde s msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft je open source, pod licencemi MIT a Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/de.po b/crates/i18n/po/de.po index a3e9c79b00..b1f382d696 100644 --- a/crates/i18n/po/de.po +++ b/crates/i18n/po/de.po @@ -8474,6 +8474,11 @@ msgstr "MailCraft ist Open Source (MIT oder Apache-2.0). Jede Schaltfläche hier msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft ist Open Source, unter der MIT- und der Apache-2.0-Lizenz." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/es.po b/crates/i18n/po/es.po index 84eb120a7d..ce7aaad6e2 100644 --- a/crates/i18n/po/es.po +++ b/crates/i18n/po/es.po @@ -9016,6 +9016,11 @@ msgstr "MailCraft es de código abierto (MIT o Apache-2.0). Cada botón de aquí msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft es de código abierto, con las licencias MIT y Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/fr.po b/crates/i18n/po/fr.po index bbbe7ddace..a2b078e924 100644 --- a/crates/i18n/po/fr.po +++ b/crates/i18n/po/fr.po @@ -8976,6 +8976,11 @@ msgstr "MailCraft est un logiciel libre (MIT ou Apache-2.0). Chaque bouton lance msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft est open source, sous les licences MIT et Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/hu.po b/crates/i18n/po/hu.po index 282278c0b9..098dbd7395 100644 --- a/crates/i18n/po/hu.po +++ b/crates/i18n/po/hu.po @@ -9011,6 +9011,11 @@ msgstr "A MailCraft nyílt forráskódú (MIT vagy Apache-2.0). Minden gomb olya msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "A MailCraft nyílt forráskódú, MIT és Apache 2.0 licenc alatt." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/it.po b/crates/i18n/po/it.po index d647c7d367..1b3c0c3b6a 100644 --- a/crates/i18n/po/it.po +++ b/crates/i18n/po/it.po @@ -9011,6 +9011,11 @@ msgstr "MailCraft è open source (MIT o Apache-2.0). Ogni pulsante qui esegue un msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft è open source, con le licenze MIT e Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/ka.po b/crates/i18n/po/ka.po index 2268e9b904..7b7712e7a9 100644 --- a/crates/i18n/po/ka.po +++ b/crates/i18n/po/ka.po @@ -8992,6 +8992,11 @@ msgstr "MailCraft ღია კოდისაა (MIT ან Apache-2.0). ა msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft ღია კოდისაა, MIT და Apache 2.0 ლიცენზიებით." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/messages.pot b/crates/i18n/po/messages.pot index 235ccc6176..f65eed4da1 100644 --- a/crates/i18n/po/messages.pot +++ b/crates/i18n/po/messages.pot @@ -7489,6 +7489,11 @@ msgstr "" msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs msgid "MailCraft is tested on real mail, by people who use it every day and tell us what goes wrong. Thank you." diff --git a/crates/i18n/po/nl.po b/crates/i18n/po/nl.po index 7b14efd8f5..bb3a295b31 100644 --- a/crates/i18n/po/nl.po +++ b/crates/i18n/po/nl.po @@ -8699,6 +8699,11 @@ msgstr "MailCraft is open source (MIT of Apache-2.0). Elke knop hier voert een o msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft is open source, onder de MIT- en Apache 2.0-licenties." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/pl.po b/crates/i18n/po/pl.po index 50dd5309c1..66473b73da 100644 --- a/crates/i18n/po/pl.po +++ b/crates/i18n/po/pl.po @@ -9047,6 +9047,11 @@ msgstr "MailCraft ma otwarty kod źródłowy (MIT lub Apache-2.0). Każdy przyci msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft jest oprogramowaniem open source, na licencjach MIT i Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/ro.po b/crates/i18n/po/ro.po index 1215fffad1..26c905a5bf 100644 --- a/crates/i18n/po/ro.po +++ b/crates/i18n/po/ro.po @@ -9043,6 +9043,11 @@ msgstr "MailCraft este open source (MIT sau Apache-2.0). Fiecare buton de aici r msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft este open source, sub licențele MIT și Apache 2.0." +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/i18n/po/zh_CN.po b/crates/i18n/po/zh_CN.po index 200514607d..fa3734a00c 100644 --- a/crates/i18n/po/zh_CN.po +++ b/crates/i18n/po/zh_CN.po @@ -9010,6 +9010,11 @@ msgstr "MailCraft 是开源软件(MIT 或 Apache-2.0)。此处每个按钮 msgid "MailCraft is open source, under the MIT and Apache 2.0 licences." msgstr "MailCraft 是开源软件,采用 MIT 和 Apache 2.0 许可证。" +#. interface +#: crates/ui-egui/src/dav_password_ask.rs +msgid "MailCraft is still removing the old password for this server. Try OK again in a moment." +msgstr "" + #. interface #: crates/ui-egui/src/credits.rs #, fuzzy diff --git a/crates/ui-egui/src/dav_job.rs b/crates/ui-egui/src/dav_job.rs index e235e1e6bd..bcd86a0658 100644 --- a/crates/ui-egui/src/dav_job.rs +++ b/crates/ui-egui/src/dav_job.rs @@ -294,6 +294,19 @@ impl MailApp { // Not held, not sent again (at every back-off: a lockout) until the owner gives // another, or for hours (a password changed on the server, a mistaken refusal). self.dav_passwords.retain(|(held, _), _| *held != account); + // A remembered one that was refused isn't offered again this session either: File › + // Info asks for another. (The store keeps it until a new one is taken in its place.) + if let Some(a) = self.session.mailbox.account(account).cloned() { + for (origin, (password, mail)) in &sent { + let Some(key) = Self::dav_secret_key(&a, origin) else { continue }; + if !*mail + && let Some(kept) = self.secret_cache.remove(&key) + && kept != *password + { + self.secret_cache.insert(key, kept); + } + } + } let mark = self.dav.mark(&sent_under, &sent); self.dav.refused.insert(account, (mark, now)); } diff --git a/crates/ui-egui/src/dav_password_ask.rs b/crates/ui-egui/src/dav_password_ask.rs index 7219ba47d6..9ab710a5be 100644 --- a/crates/ui-egui/src/dav_password_ask.rs +++ b/crates/ui-egui/src/dav_password_ask.rs @@ -23,6 +23,8 @@ pub struct DavPasswordAsk { account: Id, /// The origins that want a password, each with what is typed and whether its eye is open. pub(crate) fields: Vec<(String, String, bool)>, + /// Some passwords waited: the old one under the same name is still being removed. + pub(crate) waiting: bool, } /// What became of the dialog this frame. @@ -57,21 +59,32 @@ impl DavPasswordAsk { if origins.is_empty() { return None; } - Some(Self { account, fields: origins.into_iter().map(|origin| (origin, String::new(), false)).collect() }) + Some(Self { account, fields: origins.into_iter().map(|origin| (origin, String::new(), false)).collect(), waiting: false }) } - /// Hold what was typed, and have the account's servers tried with it now. - pub(crate) fn give(&self, app: &mut MailApp) { + /// Hold what was typed, and have the account's servers tried with it now. A field that + /// couldn't be held (the old password under its name is still being removed) keeps what was + /// typed, and the others are emptied. Whether every one was held. + pub(crate) fn give(&mut self, app: &mut MailApp) -> bool { let mut given = false; - for (origin, password, _) in &self.fields { - if !password.is_empty() { - given |= app.hold_dav_password(self.account, origin, password); + let mut all = true; + for (origin, password, _) in &mut self.fields { + if password.is_empty() { + continue; + } + if app.hold_dav_password(self.account, origin, password) { + given = true; + password.clear(); + } else { + all = false; } } if given { app.dav.trouble.remove(&self.account); app.dav.next = 0.0; } + self.waiting = !all; + all } } @@ -99,12 +112,16 @@ pub fn show(ctx: &egui::Context, d: &mut DavPasswordAsk, app: &mut MailApp, t: & tl!("MailCraft keeps it in memory until you close the app. It is never written to disk.") }; ui.label(egui::RichText::new(said).color(t.text_dim).size(11.0)); + if d.waiting { + ui.label( + egui::RichText::new(tl!("MailCraft is still removing the old password for this server. Try OK again in a moment.")).color(t.red), + ); + } let ready = d.fields.iter().any(|(_, password, _)| !password.is_empty()); (ok, cancel) = buttons(ui, tl!("OK"), ready); ok |= enter && ready; }); - if ok { - d.give(app); + if ok && d.give(app) { return Outcome::Close; } if !open || cancel { diff --git a/crates/ui-egui/src/dav_password_ask_tests.rs b/crates/ui-egui/src/dav_password_ask_tests.rs index 4f63839656..2eb528a6a3 100644 --- a/crates/ui-egui/src/dav_password_ask_tests.rs +++ b/crates/ui-egui/src/dav_password_ask_tests.rs @@ -60,9 +60,31 @@ fn what_is_typed_is_held_for_its_origin_and_tried_at_once() { *password = if origin == CAL { "cal".into() } else { String::new() }; } a.dav.next = f64::MAX; - ask.give(&mut a); + assert!(ask.give(&mut a)); assert_eq!(a.dav_password(id, CAL).as_deref(), Some("cal")); assert_eq!(a.dav_password(id, CARD), None, "an empty field gives nothing"); assert_eq!(a.dav.next, 0.0, "the next job may start now"); assert_eq!(a.dav_origins_wanting_password(id), vec![CARD.to_string()]); } + +#[test] +fn a_password_that_has_to_wait_for_a_forget_keeps_what_was_typed_and_the_dialog_says_so() { + let (mut a, id) = app(true, CARD); + let mut ask = DavPasswordAsk::open(&a, id).unwrap(); + for (origin, password, _) in &mut ask.fields { + *password = if origin == CAL { "cal".into() } else { "card".into() }; + } + // The old password under the contacts' name is still being removed. + let card = MailApp::dav_secret_key(a.session.mailbox.account(id).unwrap(), CARD).unwrap(); + a.dav_forget_queue.push(card); + assert!(!ask.give(&mut a), "the dialog stays open"); + assert!(ask.waiting); + assert_eq!(a.dav_password(id, CAL).as_deref(), Some("cal")); + let left: Vec<(&str, &str)> = ask.fields.iter().map(|(o, p, _)| (o.as_str(), p.as_str())).collect(); + assert!(left.contains(&(CAL, "")), "a held one is emptied"); + assert!(left.contains(&(CARD, "card")), "the one that waits is kept"); + // Once the forget is done, OK holds it. + a.dav_forget_queue.clear(); + assert!(ask.give(&mut a)); + assert_eq!(a.dav_password(id, CARD).as_deref(), Some("card")); +} diff --git a/crates/ui-egui/src/dav_secret_read.rs b/crates/ui-egui/src/dav_secret_read.rs index 4c8ac56158..08b25bd27a 100644 --- a/crates/ui-egui/src/dav_secret_read.rs +++ b/crates/ui-egui/src/dav_secret_read.rs @@ -38,6 +38,16 @@ pub(crate) struct DavSecretRead { asked: HashSet, /// The read under way: what it brings, name by name. reading: Option>, + /// The names a forget started for while the read was under way: what it brings for them is + /// from before, and isn't taken in. + pub(crate) forgotten: HashSet, +} + +impl DavSecretRead { + /// Whether a read of the store is under way. + pub(crate) fn is_reading(&self) -> bool { + self.reading.is_some() + } } impl MailApp { @@ -107,12 +117,13 @@ impl MailApp { } } - /// Take in what the store gave, for the names the settings still give and no forget is - /// pending for. + /// Take in what the store gave, for the names the settings still give, no forget is pending + /// for, and none started for since the read did. fn take_in_dav_secrets(&mut self, answers: Vec<(String, Option)>) { let now: HashSet = self.session.mailbox.accounts.iter().flat_map(Self::dav_secret_keys).collect(); + let forgotten = std::mem::take(&mut self.dav.secrets.forgotten); for (key, secret) in answers { - if !now.contains(&key) || self.dav_forget_pending(&key) { + if !now.contains(&key) || self.dav_forget_pending(&key) || forgotten.contains(&key) { continue; } if let Some(secret) = secret { diff --git a/crates/ui-egui/src/dav_secret_read_tests.rs b/crates/ui-egui/src/dav_secret_read_tests.rs index aaa14d2d21..96e345bd9a 100644 --- a/crates/ui-egui/src/dav_secret_read_tests.rs +++ b/crates/ui-egui/src/dav_secret_read_tests.rs @@ -234,3 +234,40 @@ fn a_password_is_not_written_while_a_forget_is_pending_for_its_name() { a.remember_dav_password(id, HOME, "typed"); assert_eq!(store.held.lock().unwrap().get(&k).map(String::as_str), Some("typed")); } + +#[test] +fn a_remembered_password_the_server_refused_is_asked_for_again() { + let store = Arc::new(Store::default()); + let (mut a, id, sent) = signing_in(&store, true, false); + store.set(&key(&a, id), "old").unwrap(); + until_a_job(&mut a, &sent); + assert_eq!(sent.lock().unwrap()[0].get(HOME).map(String::as_str), Some("old"), "it was tried"); + assert_eq!(a.dav_password(id, HOME), None, "not offered again"); + assert_eq!(a.dav_origins_wanting_password(id), vec![HOME.to_string()], "File › Info asks for another"); + // A password typed after it is not touched by the refusal of the remembered one. + assert!(a.hold_dav_password(id, HOME, "new")); + assert_eq!(a.dav_password(id, HOME).as_deref(), Some("new")); +} + +#[test] +fn a_read_that_was_under_way_when_its_name_was_forgotten_brings_nothing_back() { + let store = Arc::new(Store::default()); + let (mut a, id, _) = app(&store, true); + let k = key(&a, id); + store.set(&k, "old").unwrap(); + assert!(a.dav_secrets_first(), "the read starts"); + // Meanwhile the servers change and change back: the old name is forgotten and given again. + a.execute("account.davSet", json!({"id": id, "username": "grace"})).unwrap(); + a.execute("account.davSet", json!({"id": id, "username": ""})).unwrap(); + assert_eq!(key(&a, id), k); + for _ in 0..2_000 { + a.poll_dav_forgetting(); + if !a.dav_forget_pending(&k) && !a.dav.secrets.is_reading() { + break; + } + let _ = a.dav_secrets_first(); + std::thread::sleep(Duration::from_millis(1)); + } + let _ = a.dav_secrets_first(); + assert_eq!(a.dav_password(id, HOME), None, "what the read brought from before the forget isn't taken in"); +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index a0d0f46ff3..826d175a23 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -3342,6 +3342,10 @@ impl MailApp { if self.services.secrets.is_none() { return; } + // (A read of the store under way brought these from before the forget: not taken in.) + if self.dav.secrets.is_reading() { + self.dav.secrets.forgotten.extend(keys.iter().cloned()); + } let room = QUEUED.saturating_sub(self.dav_forget_queue.len()); self.dav_forget_queue.extend(keys.into_iter().take(room)); self.dispatch_dav_forgetting(); From e4f1f3567792f2be7d2e4afc64683b2aaa606fd2 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Thu, 26 Nov 2026 13:25:11 +0100 Subject: [PATCH 05/11] #209 D7: a refusal takes only what was refused; reviews A server's refusal no longer takes the password of a server that took its own in the same job, nor one the owner gave while the job was out. The password dialog closes when another mailbox takes the place of this one. The test of a read under way during a forget waits for the forget, so it no longer depends on which thread runs first. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/ui-egui/src/dav_job.rs | 18 +++-- crates/ui-egui/src/dav_job_tests.rs | 76 ++++++++++++++++++++ crates/ui-egui/src/dav_password_ask_tests.rs | 12 ++++ crates/ui-egui/src/dav_secret_read_tests.rs | 33 +++++++-- crates/ui-egui/src/lib.rs | 5 +- 5 files changed, 130 insertions(+), 14 deletions(-) diff --git a/crates/ui-egui/src/dav_job.rs b/crates/ui-egui/src/dav_job.rs index bcd86a0658..cb104cf89e 100644 --- a/crates/ui-egui/src/dav_job.rs +++ b/crates/ui-egui/src/dav_job.rs @@ -282,24 +282,30 @@ impl MailApp { // A password the server took is held for the session (the one that was sent, not what // would be found now), and remembered when the owner lets it be, unless it is the mail // password: that one is looked up at every job, by the rule as it stands. - for origin in signed_in { - if let Some((password, false)) = sent.get(&origin) - && self.hold_dav_password(account, &origin, password) + for origin in &signed_in { + if let Some((password, false)) = sent.get(origin) + && self.hold_dav_password(account, origin, password) { - self.remember_dav_password(account, &origin, password); + self.remember_dav_password(account, origin, password); } } let now = now_ms(); if problem == DavProblem::WrongPassword { // Not held, not sent again (at every back-off: a lockout) until the owner gives - // another, or for hours (a password changed on the server, a mistaken refusal). - self.dav_passwords.retain(|(held, _), _| *held != account); + // another, or for hours (a password changed on the server, a mistaken refusal). Only + // what was sent and not taken: a server that took its password keeps it, and one the + // owner gave while the job was out hasn't been tried yet. + let refused = |origin: &str, password: &str| { + !signed_in.iter().any(|taken| taken == origin) && sent.get(origin).is_some_and(|(sent, _)| sent == password) + }; + self.dav_passwords.retain(|(held, origin), password| *held != account || !refused(origin, password)); // A remembered one that was refused isn't offered again this session either: File › // Info asks for another. (The store keeps it until a new one is taken in its place.) if let Some(a) = self.session.mailbox.account(account).cloned() { for (origin, (password, mail)) in &sent { let Some(key) = Self::dav_secret_key(&a, origin) else { continue }; if !*mail + && refused(origin, password) && let Some(kept) = self.secret_cache.remove(&key) && kept != *password { diff --git a/crates/ui-egui/src/dav_job_tests.rs b/crates/ui-egui/src/dav_job_tests.rs index 77c0bbf4ae..adc5db30d0 100644 --- a/crates/ui-egui/src/dav_job_tests.rs +++ b/crates/ui-egui/src/dav_job_tests.rs @@ -415,3 +415,79 @@ fn r6_an_account_that_is_full_is_said_once_while_it_stays_so_and_neither_it_nor_ assert!(run(&mut a, P::ServerErrors).contains("errors")); assert!(run(&mut a, P::ServerErrors).is_empty(), "said once"); } + +/// A job whose answer, `problem` and the origins that took their password, waits until the test +/// lets it go; and the passwords each job was given. +fn held_job(a: &mut MailApp, problem: mailcraft_model::DavProblem, took: &[&str]) -> (Jobs, std::sync::mpsc::Sender<()>) { + type Answer = (std::sync::mpsc::Sender, DavDownload); + let jobs: Jobs = Arc::default(); + let seen = jobs.clone(); + let (go, wait) = std::sync::mpsc::channel::<()>(); + let waiting: Arc>> = Arc::default(); + let took: Vec = took.iter().map(|o| o.to_string()).collect(); + let answers = waiting.clone(); + std::thread::spawn(move || { + while wait.recv().is_ok() { + for (send, download) in answers.lock().unwrap().drain(..) { + let _ = send.send(DavDone { download }); + } + } + }); + a.services.dav = Some(Box::new(move |job: DavJob| { + seen.lock().unwrap().push(job.passwords.clone()); + let (send, receive) = std::sync::mpsc::channel(); + let download = DavDownload { + account: job.ask.account, + email: job.ask.email.clone(), + server: job.ask.server.clone(), + generation: job.ask.generation, + problem, + signed_in: took.clone(), + ..Default::default() + }; + waiting.lock().unwrap().push((send, download)); + receive + })); + (jobs, go) +} + +type Jobs = Arc>>>; + +/// Tick until the refusal of the job let go has been taken in. +fn until_taken_in(a: &mut MailApp, id: Id) { + for _ in 0..2_000 { + a.dav_tick(); + if a.dav.refused.contains_key(&id) { + return; + } + std::thread::sleep(std::time::Duration::from_millis(1)); + } +} + +#[test] +fn a_password_given_while_the_refused_job_was_out_is_kept() { + let (mut a, id) = app(true); + let (jobs, go) = held_job(&mut a, mailcraft_model::DavProblem::WrongPassword, &[]); + a.dav_passwords.insert((id, HOME.into()), "old".into()); + a.dav_tick(); + assert_eq!(jobs.lock().unwrap().len(), 1, "the job is out with the old password"); + // The owner gives another before its answer comes. + assert!(a.hold_dav_password(id, HOME, "new")); + go.send(()).unwrap(); + until_taken_in(&mut a, id); + assert_eq!(a.dav_password(id, HOME).as_deref(), Some("new"), "what was refused was the old one, not this"); +} + +#[test] +fn a_server_that_took_its_password_keeps_it_when_another_refuses() { + let (mut a, id) = app(true); + a.execute("account.davSet", json!({"id": id, "contactHomes": [format!("{OTHER}/card/ada/")]})).unwrap(); + let (_, go) = held_job(&mut a, mailcraft_model::DavProblem::WrongPassword, &[HOME]); + a.dav_passwords.insert((id, HOME.into()), "calendars".into()); + a.dav_passwords.insert((id, OTHER.into()), "contacts".into()); + a.dav_tick(); + go.send(()).unwrap(); + until_taken_in(&mut a, id); + assert_eq!(a.dav_password(id, HOME).as_deref(), Some("calendars"), "taken, and still held"); + assert_eq!(a.dav_password(id, OTHER), None, "refused: not held"); +} diff --git a/crates/ui-egui/src/dav_password_ask_tests.rs b/crates/ui-egui/src/dav_password_ask_tests.rs index 2eb528a6a3..76180bb31b 100644 --- a/crates/ui-egui/src/dav_password_ask_tests.rs +++ b/crates/ui-egui/src/dav_password_ask_tests.rs @@ -88,3 +88,15 @@ fn a_password_that_has_to_wait_for_a_forget_keeps_what_was_typed_and_the_dialog_ assert!(ask.give(&mut a)); assert_eq!(a.dav_password(id, CARD).as_deref(), Some("card")); } + +#[test] +fn the_dialog_goes_when_another_mailbox_takes_the_place_of_this_one() { + let (mut a, id) = app(true, CARD); + a.execute("ui.dialog", json!({"name": "davPassword", "id": id})).unwrap(); + assert!(matches!(a.dialog, Some(crate::dialogs::Dialog::DavPassword(_)))); + // Another file, whose account may have the same id: what is typed would be held for it. + let other = Session::at(mailcraft_engine::sample::mailbox(NOW, 0), NOW, 0).mailbox; + a.session.replace_mailbox(other); + a.drop_secrets_if_replaced(); + assert!(a.dialog.is_none()); +} diff --git a/crates/ui-egui/src/dav_secret_read_tests.rs b/crates/ui-egui/src/dav_secret_read_tests.rs index 96e345bd9a..2e5f0e3ec7 100644 --- a/crates/ui-egui/src/dav_secret_read_tests.rs +++ b/crates/ui-egui/src/dav_secret_read_tests.rs @@ -18,17 +18,25 @@ use crate::{DavDone, DavJob, MailApp, SecretStore, Services}; const NOW: i64 = 1_791_993_600; const HOME: &str = "https://dav.example.org"; -/// A store that keeps what it is given and counts how often it is asked. +/// A store that keeps what it is given and counts how often it is asked; with a gate, the first +/// read says when it has copied what it found and waits to be let go before it answers. #[derive(Default)] struct Store { held: Mutex>, asked: AtomicUsize, + gate: Mutex, std::sync::mpsc::Receiver<()>)>>, } impl SecretStore for Store { fn get(&self, key: &str) -> Option { self.asked.fetch_add(1, Ordering::SeqCst); - self.held.lock().ok()?.get(key).cloned() + let found = self.held.lock().ok()?.get(key).cloned(); + let gate = self.gate.lock().ok()?.take(); + if let Some((copied, go)) = gate { + let _ = copied.send(()); + let _ = go.recv(); + } + found } fn set(&self, key: &str, secret: &str) -> Result<(), SecretError> { self.held.lock().map_err(|_| SecretError::Refused)?.insert(key.into(), secret.into()); @@ -255,19 +263,32 @@ fn a_read_that_was_under_way_when_its_name_was_forgotten_brings_nothing_back() { let (mut a, id, _) = app(&store, true); let k = key(&a, id); store.set(&k, "old").unwrap(); + let (copied, reached) = std::sync::mpsc::channel(); + let (go, wait) = std::sync::mpsc::channel(); + *store.gate.lock().unwrap() = Some((copied, wait)); assert!(a.dav_secrets_first(), "the read starts"); - // Meanwhile the servers change and change back: the old name is forgotten and given again. + reached.recv().unwrap(); + // The read has the old password in hand. Meanwhile the servers change and change back: the + // old name is forgotten, and given again. a.execute("account.davSet", json!({"id": id, "username": "grace"})).unwrap(); a.execute("account.davSet", json!({"id": id, "username": ""})).unwrap(); assert_eq!(key(&a, id), k); for _ in 0..2_000 { a.poll_dav_forgetting(); - if !a.dav_forget_pending(&k) && !a.dav.secrets.is_reading() { + if !a.dav_forget_pending(&k) { + break; + } + std::thread::sleep(Duration::from_millis(1)); + } + assert!(!a.dav_forget_pending(&k) && store.held.lock().unwrap().get(&k).is_none(), "the forget is done"); + // Only now does the read answer, with what it had. + go.send(()).unwrap(); + for _ in 0..2_000 { + if !a.dav_secrets_first() || !a.dav.secrets.is_reading() { break; } - let _ = a.dav_secrets_first(); std::thread::sleep(Duration::from_millis(1)); } - let _ = a.dav_secrets_first(); + assert!(!a.dav.secrets.is_reading(), "the read has answered and was taken in"); assert_eq!(a.dav_password(id, HOME), None, "what the read brought from before the forget isn't taken in"); } diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 826d175a23..43c1c50b5d 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -4096,8 +4096,9 @@ impl MailApp { if opening != self.secrets_opening { self.secrets_opening = opening; // A question about the mailbox that was open goes with it: it names messages and - // accounts by ids, which the other mailbox may have too (#503). - if matches!(self.dialog, Some(dialogs::Dialog::Confirm { .. })) { + // accounts by ids, which the other mailbox may have too (#503). So does a calendar + // server's password being typed: it would be held for the other mailbox's account. + if matches!(self.dialog, Some(dialogs::Dialog::Confirm { .. } | dialogs::Dialog::DavPassword(..))) { self.set_dialog(None); } // An agent's too. From c77ab35df5d9300173ab29ac2ef28a6738d3d40f Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Thu, 26 Nov 2026 20:49:59 +0100 Subject: [PATCH 06/11] #209 D7: a forget-all during a read takes nothing back; reviews Switching remembering off while a read of the store is under way records the keys it removes as forgotten, as forgetting one account's entries does, so the read can't put an old password back in the cache. The test helper that waits for a refusal now fails when none comes. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/ui-egui/src/dav_job_tests.rs | 1 + crates/ui-egui/src/dav_secret_read_tests.rs | 26 +++++++++++++++++++++ crates/ui-egui/src/lib.rs | 5 ++++ 3 files changed, 32 insertions(+) diff --git a/crates/ui-egui/src/dav_job_tests.rs b/crates/ui-egui/src/dav_job_tests.rs index adc5db30d0..33929af895 100644 --- a/crates/ui-egui/src/dav_job_tests.rs +++ b/crates/ui-egui/src/dav_job_tests.rs @@ -462,6 +462,7 @@ fn until_taken_in(a: &mut MailApp, id: Id) { } std::thread::sleep(std::time::Duration::from_millis(1)); } + panic!("the refusal was never taken in"); } #[test] diff --git a/crates/ui-egui/src/dav_secret_read_tests.rs b/crates/ui-egui/src/dav_secret_read_tests.rs index 2e5f0e3ec7..264130e264 100644 --- a/crates/ui-egui/src/dav_secret_read_tests.rs +++ b/crates/ui-egui/src/dav_secret_read_tests.rs @@ -292,3 +292,29 @@ fn a_read_that_was_under_way_when_its_name_was_forgotten_brings_nothing_back() { assert!(!a.dav.secrets.is_reading(), "the read has answered and was taken in"); assert_eq!(a.dav_password(id, HOME), None, "what the read brought from before the forget isn't taken in"); } + +#[test] +fn a_read_under_way_when_remembering_is_switched_off_brings_nothing_back() { + let store = Arc::new(Store::default()); + let (mut a, id, _) = app(&store, true); + let k = key(&a, id); + store.set(&k, "old").unwrap(); + let (copied, reached) = std::sync::mpsc::channel(); + let (go, wait) = std::sync::mpsc::channel(); + *store.gate.lock().unwrap() = Some((copied, wait)); + assert!(a.dav_secrets_first(), "the read starts"); + reached.recv().unwrap(); + // The read has the old password in hand. Meanwhile the owner switches remembering off, and + // what was kept goes. + a.execute("ui.rememberSignIn", json!({"value": false})).unwrap(); + assert!(store.held.lock().unwrap().get(&k).is_none(), "the store has forgotten it"); + go.send(()).unwrap(); + for _ in 0..2_000 { + if !a.dav_secrets_first() || !a.dav.secrets.is_reading() { + break; + } + std::thread::sleep(Duration::from_millis(1)); + } + assert!(!a.dav.secrets.is_reading(), "the read has answered and was taken in"); + assert_eq!(a.dav_password(id, HOME), None, "what the read brought from before the switch isn't taken in"); +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 43c1c50b5d..f986d5c4fd 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -3533,6 +3533,11 @@ impl MailApp { } keys.sort(); keys.dedup(); + // A read of the store under way brought these from before the forget: not taken in, as + // `forget_dav_entries` has it. + if self.dav.secrets.is_reading() { + self.dav.secrets.forgotten.extend(keys.iter().cloned()); + } let Some(store) = &self.services.secrets else { return Vec::new() }; let mut left = Vec::new(); for key in keys { From e54f88097dd91ea73cbecf24637fabc626f491e3 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:12:57 +0100 Subject: [PATCH 07/11] =?UTF-8?q?#209=20D7:=20File=20=E2=80=BA=20Info=20?= =?UTF-8?q?=E2=80=BA=20Calendars=20and=20Contacts,=20typed=20settings,=20s?= =?UTF-8?q?tatus=20and=20Stop=20using?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The window keeps what `account.davSet` takes: the calendar and contacts addresses, the user name and whether the servers have a password of their own. Which accounts may have them is the command's own rule. One password field, held for the origin it names and no other; contacts on another server ask for their own in File › Info. A status line says how the last read went. Stop using these servers runs `account.davOff`. Saving sends nothing. Behind MAILCRAFT_DAV=1. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/engine/src/cmd/dav_account.rs | 4 +- crates/i18n/po/cs.po | 127 +++++++++- crates/i18n/po/de.po | 126 +++++++++- crates/i18n/po/es.po | 126 +++++++++- crates/i18n/po/fr.po | 126 +++++++++- crates/i18n/po/hu.po | 126 +++++++++- crates/i18n/po/it.po | 126 +++++++++- crates/i18n/po/ka.po | 126 +++++++++- crates/i18n/po/messages.pot | 126 +++++++++- crates/i18n/po/nl.po | 126 +++++++++- crates/i18n/po/pl.po | 127 +++++++++- crates/i18n/po/ro.po | 127 +++++++++- crates/i18n/po/zh_CN.po | 125 +++++++++- crates/ui-egui/src/backstage.rs | 2 + crates/ui-egui/src/dav_job.rs | 10 +- crates/ui-egui/src/dav_settings.rs | 246 +++++++++++++++++++ crates/ui-egui/src/dav_settings_tests.rs | 131 ++++++++++ crates/ui-egui/src/dialogs.rs | 16 ++ crates/ui-egui/src/lib.rs | 3 + docs/log.d/ROADMAP/progress/209-d7-window.md | 1 + 20 files changed, 1840 insertions(+), 87 deletions(-) create mode 100644 crates/ui-egui/src/dav_settings.rs create mode 100644 crates/ui-egui/src/dav_settings_tests.rs create mode 100644 docs/log.d/ROADMAP/progress/209-d7-window.md diff --git a/crates/engine/src/cmd/dav_account.rs b/crates/engine/src/cmd/dav_account.rs index c4c0fc16da..65124c399d 100644 --- a/crates/engine/src/cmd/dav_account.rs +++ b/crates/engine/src/cmd/dav_account.rs @@ -37,8 +37,8 @@ pub(super) fn switched_on(s: &Session) -> Option<&'static str> { /// Whether an account of this kind may have calendar and contacts servers of its own: one that /// has mail servers or a server of its own (IMAP, JMAP, Exchange server), not a Microsoft account /// (Microsoft Graph keeps its calendars) nor one that only lives here, nor a shared mailbox -/// (which follows its owner's). -fn may_have(a: &Account) -> bool { +/// (which follows its owner's). The window asks the same before it offers them. +pub fn may_have(a: &Account) -> bool { !a.is_shared() && matches!(a.kind, AccountKind::Imap | AccountKind::Jmap | AccountKind::Exchange) } diff --git a/crates/i18n/po/cs.po b/crates/i18n/po/cs.po index 37eae36221..006bbde1dc 100644 --- a/crates/i18n/po/cs.po +++ b/crates/i18n/po/cs.po @@ -2851,6 +2851,26 @@ msgstr "Kalendář a kontakty" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Kalendář a kontakty potřebují vaše oprávnění: Soubor › Informace › Připojit kalendář a kontakty" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3256,7 +3276,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Změny kalendářů a kontaktů na serveru se v této verzi zatím neodesílají." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Změnit…" @@ -3911,7 +3931,7 @@ msgid "Contact Changes to Send" msgstr "Změny kontaktů k odeslání" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs msgid "Contacts" msgstr "" @@ -6367,6 +6387,11 @@ msgstr "Zapomenout důvěryhodný certifikát" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Zapomenout uchované obrázky; znovu se stáhnou, až o ně požádáte." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8488,6 +8513,11 @@ msgstr "Nechte prázdné, chcete-li ponechat stávající" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Nechte prázdné, chcete-li server najít podle vaší adresy. Musí začínat https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9062,7 +9092,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft uchovává nejvýše {n} zde importovaných klíčů a tolik jich už má: odeberte jeden, který nepoužíváte, a pak importujte tento." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft ho uchovává v paměti, dokud aplikaci nezavřete. Nikdy se nezapisuje na disk." @@ -11757,7 +11787,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Jakmile to bude fungovat, úložiště přihlašovacích údajů systému si ho uchová pro příště. Nikdy se nezapisuje do poštovní schránky." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12574,7 +12604,7 @@ msgid "Password for {account}" msgstr "Heslo pro {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14317,7 +14347,7 @@ msgid "Saturday" msgstr "sobota" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Uložit" @@ -14555,6 +14585,11 @@ msgstr "Uloženo." msgid "Saving a copy of your mailbox before the switch…" msgstr "Před přepnutím ukládám kopii vaší poštovní schránky…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15437,6 +15472,11 @@ msgstr "Server: {address}" msgid "Set Sender Addresses" msgstr "Nastavit adresy odesílatele" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16591,6 +16631,11 @@ msgstr "Zastavit toto Odeslat/přijmout; co přišlo, zůstane" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Přestat tomuto certifikátu pro tento účet důvěřovat. Pokud ho server znovu ukáže a tento počítač mu nedůvěřuje, budete dotázáni." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17383,6 +17428,11 @@ msgstr "Účet, který se přihlásil na stránce Microsoftu, není správcem va msgid "The account {address} is opened through is gone." msgstr "Účet, přes který je {address} otevřena, už neexistuje." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs msgid "The account's password is needed first: press Send/Receive and type it" @@ -17430,6 +17480,11 @@ msgstr "Server účtu této schůzce zatím neposkytl odkaz pro připojení." msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Server účtu ji vytvoří při odeslání schůzky; odkaz pro připojení se vrátí s ní." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs msgid "The address list has more people of that name than it shows: type more of it to find one not listed." @@ -17781,6 +17836,11 @@ msgstr "Kontakt {id} je uveden dvakrát." msgid "The contact's form was closed: open it again to add the key" msgstr "Formulář kontaktu byl zavřen: otevřete ho znovu a přidejte klíč" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17988,6 +18048,11 @@ msgstr "Úplná zpráva je v:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Odstíny šedé, kterými se kreslí tmavý motiv: neutrální, nebo do modra. Světlý motiv zůstává beze změny." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18138,6 +18203,11 @@ msgstr "Poštovní schránka {address} není přes Microsoft Graph dostupná." msgid "The mailbox could not be read." msgstr "Poštovní schránku nešlo přečíst." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18576,6 +18646,11 @@ msgstr "Jméno odesílatele ukazuje {shown}, ale zpráva přišla od {real}." msgid "The series needs a day to end by" msgstr "Série potřebuje den, kterým končí" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18588,6 +18663,11 @@ msgstr "Server odpověděl bez adresy Exchange Web Services. Požádejte o ni sp msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Server odpověděl, ale ne tak, jak odpovídá server Exchange. Zkontrolujte jeho adresu v Nastavení serveru." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18723,6 +18803,11 @@ msgstr "Server odmítl přihlášení tohoto účtu. Znovu se přihlaste pomocí msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Server odmítl přihlášení účtu {name}: přihlaste se znovu" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18765,6 +18850,11 @@ msgstr "Platnost certifikátu serveru vypršela, takže se k němu MailCraft nep msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Certifikát serveru je vystaven na jiný název serveru, takže se k němu MailCraft nepřipojí. Zkontrolujte adresu v Nastavení serveru." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19205,6 +19295,11 @@ msgstr "Tyto kontakty zde nelze sloučit: méně než dva z nich lze změnit." msgid "These could not be removed. Remove them yourself:" msgstr "Tyto nešlo odstranit. Odstraňte je sami:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -21016,7 +21111,7 @@ msgid "Use {address}" msgstr "Použít {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Uživatelské jméno" @@ -21403,6 +21498,11 @@ msgstr "Když {when}: {then}" msgid "Where" msgstr "Kde" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21415,6 +21515,11 @@ msgstr "Tam, kde karta uvádí, že klíč je: MailCraft ho nestahuje." msgid "Where they differ, the kept contact has:" msgstr "Kde se liší, má ponechaný kontakt:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26541,6 +26646,14 @@ msgstr[0] "Vybrána {n} položka kalendáře" msgstr[1] "Vybrány {n} položky kalendáře" msgstr[2] "Vybráno {n} položek kalendáře" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. what a command says #: crates/engine/src/undo.rs msgid "{n} category couldn't be put back: the list of categories is full." diff --git a/crates/i18n/po/de.po b/crates/i18n/po/de.po index b1f382d696..b04381ecd0 100644 --- a/crates/i18n/po/de.po +++ b/crates/i18n/po/de.po @@ -2710,6 +2710,26 @@ msgstr "Kalender und Kontakte" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Kalender und Kontakte brauchen Ihre Erlaubnis: Datei › Informationen › Kalender und Kontakte verbinden" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3094,7 +3114,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Änderungen an Kalendern und Kontakten auf einem Server werden in dieser Version noch nicht gesendet." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Ändern…" @@ -3718,7 +3738,7 @@ msgid "Contact Changes to Send" msgstr "Zu sendende Kontaktänderungen" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Kontakte" @@ -6008,6 +6028,11 @@ msgstr "Vertrauenswürdiges Zertifikat vergessen" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Aufbewahrte Bilder vergessen; sie werden auf Anforderung erneut heruntergeladen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -7966,6 +7991,11 @@ msgstr "Leer lassen, um das aktuelle beizubehalten" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Lassen Sie das Feld leer, damit der Server anhand Ihrer Adresse gesucht wird. Die Adresse muss mit https:// beginnen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Leave it not verified" @@ -8502,7 +8532,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft speichert höchstens {n} hier importierte Schlüssel und hat diese Anzahl bereits erreicht: Entfernen Sie einen Schlüssel, den Sie nicht verwenden, und importieren Sie dann diesen." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft hält es im Arbeitsspeicher, bis Sie die App schließen. Es wird nie auf den Datenträger geschrieben." @@ -11039,7 +11069,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Sobald es funktioniert hat, bewahrt der Anmeldeinformationsspeicher Ihres Systems es für das nächste Mal auf. Es wird nie in das Postfach geschrieben." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -11806,7 +11836,7 @@ msgid "Password for {account}" msgstr "Kennwort für {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -13445,7 +13475,7 @@ msgid "Saturday" msgstr "Samstag" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Speichern" @@ -13670,6 +13700,11 @@ msgstr "Gespeichert." msgid "Saving a copy of your mailbox before the switch…" msgstr "Vor dem Wechsel wird eine Kopie Ihres Postfachs gespeichert…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -14508,6 +14543,11 @@ msgstr "Server: {address}" msgid "Set Sender Addresses" msgstr "Absenderadressen festlegen" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -15613,6 +15653,11 @@ msgstr "Dieses Senden/Empfangen anhalten; was angekommen ist, bleibt" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Diesem Zertifikat für dieses Konto nicht mehr vertrauen. Wenn der Server es erneut vorlegt und Ihr Computer diesem nicht vertraut, werden Sie gefragt." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -16344,6 +16389,11 @@ msgstr "Das Konto, das sich auf der Microsoft-Seite angemeldet hat, ist kein Adm msgid "The account {address} is opened through is gone." msgstr "Das Konto {address}, über das der Kalender geöffnet wurde, ist nicht mehr vorhanden." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -16392,6 +16442,11 @@ msgstr "Der Server des Kontos hat für diese Besprechung noch keinen Teilnahmeli msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Der Server des Kontos erstellt sie, wenn die Besprechung gesendet wird; der Teilnahmelink kommt damit zurück." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -16719,6 +16774,11 @@ msgstr "Der Kontakt {id} wurde zweimal angegeben." msgid "The contact's form was closed: open it again to add the key" msgstr "Das Kontaktformular wurde geschlossen: Öffnen Sie es erneut, um den Schlüssel hinzuzufügen" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -16909,6 +16969,11 @@ msgstr "Der vollständige Bericht befindet sich unter:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Die Grautöne, in denen das dunkle Design dargestellt wird: neutral oder bläulich getönt. Das helle Design bleibt unverändert." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "The import gave back something that isn't a key's name in the credential store." @@ -17047,6 +17112,11 @@ msgstr "Das Postfach {address} ist über Microsoft Graph nicht erreichbar." msgid "The mailbox could not be read." msgstr "Das Postfach konnte nicht gelesen werden." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -17467,6 +17537,11 @@ msgstr "Der Name des Absenders zeigt {shown}, aber die Nachricht stammt von {rea msgid "The series needs a day to end by" msgstr "Die Serie braucht ein Enddatum" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server answered without the address of Exchange Web Services. Ask your administrator for it and type it in Server settings." @@ -17477,6 +17552,11 @@ msgstr "Der Server hat geantwortet, ohne die Adresse der Exchange Web Services a msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Der Server hat geantwortet, aber nicht wie ein Exchange-Server. Überprüfen Sie seine Adresse in den Servereinstellungen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -17600,6 +17680,11 @@ msgstr "Der Server hat die Anmeldung für dieses Konto abgelehnt. Melden Sie sic msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Der Server hat die Anmeldung für {name} abgelehnt: Melden Sie sich erneut an" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's address must begin with https:// and name the server (https://mail.example.org/EWS/Exchange.asmx)" @@ -17635,6 +17720,11 @@ msgstr "Das Serverzertifikat ist abgelaufen. MailCraft wird daher keine Verbindu msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Das Serverzertifikat gilt für den Namen eines anderen Servers. MailCraft wird daher keine Verbindung zu diesem Server herstellen. Überprüfen Sie die Adresse in den Servereinstellungen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's certificate isn't valid yet, so MailCraft won't connect to it. Check this computer's date and time, or ask your administrator." @@ -18035,6 +18125,11 @@ msgstr "Diese Kontakte können hier nicht zusammengeführt werden: Weniger als z msgid "These could not be removed. Remove them yourself:" msgstr "Folgende Elemente konnten nicht entfernt werden. Entfernen Sie diese selbst:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19754,7 +19849,7 @@ msgid "Use {address}" msgstr "{address} verwenden" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Benutzername" @@ -20120,6 +20215,11 @@ msgstr "Wenn {when}: {then}" msgid "Where" msgstr "Wo" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Where the card says the key is: MailCraft doesn't fetch it." @@ -20130,6 +20230,11 @@ msgstr "Dort, wo die Kontaktkarte den Schlüssel angibt: MailCraft ruft ihn nich msgid "Where they differ, the kept contact has:" msgstr "Bei unterschiedlichen Angaben übernimmt der beibehaltene Kontakt:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -24978,6 +25083,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} Kalenderelement ausgewählt" msgstr[1] "{n} Kalenderelemente ausgewählt" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/es.po b/crates/i18n/po/es.po index ce7aaad6e2..f5caa23935 100644 --- a/crates/i18n/po/es.po +++ b/crates/i18n/po/es.po @@ -2856,6 +2856,26 @@ msgstr "Calendario y contactos" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "El calendario y los contactos necesitan su permiso: Archivo › Información › Conectar calendario y contactos" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3260,7 +3280,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Los cambios en calendarios y contactos de un servidor aún no se envían en esta versión." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Cambiar…" @@ -3914,7 +3934,7 @@ msgid "Contact Changes to Send" msgstr "Cambios de contactos por enviar" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Contactos" @@ -6360,6 +6380,11 @@ msgstr "Olvidar certificado de confianza" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Olvidar las imágenes guardadas; se vuelven a descargar cuando las pida." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8470,6 +8495,11 @@ msgstr "Déjelo vacío para mantener el actual" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Déjelo vacío para buscar el servidor a partir de su dirección. Debe empezar por https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9046,7 +9076,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserva como máximo {n} claves importadas aquí, y ya tiene ese número: quite una que no use e importe esta." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft la guarda en memoria hasta que cierre la aplicación. Nunca se escribe en el disco." @@ -11741,7 +11771,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Cuando haya funcionado, el almacén de credenciales de su sistema la guarda para la próxima vez. Nunca se escribe en el buzón." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12560,7 +12590,7 @@ msgid "Password for {account}" msgstr "Contraseña de {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14301,7 +14331,7 @@ msgid "Saturday" msgstr "sábado" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Guardar" @@ -14535,6 +14565,11 @@ msgstr "Guardado." msgid "Saving a copy of your mailbox before the switch…" msgstr "Guardando una copia de su buzón antes del cambio…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15419,6 +15454,11 @@ msgstr "Servidor: {address}" msgid "Set Sender Addresses" msgstr "Establecer direcciones de remitente" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16568,6 +16608,11 @@ msgstr "Detener este envío y recepción; lo que ya ha llegado se queda" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Dejar de confiar en este certificado para esta cuenta. Si el servidor lo vuelve a mostrar y este equipo no confía en él, se le preguntará." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17359,6 +17404,11 @@ msgstr "La cuenta que inició sesión en la página de Microsoft no es de admini msgid "The account {address} is opened through is gone." msgstr "La cuenta a través de la cual se abre {address} ya no existe." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17407,6 +17457,11 @@ msgstr "El servidor de la cuenta aún no le ha dado a esta reunión un vínculo msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "El servidor de la cuenta la crea cuando se envía la reunión; el vínculo para unirse llega con ella." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17757,6 +17812,11 @@ msgstr "El contacto {id} aparece nombrado dos veces." msgid "The contact's form was closed: open it again to add the key" msgstr "Se cerró el formulario del contacto: ábralo de nuevo para agregar la clave" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17963,6 +18023,11 @@ msgstr "El informe completo está en:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Los grises con que se dibuja el tema oscuro: neutros o con tinte azul. El tema claro no cambia." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18113,6 +18178,11 @@ msgstr "No se puede acceder al buzón de {address} a través de Microsoft Graph. msgid "The mailbox could not be read." msgstr "No se pudo leer el buzón." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18550,6 +18620,11 @@ msgstr "El nombre del remitente muestra {shown}, pero el mensaje vino de {real}. msgid "The series needs a day to end by" msgstr "La serie necesita un día de fin" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18562,6 +18637,11 @@ msgstr "El servidor respondió sin la dirección de Exchange Web Services. Pída msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "El servidor respondió, pero no como lo hace un servidor Exchange. Compruebe su dirección en la configuración del servidor." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18694,6 +18774,11 @@ msgstr "El servidor rechazó el inicio de sesión de esta cuenta. Use Enviar y r msgid "The server turned down the sign-in for {name}: sign in again" msgstr "El servidor rechazó el inicio de sesión de {name}: inicie sesión de nuevo" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18736,6 +18821,11 @@ msgstr "El certificado del servidor ha caducado, así que MailCraft no se conect msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "El certificado del servidor es para el nombre de otro servidor, así que MailCraft no se conectará a él. Compruebe la dirección en la configuración del servidor." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19173,6 +19263,11 @@ msgstr "Estos contactos no se pueden combinar aquí: se pueden modificar menos d msgid "These could not be removed. Remove them yourself:" msgstr "No se pudieron quitar. Quítelos usted mismo:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20968,7 +21063,7 @@ msgid "Use {address}" msgstr "Usar {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Nombre de usuario" @@ -21352,6 +21447,11 @@ msgstr "Cuando {when}: {then}" msgid "Where" msgstr "Dónde" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21364,6 +21464,11 @@ msgstr "Donde la tarjeta dice que está la clave: MailCraft no la obtiene." msgid "Where they differ, the kept contact has:" msgstr "Donde difieren, el contacto conservado tiene:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26470,6 +26575,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} elemento del calendario seleccionado" msgstr[1] "{n} elementos del calendario seleccionados" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/fr.po b/crates/i18n/po/fr.po index a2b078e924..5450856f1c 100644 --- a/crates/i18n/po/fr.po +++ b/crates/i18n/po/fr.po @@ -2849,6 +2849,26 @@ msgstr "Calendrier et contacts" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Le calendrier et les contacts ont besoin de votre autorisation : Fichier › Informations › Connecter le calendrier et les contacts" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3250,7 +3270,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Les modifications des agendas et des contacts sur un serveur ne sont pas encore envoyées dans cette version." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Modifier…" @@ -3900,7 +3920,7 @@ msgid "Contact Changes to Send" msgstr "Modifications de contacts à envoyer" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Contacts" @@ -6336,6 +6356,11 @@ msgstr "Oublier le certificat approuvé" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Oublier les images conservées ; elles seront de nouveau téléchargées à votre demande." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8433,6 +8458,11 @@ msgstr "Laisser vide pour garder celui qui est utilisé" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Laissez vide pour chercher le serveur à partir de votre adresse. Il doit commencer par https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9006,7 +9036,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserve au plus {n} clés importées ici, et en a déjà autant : supprimez-en une que vous n'utilisez pas, puis importez celle-ci." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft le garde en mémoire jusqu'à la fermeture de l'application. Il n'est jamais écrit sur le disque." @@ -11693,7 +11723,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Une fois qu'il a fonctionné, le magasin d'identifiants de votre système le conserve pour la prochaine fois. Il n'est jamais écrit dans la boîte aux lettres." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12509,7 +12539,7 @@ msgid "Password for {account}" msgstr "Mot de passe de {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14233,7 +14263,7 @@ msgid "Saturday" msgstr "samedi" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Enregistrer" @@ -14466,6 +14496,11 @@ msgstr "Enregistré." msgid "Saving a copy of your mailbox before the switch…" msgstr "Enregistrement d'une copie de votre boîte aux lettres avant le basculement…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15346,6 +15381,11 @@ msgstr "Serveur : {address}" msgid "Set Sender Addresses" msgstr "Définir les adresses d’expéditeur" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16493,6 +16533,11 @@ msgstr "Arrêter cet Envoyer/Recevoir ; ce qui est arrivé reste" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Ne plus faire confiance à ce certificat pour ce compte. Si le serveur le présente de nouveau et que cet ordinateur ne lui fait pas confiance, la question vous sera posée." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17276,6 +17321,11 @@ msgstr "Le compte connecté sur la page de Microsoft n'est pas administrateur de msgid "The account {address} is opened through is gone." msgstr "Le compte par lequel {address} est ouvert n'existe plus." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17324,6 +17374,11 @@ msgstr "Le serveur du compte n'a pas encore attribué à cette réunion de lien msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Le serveur du compte la crée à l'envoi de la réunion ; le lien pour rejoindre revient avec elle." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17674,6 +17729,11 @@ msgstr "Le contact {id} est nommé deux fois." msgid "The contact's form was closed: open it again to add the key" msgstr "Le formulaire du contact a été fermé : rouvrez-le pour ajouter la clé" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17880,6 +17940,11 @@ msgstr "Le rapport complet se trouve dans :" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Les gris dans lesquels le thème sombre est dessiné : neutres, ou teintés de bleu. Le thème clair reste inchangé." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18030,6 +18095,11 @@ msgstr "La boîte aux lettres {address} n'est pas joignable via Microsoft Graph. msgid "The mailbox could not be read." msgstr "La boîte aux lettres n'a pas pu être lue." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18467,6 +18537,11 @@ msgstr "Le nom de l'expéditeur affiche {shown}, mais le message vient de {real} msgid "The series needs a day to end by" msgstr "La série a besoin d'un jour de fin" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18479,6 +18554,11 @@ msgstr "Le serveur a répondu sans l'adresse d'Exchange Web Services. Demandez-l msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Le serveur a répondu, mais pas comme le fait un serveur Exchange. Vérifiez son adresse dans les paramètres du serveur." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18611,6 +18691,11 @@ msgstr "Le serveur a refusé la connexion pour ce compte. Utilisez Envoyer/Recev msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Le serveur a refusé la connexion pour {name} : reconnectez-vous" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18653,6 +18738,11 @@ msgstr "Le certificat du serveur a expiré, MailCraft ne s'y connectera donc pas msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Le certificat du serveur est destiné au nom d'un autre serveur, MailCraft ne s'y connectera donc pas. Vérifiez l'adresse dans les paramètres du serveur." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19089,6 +19179,11 @@ msgstr "Ces contacts ne peuvent pas être fusionnés ici : moins de deux d'entre msgid "These could not be removed. Remove them yourself:" msgstr "Ceux-ci n'ont pas pu être supprimés. Supprimez-les vous-même :" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20881,7 +20976,7 @@ msgid "Use {address}" msgstr "Utiliser {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Nom d'utilisateur" @@ -21263,6 +21358,11 @@ msgstr "Quand {when} : {then}" msgid "Where" msgstr "Où" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21275,6 +21375,11 @@ msgstr "Là où la carte indique que se trouve la clé : MailCraft ne la récup msgid "Where they differ, the kept contact has:" msgstr "Là où ils diffèrent, le contact conservé a :" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26372,6 +26477,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} élément du calendrier sélectionné" msgstr[1] "{n} éléments du calendrier sélectionnés" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/hu.po b/crates/i18n/po/hu.po index 098dbd7395..01f2ef5148 100644 --- a/crates/i18n/po/hu.po +++ b/crates/i18n/po/hu.po @@ -2857,6 +2857,26 @@ msgstr "Naptár és kapcsolatok" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Naptár és kapcsolatok kell az engedély: Fájl › Info › Csatlakoztassa naptár és kapcsolatok" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3260,7 +3280,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "A kiszolgálón lévő naptárak és névjegyek módosításai ebben a verzióban még nem kerülnek elküldésre." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Változás…" @@ -3913,7 +3933,7 @@ msgid "Contact Changes to Send" msgstr "Küldendő névjegymódosítások" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Névjegyek" @@ -6350,6 +6370,11 @@ msgstr "Felejtsd el a megbízható tanúsítványt" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Elfelejti a megőrzött képeket; kérésére újra letöltődnek." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8465,6 +8490,11 @@ msgstr "Hagyja üresen, hogy az egyik használatban maradjon" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Hagyja üresen, ha az e-mail-cím alapján szeretné megkeresni a kiszolgálót. A megadott címnek https:// kezdetűnek kell lennie." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9041,7 +9071,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft tartja a legtöbb {n} kulcsok importált itt, és ennyi: távolítsa el egyet nem használ, majd importálni ezt." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft tartja emlékezetben, amíg nem zárja be az alkalmazást. Ez soha nem íródott lemezre." @@ -11733,7 +11763,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Ha már működött, a rendszer hiteles boltja legközelebb megtartja." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12552,7 +12582,7 @@ msgid "Password for {account}" msgstr "Jelszó {account} számára" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14290,7 +14320,7 @@ msgid "Saturday" msgstr "szombat" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Mentés" @@ -14526,6 +14556,11 @@ msgstr "Mentve." msgid "Saving a copy of your mailbox before the switch…" msgstr "A postafiókod egy példányát mentettem el a csere előtt…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15408,6 +15443,11 @@ msgstr "Kiszolgáló: {address}" msgid "Set Sender Addresses" msgstr "Feladócímek beállítása" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16560,6 +16600,11 @@ msgstr "Állítsa le a Küldés/fogadó; ami megérkezett, az marad" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Ha a szerver újra megmutatja, és ez a számítógép nem bízik benne, akkor kérjük." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17352,6 +17397,11 @@ msgstr "A Microsoft oldalán használt fióknak nincs rendszergazdai jogosultsá msgid "The account {address} is opened through is gone." msgstr "A(z) {address} megnyitásához használt fiók már nincs meg." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17400,6 +17450,11 @@ msgstr "A fiók kiszolgálója még nem adott csatlakozási hivatkozást ehhez a msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "A fiók kiszolgálója a meghívó elküldésekor hozza létre az értekezletet, és visszaküldi a csatlakozási hivatkozást." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17750,6 +17805,11 @@ msgstr "A kapcsolat {id} kétszer van megnevezve." msgid "The contact's form was closed: open it again to add the key" msgstr "A kapcsolatfelvételi űrlapot lezárták: nyissa meg újra, hogy a kulcsot" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17956,6 +18016,11 @@ msgstr "A teljes jelentés a következő:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "A szürke a sötét téma rajzolva: semleges, vagy színezett kék. A fény téma marad, ahogy van." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18106,6 +18171,11 @@ msgstr "A {address} postafiókáját nem lehet elérni a Microsoft Graphon keres msgid "The mailbox could not be read." msgstr "A postafiókát nem lehetett elolvasni." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18544,6 +18614,11 @@ msgstr "A feladó neve {shown}-t mutatja, de az üzenet {real}-tól jött." msgid "The series needs a day to end by" msgstr "A sorozathoz záró nap szükséges" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18556,6 +18631,11 @@ msgstr "A kiszolgáló a Web Szolgáltatások cseréje nélkül válaszolt. Kér msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "A kiszolgáló válaszolt, de nem úgy, mint egy Exchange szerver. Ellenőrizze a címét a kiszolgáló beállításaiban." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18688,6 +18768,11 @@ msgstr "A szerver lehalkította a fiók bejelentkezését. A Send/Receive haszn msgid "The server turned down the sign-in for {name}: sign in again" msgstr "A szerver lehalkította a {name} bejelentkezését: jelentkezzen be újra" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18730,6 +18815,11 @@ msgstr "A szerver tanúsítványa lejárt, így MailCraft nem fog csatlakozni ho msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "A szerver tanúsítványa egy másik szerver nevére szól, így a MailCraft nem csatlakozik hozzá. Ellenőrizze a címet a szerver beállításaiban." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19167,6 +19257,11 @@ msgstr "Ezek a kapcsolatok nem egyesíthetők itt: kevesebb mint kettő változh msgid "These could not be removed. Remove them yourself:" msgstr "Ezeket nem lehetett eltávolítani." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20964,7 +21059,7 @@ msgid "Use {address}" msgstr "{address} használata" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Felhasználónév" @@ -21349,6 +21444,11 @@ msgstr "Ha {when}: {then}" msgid "Where" msgstr "Ahol" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21361,6 +21461,11 @@ msgstr "Ahol a kártya azt mondja, hogy a kulcs: MailCraft nem hozza el." msgid "Where they differ, the kept contact has:" msgstr "Amennyiben ezek különböznek, a fenntartott kapcsolat:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26466,6 +26571,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} naptárelem kijelölve" msgstr[1] "{n} naptárelem kijelölve" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/it.po b/crates/i18n/po/it.po index 1b3c0c3b6a..6058cefd5e 100644 --- a/crates/i18n/po/it.po +++ b/crates/i18n/po/it.po @@ -2852,6 +2852,26 @@ msgstr "Calendario e contatti" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Calendario e contatti richiedono l'autorizzazione: File › Informazioni › Collega calendario e contatti" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3256,7 +3276,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Le modifiche ai calendari e ai contatti su un server non vengono ancora inviate in questa versione." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Modifica…" @@ -3910,7 +3930,7 @@ msgid "Contact Changes to Send" msgstr "Modifiche ai contatti da inviare" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Contatti" @@ -6356,6 +6376,11 @@ msgstr "Dimentica il certificato attendibile" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Dimentica le immagini conservate; vengono scaricate di nuovo quando le si richiede." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8465,6 +8490,11 @@ msgstr "Lasciare vuoto per mantenere quello in uso" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Lascialo vuoto per cercare il server partendo dal tuo indirizzo. Deve iniziare con https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9041,7 +9071,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft conserva al massimo {n} chiavi importate qui, e le ha già: rimuovine una che non usi, poi importa questa." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft la conserva in memoria fino alla chiusura dell'app. Non viene mai scritta su disco." @@ -11733,7 +11763,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Dopo che ha funzionato, l'archivio credenziali del sistema la conserva per la volta successiva. Non viene mai scritta nella cassetta postale." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12552,7 +12582,7 @@ msgid "Password for {account}" msgstr "Password per {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14286,7 +14316,7 @@ msgid "Saturday" msgstr "sabato" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Salva" @@ -14520,6 +14550,11 @@ msgstr "Salvato." msgid "Saving a copy of your mailbox before the switch…" msgstr "Salvataggio di una copia della cassetta postale prima del passaggio…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15403,6 +15438,11 @@ msgstr "Server: {address}" msgid "Set Sender Addresses" msgstr "Imposta indirizzi mittente" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16550,6 +16590,11 @@ msgstr "Interrompi questo Invia/Ricevi; ciò che è arrivato rimane" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Smetti di considerare attendibile questo certificato per questo account. Se il server lo presenta di nuovo e questo computer non lo considera attendibile, ti verrà chiesto." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17341,6 +17386,11 @@ msgstr "L'account che ha effettuato l'accesso nella pagina di Microsoft non è u msgid "The account {address} is opened through is gone." msgstr "L'account tramite cui si apre {address} non esiste più." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17389,6 +17439,11 @@ msgstr "Il server dell'account non ha ancora assegnato a questa riunione un coll msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Il server dell'account la crea quando la riunione viene inviata; il collegamento per partecipare arriva insieme." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17737,6 +17792,11 @@ msgstr "Il contatto {id} è indicato due volte." msgid "The contact's form was closed: open it again to add the key" msgstr "La scheda del contatto è stata chiusa: aprila di nuovo per aggiungere la chiave" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17943,6 +18003,11 @@ msgstr "Il rapporto completo si trova in:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "I grigi con cui è disegnato il tema scuro: neutri o con una tinta bluastra. Il tema chiaro resta com'è." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18092,6 +18157,11 @@ msgstr "La cassetta postale {address} non è raggiungibile tramite Microsoft Gra msgid "The mailbox could not be read." msgstr "Impossibile leggere la cassetta postale." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18529,6 +18599,11 @@ msgstr "Il nome del mittente mostra {shown}, ma il messaggio è arrivato da {rea msgid "The series needs a day to end by" msgstr "La serie deve avere un giorno di fine" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18541,6 +18616,11 @@ msgstr "Il server ha risposto senza l'indirizzo di Exchange Web Services. Chiedi msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Il server ha risposto, ma non come risponde un server Exchange. Controlla il suo indirizzo in Impostazioni server." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18673,6 +18753,11 @@ msgstr "Il server ha rifiutato l'accesso per questo account. Usa Invia/Ricevi pe msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Il server ha rifiutato l'accesso per {name}: accedi di nuovo" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18715,6 +18800,11 @@ msgstr "Il certificato del server è scaduto, quindi MailCraft non si connette. msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Il certificato del server è intestato a un altro nome di server, quindi MailCraft non si connette. Controlla l'indirizzo in Impostazioni server." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19152,6 +19242,11 @@ msgstr "Questi contatti non possono essere uniti qui: meno di due di essi posson msgid "These could not be removed. Remove them yourself:" msgstr "Impossibile rimuoverli. Rimuovili tu stesso:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20944,7 +21039,7 @@ msgid "Use {address}" msgstr "Usa {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Nome utente" @@ -21327,6 +21422,11 @@ msgstr "Quando {when}: {then}" msgid "Where" msgstr "Dove" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21339,6 +21439,11 @@ msgstr "Dove la card dice che si trova la chiave: MailCraft non la recupera." msgid "Where they differ, the kept contact has:" msgstr "Dove differiscono, il contatto conservato ha:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26445,6 +26550,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} elemento del calendario selezionato" msgstr[1] "{n} elementi del calendario selezionati" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/ka.po b/crates/i18n/po/ka.po index 7b7712e7a9..5ed9900ce9 100644 --- a/crates/i18n/po/ka.po +++ b/crates/i18n/po/ka.po @@ -2846,6 +2846,26 @@ msgstr "კალენდარი და კონტაქტები" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "კალენდარსა და კონტაქტებს თქვენი ნებართვა სჭირდება: ფაილი › ინფორმაცია › კალენდრისა და კონტაქტების დაკავშირება" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3250,7 +3270,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "სერვერზე არსებული კალენდრებისა და კონტაქტების ცვლილებები ამ ვერსიაში ჯერ არ იგზავნება." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "შეცვლა…" @@ -3903,7 +3923,7 @@ msgid "Contact Changes to Send" msgstr "გასაგზავნი კონტაქტის ცვლილებები" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "კონტაქტები" @@ -6346,6 +6366,11 @@ msgstr "სანდო სერტიფიკატის დავიწყ msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "შენახული სურათების დავიწყება; მოთხოვნისას ისინი ხელახლა ჩამოიტვირთება." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8454,6 +8479,11 @@ msgstr "დატოვეთ ცარიელი, რომ ამჟამ msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "დატოვეთ ცარიელი, რომ სერვერი თქვენი მისამართით მოიძებნოს. უნდა იწყებოდეს https://-ით." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9022,7 +9052,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft აქ იმპორტირებულ მაქსიმუმ {n} გასაღებს ინახავს და ამდენი უკვე აქვს: წაშალეთ ერთი, რომელსაც არ იყენებთ, შემდეგ კი ეს იმპორტირეთ." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft მას მეხსიერებაში ინახავს, სანამ აპლიკაციას დახურავთ. დისკზე ის არასოდეს იწერება." @@ -11706,7 +11736,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "როგორც კი იმუშავებს, თქვენი სისტემის ავტორიზაციის მონაცემების საცავი მას შემდეგი ჯერისთვის შეინახავს. საფოსტო ყუთში ის არასოდეს იწერება." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12521,7 +12551,7 @@ msgid "Password for {account}" msgstr "პაროლი: {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14245,7 +14275,7 @@ msgid "Saturday" msgstr "შაბათი" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "შენახვა" @@ -14477,6 +14507,11 @@ msgstr "შენახულია." msgid "Saving a copy of your mailbox before the switch…" msgstr "გადასვლამდე თქვენი საფოსტო ყუთის ასლის შენახვა…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15361,6 +15396,11 @@ msgstr "სერვერი: {address}" msgid "Set Sender Addresses" msgstr "გამგზავნის მისამართების დაყენება" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16501,6 +16541,11 @@ msgstr "ამ გაგზავნა/მიღების შეჩერე msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "ამ ანგარიშისთვის ამ სერტიფიკატის ნდობის შეწყვეტა. თუ სერვერი მას ისევ აჩვენებს და ეს კომპიუტერი არ ენდობა, გკითხავთ." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17290,6 +17335,11 @@ msgstr "ანგარიში, რომლითაც Microsoft-ის გ msgid "The account {address} is opened through is gone." msgstr "ანგარიში, რომლითაც {address} იხსნება, აღარ არსებობს." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17338,6 +17388,11 @@ msgstr "ანგარიშის სერვერს ამ შეხვე msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "ანგარიშის სერვერი მას შეხვედრის გაგზავნისას ქმნის; შესაერთებელი ბმული მასთან ერთად ბრუნდება." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17688,6 +17743,11 @@ msgstr "კონტაქტი {id} ორჯერაა მითითე msgid "The contact's form was closed: open it again to add the key" msgstr "კონტაქტის ფორმა დაიხურა: გასაღების დასამატებლად ისევ გახსენით" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17894,6 +17954,11 @@ msgstr "სრული მოხსენება აქ არის:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "ნაცრისფერი ტონები, რომლებითაც მუქი თემა იხატება: ნეიტრალური ან მოლურჯო. ღია თემა უცვლელი რჩება." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18044,6 +18109,11 @@ msgstr "საფოსტო ყუთი {address} Microsoft Graph-ით მ msgid "The mailbox could not be read." msgstr "საფოსტო ყუთის წაკითხვა ვერ მოხერხდა." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18477,6 +18547,11 @@ msgstr "გამგზავნის სახელად ჩანს {shown msgid "The series needs a day to end by" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18489,6 +18564,11 @@ msgstr "სერვერმა უპასუხა Exchange Web Services-ი msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "სერვერმა უპასუხა, მაგრამ არა ისე, როგორც Exchange სერვერი პასუხობს. შეამოწმეთ მისი მისამართი სერვერის პარამეტრებში." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18621,6 +18701,11 @@ msgstr "სერვერმა ამ ანგარიშით შესვ msgid "The server turned down the sign-in for {name}: sign in again" msgstr "სერვერმა ანგარიშით {name} შესვლა უარყო: ხელახლა შედით" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18663,6 +18748,11 @@ msgstr "სერვერის სერტიფიკატს ვადა msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "სერვერის სერტიფიკატი სხვა სერვერის სახელზეა, ამიტომ MailCraft მას არ დაუკავშირდება. შეამოწმეთ მისამართი სერვერის პარამეტრებში." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19098,6 +19188,11 @@ msgstr "ამ კონტაქტების აქ გაერთიან msgid "These could not be removed. Remove them yourself:" msgstr "ესენი ვერ წაიშალა. წაშალეთ ისინი თავად:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20891,7 +20986,7 @@ msgid "Use {address}" msgstr "გამოყენება: {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "მომხმარებლის სახელი" @@ -21278,6 +21373,11 @@ msgstr "როცა {when}: {then}" msgid "Where" msgstr "სად" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21290,6 +21390,11 @@ msgstr "სადაც ბარათის თანახმად გას msgid "Where they differ, the kept contact has:" msgstr "სადაც ისინი განსხვავდება, დატოვებულ კონტაქტს აქვს:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26383,6 +26488,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "მონიშნულია კალენდრის ელემენტი: {n}" msgstr[1] "მონიშნულია კალენდრის ელემენტი: {n}" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/messages.pot b/crates/i18n/po/messages.pot index f65eed4da1..ec59e0f2e5 100644 --- a/crates/i18n/po/messages.pot +++ b/crates/i18n/po/messages.pot @@ -2376,6 +2376,26 @@ msgstr "" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs msgid "Calendars on the web (an .ics address) kept up to date here, read-only. Calendar › Open Calendar › From Internet… subscribes to one." @@ -2711,7 +2731,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "" #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs msgid "Change…" msgstr "" @@ -3255,7 +3275,7 @@ msgid "Contact Changes to Send" msgstr "" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs msgid "Contacts" msgstr "" @@ -5283,6 +5303,11 @@ msgstr "" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs msgid "Format" @@ -7034,6 +7059,11 @@ msgstr "" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Leave it not verified" @@ -7515,7 +7545,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "" @@ -9744,7 +9774,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -10426,7 +10456,7 @@ msgid "Password for {account}" msgstr "" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -11861,7 +11891,7 @@ msgid "Saturday" msgstr "" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs msgid "Save" msgstr "" @@ -12055,6 +12085,11 @@ msgstr "" msgid "Saving a copy of your mailbox before the switch…" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs msgid "Saving the mailbox…" @@ -12787,6 +12822,11 @@ msgstr "" msgid "Set Sender Addresses" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs msgid "Set importance" @@ -13744,6 +13784,11 @@ msgstr "" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs msgid "Stopped" @@ -14404,6 +14449,11 @@ msgstr "" msgid "The account {address} is opened through is gone." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs msgid "The account's password is needed first: press Send/Receive and type it" @@ -14444,6 +14494,11 @@ msgstr "" msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs msgid "The address list has more people of that name than it shows: type more of it to find one not listed." @@ -14734,6 +14789,11 @@ msgstr "" msgid "The contact's form was closed: open it again to add the key" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs msgid "The contacts couldn't be taken in: {error}" @@ -14906,6 +14966,11 @@ msgstr "" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "The import gave back something that isn't a key's name in the credential store." @@ -15031,6 +15096,11 @@ msgstr "" msgid "The mailbox could not be read." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs msgid "The meeting these proposals are for isn't on your calendar." @@ -15396,6 +15466,11 @@ msgstr "" msgid "The series needs a day to end by" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server answered without the address of Exchange Web Services. Ask your administrator for it and type it in Server settings." @@ -15406,6 +15481,11 @@ msgstr "" msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs msgid "The server couldn't be searched. Try again in a few minutes." @@ -15517,6 +15597,11 @@ msgstr "" msgid "The server turned down the sign-in for {name}: sign in again" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's address must begin with https:// and name the server (https://mail.example.org/EWS/Exchange.asmx)" @@ -15552,6 +15637,11 @@ msgstr "" msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's certificate isn't valid yet, so MailCraft won't connect to it. Check this computer's date and time, or ask your administrator." @@ -15918,6 +16008,11 @@ msgstr "" msgid "These could not be removed. Remove them yourself:" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs msgid "These tasks exist only on this computer. Choose the Microsoft account whose To Do gets them. Until you choose, they stay here and nothing of them is sent." @@ -17406,7 +17501,7 @@ msgid "Use {address}" msgstr "" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs msgid "User name" msgstr "" @@ -17727,6 +17822,11 @@ msgstr "" msgid "Where" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Where the card says the key is: MailCraft doesn't fetch it." @@ -17737,6 +17837,11 @@ msgstr "" msgid "Where they differ, the kept contact has:" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs msgid "Whether it is held online is for its organizer to say." @@ -22004,6 +22109,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "" msgstr[1] "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs msgid "{n} category couldn't be put back: the list of categories is full." diff --git a/crates/i18n/po/nl.po b/crates/i18n/po/nl.po index bb3a295b31..9ff133e47a 100644 --- a/crates/i18n/po/nl.po +++ b/crates/i18n/po/nl.po @@ -2766,6 +2766,26 @@ msgstr "Agenda en contactpersonen" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Agenda en contactpersonen hebben uw toestemming nodig: Bestand › Info › Agenda en contactpersonen verbinden" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3162,7 +3182,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Wijzigingen in agenda's en contacten op een server worden in deze versie nog niet verzonden." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Wijzigen…" @@ -3782,7 +3802,7 @@ msgid "Contact Changes to Send" msgstr "Te verzenden contactwijzigingen" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Contactpersonen" @@ -6120,6 +6140,11 @@ msgstr "Vertrouwd certificaat vergeten" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "De bewaarde afbeeldingen vergeten; ze worden opnieuw gedownload wanneer u erom vraagt." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs msgid "Format" @@ -8169,6 +8194,11 @@ msgstr "Laat leeg om de huidige te behouden" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Laat het leeg om de server te zoeken aan de hand van uw adres. Het moet beginnen met https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -8729,7 +8759,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft bewaart maximaal {n} hier geïmporteerde sleutels en heeft er zoveel: verwijder een sleutel die u niet gebruikt en importeer deze dan." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft houdt het in het geheugen totdat u de app sluit. Het wordt nooit naar schijf geschreven." @@ -11349,7 +11379,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Zodra het heeft gewerkt, bewaart de referentieopslag van uw systeem het voor de volgende keer. Het wordt nooit naar het postvak geschreven." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12149,7 +12179,7 @@ msgid "Password for {account}" msgstr "Wachtwoord voor {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -13816,7 +13846,7 @@ msgid "Saturday" msgstr "zaterdag" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Opslaan" @@ -14040,6 +14070,11 @@ msgstr "Opgeslagen." msgid "Saving a copy of your mailbox before the switch…" msgstr "Bezig met opslaan van een kopie van uw postvak vóór de overstap…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -14896,6 +14931,11 @@ msgstr "Server: {address}" msgid "Set Sender Addresses" msgstr "Afzenderadressen instellen" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16017,6 +16057,11 @@ msgstr "Dit verzenden/ontvangen stoppen; wat is binnengekomen, blijft" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "U vertrouwt dit certificaat niet meer voor dit account. Als de server het opnieuw toont en deze computer het niet vertrouwt, wordt u gevraagd." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -16791,6 +16836,11 @@ msgstr "Het account dat zich heeft aangemeld op de pagina van Microsoft, is geen msgid "The account {address} is opened through is gone." msgstr "Het account waarmee {address} is geopend, is verdwenen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -16839,6 +16889,11 @@ msgstr "De server van het account heeft deze vergadering nog geen koppeling gege msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "De server van het account maakt deze aan wanneer de vergadering wordt verzonden; de koppeling om deel te nemen komt daarbij terug." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17189,6 +17244,11 @@ msgstr "De contactpersoon {id} is twee keer genoemd." msgid "The contact's form was closed: open it again to add the key" msgstr "Het formulier van de contactpersoon is gesloten: open het opnieuw om de sleutel toe te voegen" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17393,6 +17453,11 @@ msgstr "Het volledige rapport staat in:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "De grijstinten waarin het donkere thema wordt getekend: neutraal, of blauw getint. Het lichte thema blijft zoals het is." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -17543,6 +17608,11 @@ msgstr "Het postvak op {address} kan niet worden bereikt via Microsoft Graph." msgid "The mailbox could not be read." msgstr "De postbus kon niet worden gelezen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -17981,6 +18051,11 @@ msgstr "De naam van de afzender toont {shown}, maar het bericht kwam van {real}. msgid "The series needs a day to end by" msgstr "De reeks heeft een einddag nodig" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -17993,6 +18068,11 @@ msgstr "De server antwoordde zonder het adres van Exchange Web Services. Vraag h msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "De server antwoordde, maar niet zoals een Exchange-server dat doet. Controleer het adres bij Serverinstellingen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18125,6 +18205,11 @@ msgstr "De server heeft de aanmelding voor dit account geweigerd. Gebruik Verzen msgid "The server turned down the sign-in for {name}: sign in again" msgstr "De server heeft de aanmelding voor {name} geweigerd: meld u opnieuw aan" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18167,6 +18252,11 @@ msgstr "Het certificaat van de server is verlopen, dus MailCraft maakt er geen v msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Het certificaat van de server is voor de naam van een andere server, dus MailCraft maakt er geen verbinding mee. Controleer het adres bij Serverinstellingen." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18600,6 +18690,11 @@ msgstr "Deze contactpersonen kunnen hier niet worden samengevoegd: minder dan tw msgid "These could not be removed. Remove them yourself:" msgstr "Deze konden niet worden verwijderd. Verwijder ze zelf:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20373,7 +20468,7 @@ msgid "Use {address}" msgstr "{address} gebruiken" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Gebruikersnaam" @@ -20751,6 +20846,11 @@ msgstr "Als {when}: {then}" msgid "Where" msgstr "Waar" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -20763,6 +20863,11 @@ msgstr "Waar de kaart zegt dat de sleutel is: MailCraft haalt hem niet op." msgid "Where they differ, the kept contact has:" msgstr "Waar ze verschillen, heeft de behouden contactpersoon:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -25843,6 +25948,13 @@ msgid_plural "{n} calendar items selected" msgstr[0] "{n} agenda-item geselecteerd" msgstr[1] "{n} agenda-items geselecteerd" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/pl.po b/crates/i18n/po/pl.po index 66473b73da..4d6c90eb42 100644 --- a/crates/i18n/po/pl.po +++ b/crates/i18n/po/pl.po @@ -2860,6 +2860,26 @@ msgstr "Kalendarz i kontakty" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Kalendarz i kontakty wymagają Twojej zgody: Plik › Informacje › Połącz kalendarz i kontakty" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3265,7 +3285,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Zmiany w kalendarzach i kontaktach na serwerze nie są jeszcze wysyłane w tej wersji." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Zmień…" @@ -3920,7 +3940,7 @@ msgid "Contact Changes to Send" msgstr "Zmiany kontaktów do wysłania" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Kontakty" @@ -6378,6 +6398,11 @@ msgstr "Zapomnij zaufany certyfikat" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Zapomnij przechowywane obrazy; zostaną pobrane ponownie na Twoje życzenie." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8501,6 +8526,11 @@ msgstr "Pozostaw puste, aby zachować używane" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Pozostaw puste, aby wyszukać serwer na podstawie adresu. Musi zaczynać się od https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9077,7 +9107,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft przechowuje tu co najwyżej {n} zaimportowanych kluczy i tyle już ma: usuń nieużywany klucz, a potem zaimportuj ten." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft trzyma to w pamięci do zamknięcia aplikacji. Nigdy nie jest zapisywane na dysku." @@ -11776,7 +11806,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "Gdy się powiedzie, magazyn poświadczeń systemu zapamięta je na przyszłość. Nigdy nie jest zapisywane w skrzynce pocztowej." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12595,7 +12625,7 @@ msgid "Password for {account}" msgstr "Hasło do konta {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14339,7 +14369,7 @@ msgid "Saturday" msgstr "sobota" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Zapisz" @@ -14577,6 +14607,11 @@ msgstr "Zapisano." msgid "Saving a copy of your mailbox before the switch…" msgstr "Zapisywanie kopii skrzynki pocztowej przed przełączeniem…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15463,6 +15498,11 @@ msgstr "Serwer: {address}" msgid "Set Sender Addresses" msgstr "Ustaw adresy nadawcy" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16617,6 +16657,11 @@ msgstr "Zatrzymaj to Wyślij/Odbierz; to, co dotarło, pozostaje" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Przestań ufać temu certyfikatowi dla tego konta. Jeśli serwer przedstawi go ponownie, a ten komputer mu nie ufa, zostaniesz zapytany." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17409,6 +17454,11 @@ msgstr "Konto zalogowane na stronie Microsoft nie jest administratorem Twojej or msgid "The account {address} is opened through is gone." msgstr "Konto, przez które otwarto {address}, już nie istnieje." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17457,6 +17507,11 @@ msgstr "Serwer konta nie nadał jeszcze temu spotkaniu łącza do dołączenia." msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Serwer konta tworzy je po wysłaniu spotkania; łącze do dołączenia wraca razem z nim." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17809,6 +17864,11 @@ msgstr "Kontakt {id} został wskazany dwa razy." msgid "The contact's form was closed: open it again to add the key" msgstr "Formularz kontaktu został zamknięty: otwórz go ponownie, aby dodać klucz" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -18016,6 +18076,11 @@ msgstr "Pełny raport znajduje się w:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Odcienie szarości ciemnego motywu: neutralne lub z niebieskim odcieniem. Jasny motyw pozostaje bez zmian." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18166,6 +18231,11 @@ msgstr "Skrzynka pocztowa {address} jest nieosiągalna przez Microsoft Graph." msgid "The mailbox could not be read." msgstr "Nie udało się odczytać skrzynki pocztowej." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18604,6 +18674,11 @@ msgstr "Nazwa nadawcy pokazuje {shown}, ale wiadomość przyszła z adresu {real msgid "The series needs a day to end by" msgstr "Seria wymaga dnia zakończenia" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18616,6 +18691,11 @@ msgstr "Serwer odpowiedział bez adresu usług Exchange Web Services. Poproś ad msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Serwer odpowiedział, ale nie tak, jak robi to serwer Exchange. Sprawdź jego adres w Ustawieniach serwera." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18751,6 +18831,11 @@ msgstr "Serwer odrzucił logowanie do tego konta. Użyj opcji Wyślij/Odbierz, a msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Serwer odrzucił logowanie do {name}: zaloguj się ponownie" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18793,6 +18878,11 @@ msgstr "Certyfikat serwera wygasł, więc MailCraft nie połączy się z nim. Po msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Certyfikat serwera jest wystawiony dla innej nazwy serwera, więc MailCraft nie połączy się z nim. Sprawdź adres w Ustawieniach serwera." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19233,6 +19323,11 @@ msgstr "Tych kontaktów nie można tutaj scalić: mniej niż dwa z nich można z msgid "These could not be removed. Remove them yourself:" msgstr "Nie można tego usunąć. Usuń to samodzielnie:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -21046,7 +21141,7 @@ msgid "Use {address}" msgstr "Użyj {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Nazwa użytkownika" @@ -21433,6 +21528,11 @@ msgstr "Gdy {when}: {then}" msgid "Where" msgstr "Gdzie" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21445,6 +21545,11 @@ msgstr "Tam, gdzie karta mówi, że jest klucz: MailCraft go nie pobiera." msgid "Where they differ, the kept contact has:" msgstr "Tam, gdzie się różnią, zachowany kontakt ma:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26573,6 +26678,14 @@ msgstr[0] "Zaznaczono {n} element kalendarza" msgstr[1] "Zaznaczono {n} elementy kalendarza" msgstr[2] "Zaznaczono {n} elementów kalendarza" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/ro.po b/crates/i18n/po/ro.po index 26c905a5bf..87b9260302 100644 --- a/crates/i18n/po/ro.po +++ b/crates/i18n/po/ro.po @@ -2858,6 +2858,26 @@ msgstr "Calendar și contacte" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "Calendarul și contactele au nevoie de permisiunea dvs.: Fișier › Informații › Conectare calendar și contacte" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3263,7 +3283,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "Modificările calendarelor și contactelor de pe un server nu sunt încă trimise în această versiune." #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "Modificare…" @@ -3918,7 +3938,7 @@ msgid "Contact Changes to Send" msgstr "Modificări de contacte de trimis" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "Contacte" @@ -6374,6 +6394,11 @@ msgstr "Uitare certificat de încredere" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "Uitați imaginile păstrate; se descarcă din nou când le cereți." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8497,6 +8522,11 @@ msgstr "Lăsați gol ca să păstrați cel folosit" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "Lăsați gol ca serverul să fie căutat după adresa dvs. Trebuie să înceapă cu https://." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9073,7 +9103,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft păstrează cel mult {n} chei importate aici și are deja atâtea: eliminați una pe care nu o folosiți, apoi importați-o pe aceasta." #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft o păstrează în memorie până închideți aplicația. Nu este scrisă niciodată pe disc." @@ -11772,7 +11802,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "După ce a funcționat, depozitul de acreditări al sistemului o păstrează pentru data viitoare. Nu este scrisă niciodată în cutia poștală." #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12591,7 +12621,7 @@ msgid "Password for {account}" msgstr "Parola pentru {account}" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14335,7 +14365,7 @@ msgid "Saturday" msgstr "sâmbătă" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "Salvare" @@ -14573,6 +14603,11 @@ msgstr "Salvat." msgid "Saving a copy of your mailbox before the switch…" msgstr "Se salvează o copie a cutiei poștale înainte de schimbare…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15459,6 +15494,11 @@ msgstr "Server: {address}" msgid "Set Sender Addresses" msgstr "Setare adrese expeditor" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16613,6 +16653,11 @@ msgstr "Opriți această Trimitere/primire; ce a sosit rămâne" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "Nu mai aveți încredere în acest certificat pentru acest cont. Dacă serverul îl arată din nou și acest computer nu are încredere în el, veți fi întrebat." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17405,6 +17450,11 @@ msgstr "Contul conectat pe pagina Microsoft nu este administrator al organizați msgid "The account {address} is opened through is gone." msgstr "Contul prin care este deschis {address} nu mai există." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17453,6 +17503,11 @@ msgstr "Serverul contului nu i-a dat încă acestei întâlniri un link de parti msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "Serverul contului îl creează când se trimite întâlnirea; linkul de participare vine odată cu ea." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17805,6 +17860,11 @@ msgstr "Contactul {id} este numit de două ori." msgid "The contact's form was closed: open it again to add the key" msgstr "Formularul contactului a fost închis: deschideți-l din nou ca să adăugați cheia" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -18012,6 +18072,11 @@ msgstr "Raportul complet este în:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "Griurile în care este desenată tema întunecată: neutre sau cu nuanță albastră. Tema luminoasă rămâne neschimbată." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18162,6 +18227,11 @@ msgstr "Cutia poștală de la {address} nu poate fi accesată prin Microsoft Gra msgid "The mailbox could not be read." msgstr "Cutia poștală nu a putut fi citită." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18600,6 +18670,11 @@ msgstr "Numele expeditorului arată {shown}, dar mesajul a venit de la {real}." msgid "The series needs a day to end by" msgstr "Seria are nevoie de o zi de încheiere" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18612,6 +18687,11 @@ msgstr "Serverul a răspuns fără adresa Exchange Web Services. Cereți-o admin msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "Serverul a răspuns, dar nu ca un server Exchange. Verificați-i adresa în Setări server." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18747,6 +18827,11 @@ msgstr "Serverul a refuzat conectarea pentru acest cont. Folosiți Trimitere/pri msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Serverul a refuzat conectarea pentru {name}: conectați-vă din nou" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18789,6 +18874,11 @@ msgstr "Certificatul serverului a expirat, deci MailCraft nu se conectează la e msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "Certificatul serverului este pentru numele altui server, deci MailCraft nu se conectează la el. Verificați adresa în Setări server." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19229,6 +19319,11 @@ msgstr "Aceste contacte nu pot fi îmbinate aici: mai puțin de două dintre ele msgid "These could not be removed. Remove them yourself:" msgstr "Acestea nu au putut fi eliminate. Eliminați-le chiar dvs.:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -21042,7 +21137,7 @@ msgid "Use {address}" msgstr "Folosiți {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "Nume de utilizator" @@ -21427,6 +21522,11 @@ msgstr "Când {when}: {then}" msgid "Where" msgstr "Unde" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21439,6 +21539,11 @@ msgstr "Acolo unde spune fișa că se află cheia: MailCraft nu o preia." msgid "Where they differ, the kept contact has:" msgstr "Unde diferă, contactul păstrat are:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26566,6 +26671,14 @@ msgstr[0] "{n} element de calendar selectat" msgstr[1] "{n} elemente de calendar selectate" msgstr[2] "{n} de elemente de calendar selectate" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/i18n/po/zh_CN.po b/crates/i18n/po/zh_CN.po index fa3734a00c..a0a7bc35a8 100644 --- a/crates/i18n/po/zh_CN.po +++ b/crates/i18n/po/zh_CN.po @@ -2854,6 +2854,26 @@ msgstr "日历和联系人" msgid "Calendar and contacts need your permission: File › Info › Connect calendar and contacts" msgstr "日历和联系人需要您的许可:文件 › 信息 › 连接日历和联系人" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and Contacts" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: not set up" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Calendars and contacts: {server}" +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -3259,7 +3279,7 @@ msgid "Changes to calendars and contacts on a server are not sent yet in this ve msgstr "此版本尚不会将对服务器上日历和联系人的更改发送出去。" #. interface -#: crates/ui-egui/src/forms.rs +#: crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/forms.rs #, fuzzy msgid "Change…" msgstr "更改…" @@ -3914,7 +3934,7 @@ msgid "Contact Changes to Send" msgstr "待发送的联系人更改" #. interface -#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Contacts" msgstr "联系人" @@ -6353,6 +6373,11 @@ msgstr "取消信任证书" msgid "Forget the pictures that are kept; they are downloaded again when you ask." msgstr "清除已保存的图片;您再次请求时会重新下载。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are." +msgstr "" + #. ribbon, ribbon location #: crates/engine/src/cmd/format.rs crates/ui-egui/src/ribbon.rs #, fuzzy @@ -8464,6 +8489,11 @@ msgstr "留空则继续使用当前值" msgid "Leave it empty to look for the server from your address. It must begin with https://." msgstr "留空则根据您的地址查找服务器。地址必须以 https:// 开头。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Leave it empty to sign in with the account's address." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -9040,7 +9070,7 @@ msgid "MailCraft keeps at most {n} keys imported here, and has that many: remove msgstr "MailCraft 在此最多可保存 {n} 个导入的密钥,目前已达上限。请先移除一个不使用的密钥,再导入此密钥。" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dialogs.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs #, fuzzy msgid "MailCraft keeps it in memory until you close the app. It is never written to disk." msgstr "MailCraft 仅将其保存在内存中,直到您关闭应用;它绝不会写入磁盘。" @@ -11731,7 +11761,7 @@ msgid "Once it has worked, your system's credential store keeps it for next time msgstr "成功后,系统凭据存储会保存它以供下次使用;它不会写入邮箱。" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it." msgstr "" @@ -12550,7 +12580,7 @@ msgid "Password for {account}" msgstr "{account} 的密码" #. interface -#: crates/ui-egui/src/dav_password_ask.rs +#: crates/ui-egui/src/dav_password_ask.rs crates/ui-egui/src/dav_settings.rs msgid "Password for {server}" msgstr "" @@ -14292,7 +14322,7 @@ msgid "Saturday" msgstr "星期六" #. android, interface -#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs +#: apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/CalendarEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/PersonEditor.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/SettingsPages.kt apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/TaskEditorScreen.kt crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/forms.rs crates/ui-egui/src/signatures.rs #, fuzzy msgid "Save" msgstr "保存" @@ -14526,6 +14556,11 @@ msgstr "已保存。" msgid "Saving a copy of your mailbox before the switch…" msgstr "正在切换前保存邮箱副本…" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Saving sends nothing. MailCraft reads the servers at its next run." +msgstr "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy @@ -15408,6 +15443,11 @@ msgstr "服务器:{address}" msgid "Set Sender Addresses" msgstr "设置发件人地址" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Set Up…" +msgstr "" + #. name #: crates/ui-egui/src/forms.rs #, fuzzy @@ -16558,6 +16598,11 @@ msgstr "停止本次发送/接收;已到达的内容将保留" msgid "Stop trusting this certificate for this account. If the server shows it again and this computer doesn't trust it, you are asked." msgstr "不再信任此账户的这张证书。如果服务器再次出示该证书,而本机不信任它,系统会询问您。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Stop using these servers" +msgstr "" + #. interface, what a command says #: crates/engine/src/cmd/account.rs crates/ui-egui/src/sync_panel.rs #, fuzzy @@ -17350,6 +17395,11 @@ msgstr "在 Microsoft 页面登录的账户不是您组织的管理员,因此 msgid "The account {address} is opened through is gone." msgstr "用于打开 {address} 的账户已不存在。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The account's mail password is used, and only for these addresses." +msgstr "" + #. interface #: crates/ui-egui/src/address_book.rs crates/ui-egui/src/check_names.rs #, fuzzy @@ -17398,6 +17448,11 @@ msgstr "该账户的服务器尚未向该会议提供加入链接。" msgid "The account's server makes it when the meeting is sent; the link to join by comes back with it." msgstr "发送会议时,账户服务器会创建会议,并返回加入链接。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The address doesn't lead to calendars or contacts. Check it in Change…." +msgstr "" + #. interface #: crates/ui-egui/src/check_names.rs #, fuzzy @@ -17746,6 +17801,11 @@ msgstr "联系人 {id} 被指定了两次。" msgid "The contact's form was closed: open it again to add the key" msgstr "联系人的表单已关闭:再次打开以添加密钥" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The contacts are on another server: File › Info asks for its password." +msgstr "" + #. interface, what a command says #: crates/engine/src/sync_driver/calendar_plan.rs crates/ui-egui/src/lib.rs #, fuzzy @@ -17951,6 +18011,11 @@ msgstr "完整报告位于:" msgid "The greys the dark theme is drawn in: neutral, or tinted blue. The light theme stays as it is." msgstr "深色主题所用的灰色:中性灰或偏蓝灰。浅色主题保持不变。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -18101,6 +18166,11 @@ msgstr "无法通过 Microsoft Graph 访问 {address} 对应的邮箱。" msgid "The mailbox could not be read." msgstr "无法读取该邮箱。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The mailbox holds as much from this server as it may." +msgstr "" + #. interface #: crates/ui-egui/src/meeting_dialogs.rs #, fuzzy @@ -18539,6 +18609,11 @@ msgstr "发件人名称显示为 {shown},但邮件来自 {real}。" msgid "The series needs a day to end by" msgstr "系列需要一个结束日期" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server answered some requests with errors. MailCraft asks again later." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18551,6 +18626,11 @@ msgstr "服务器的响应中未提供 Exchange Web 服务地址。请向管理 msgid "The server answered, but not as an Exchange server does. Check its address in Server settings." msgstr "服务器已响应,但响应与 Exchange 服务器不符。请在服务器设置中检查地址。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server couldn't be reached. MailCraft tries again later." +msgstr "" + #. what a command says #: crates/mobile/src/fetch.rs #, fuzzy @@ -18680,6 +18760,11 @@ msgstr "服务器拒绝了此账户的登录请求。请使用“发送/接收 msgid "The server turned down the sign-in for {name}: sign in again" msgstr "服务器拒绝了 {name} 的登录请求:请重新登录" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server wouldn't sign in." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18722,6 +18807,11 @@ msgstr "服务器证书已过期,MailCraft 无法连接。请联系管理员 msgid "The server's certificate is for another server's name, so MailCraft won't connect to it. Check the address in Server settings." msgstr "服务器证书上的名称与服务器不匹配,MailCraft 无法连接。请检查服务器设置中的地址。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "The server's certificate isn't trusted, so nothing was sent to it." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19156,6 +19246,11 @@ msgstr "这些联系人无法在此处合并:可以更改的联系人少于两 msgid "These could not be removed. Remove them yourself:" msgstr "无法移除以下项目,请自行移除:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "These servers have a password of their own" +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -20941,7 +21036,7 @@ msgid "Use {address}" msgstr "使用 {address}" #. interface -#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/account_setup/exchange.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "User name" msgstr "用户名" @@ -21328,6 +21423,11 @@ msgstr "当{when}时:{then}" msgid "Where" msgstr "位置" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where the calendars and contacts of {account} are kept" +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -21340,6 +21440,11 @@ msgstr "密钥的位置由名片给出;MailCraft 不会获取该密钥。" msgid "Where they differ, the kept contact has:" msgstr "存在差异时,保留的联系人包含:" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Where this account's calendars and contacts are kept" +msgstr "" + #. what a command says #: crates/engine/src/cmd/calendar.rs #, fuzzy @@ -26430,6 +26535,12 @@ msgid "{n} calendar item selected" msgid_plural "{n} calendar items selected" msgstr[0] "已选择 {n} 个日历项目" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar or address book read" +msgid_plural "{n} calendars and address books read" +msgstr[0] "" + #. what a command says #: crates/engine/src/undo.rs #, fuzzy diff --git a/crates/ui-egui/src/backstage.rs b/crates/ui-egui/src/backstage.rs index 076dcca69f..668470685e 100644 --- a/crates/ui-egui/src/backstage.rs +++ b/crates/ui-egui/src/backstage.rs @@ -265,6 +265,8 @@ fn info(app: &mut MailApp, ui: &mut Ui, t: &Tokens) { } // Its calendar servers want a password of their own that nothing here has (#209). crate::dav_password_ask::info_row(app, ui, t, a.id); + // Where its calendars and contacts are kept, on a calendar server (#209). + crate::dav_settings::info_row(app, ui, t, a); // Where keeping the to-dos, the rules, the automatic replies and the categories in step // with Outlook stands, in one line, with a way to turn it on (#661); what each stands at // is its tip. diff --git a/crates/ui-egui/src/dav_job.rs b/crates/ui-egui/src/dav_job.rs index cb104cf89e..7047a29532 100644 --- a/crates/ui-egui/src/dav_job.rs +++ b/crates/ui-egui/src/dav_job.rs @@ -87,7 +87,7 @@ pub(crate) struct DavSync { /// The settings the job in flight was asked under ([`mailcraft_model::DavServer::identity`]). sent_under: String, /// The trouble each account was last told to the owner for, so that it is said once. - shown: HashMap, + pub(crate) shown: HashMap, /// Whether each account's servers have a password of their own, to see it change. separate: HashMap, /// The accounts the owner was told are full ([`DavProblem::Full`]), with the generation of @@ -98,6 +98,14 @@ pub(crate) struct DavSync { pub(crate) secrets: crate::dav_secret_read::DavSecretRead, } +impl MailApp { + /// The trouble the account's last job came to, as it was told to the owner; `None` when its + /// last job went well or none has come to trouble. + pub(crate) fn dav_trouble(&self, account: Id) -> Option { + self.dav.shown.get(&account).copied() + } +} + impl DavSync { /// A keyed hash of the passwords a job was given (by origin) and the settings it was asked /// under: what is kept of a refusal, instead of the passwords. diff --git a/crates/ui-egui/src/dav_settings.rs b/crates/ui-egui/src/dav_settings.rs new file mode 100644 index 0000000000..d24444d1e6 --- /dev/null +++ b/crates/ui-egui/src/dav_settings.rs @@ -0,0 +1,246 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Calendars and Contacts (#209, D7): where an account's calendars and contacts are kept, the +//! name they sign in with, and whether they have a password of their own, in File › Info. +//! +//! The dialog collects what `account.davSet` takes and runs it; Stop using these servers runs +//! `account.davOff`. Saving sends nothing: the DAV job reads the servers by itself, at its next +//! run. A password typed here is never a command's parameter. It is held in memory for the origin +//! the field names ([`MailApp::hold_dav_password`]), and for no other: calendars and contacts on +//! one server (Infomaniak's) share it, and contacts on another server ask for their own in File › +//! Info (`dav_password_ask.rs`). It is remembered only once that server took it, as the owner +//! allows (`dav_secret_read.rs`). + +use egui::Ui; +use mailcraft_engine::cmd::dav_account::may_have; +use mailcraft_model::{Account, DavProblem, Id, origin_of}; +use serde_json::json; + +use crate::MailApp; +use crate::dialogs::{buttons, window}; +use crate::theme::{Tokens, regular}; + +/// The dialog's state: what the owner is typing. +pub struct DavSettings { + pub(crate) account: Id, + pub(crate) calendars: String, + pub(crate) contacts: String, + pub(crate) username: String, + /// The servers want a password of their own (not the account's mail password). + pub(crate) separate: bool, + /// The password for [`DavSettings::password_origin`], when the servers have their own. + pub(crate) password: String, + /// The owner clicked the eye: the password is shown until the next click or the dialog's end. + shown: bool, + pub(crate) error: String, +} + +/// What became of the dialog this frame. +pub enum Outcome { + Open, + Close, +} + +/// The host of an origin, as it is shown (`dav.example.org`, with its port when it has one). +fn host(origin: &str) -> &str { + origin.strip_prefix("https://").unwrap_or(origin) +} + +impl DavSettings { + pub(crate) fn name(&self) -> &'static str { + "davSettings" + } + + /// For the account `account`, with its settings as they are. `None` while the feature is off, + /// or for an account that can't have them (`account.davSet`'s own rule). + pub(crate) fn open(app: &MailApp, account: Id) -> Option { + if !app.session.dav_enabled { + return None; + } + let a = app.session.mailbox.account(account).filter(|a| may_have(a))?; + let server = a.dav.as_ref(); + let first = |homes: Option<&Vec>| homes.and_then(|h| h.first()).cloned().unwrap_or_default(); + Some(Self { + account, + calendars: first(server.map(|s| &s.calendar_homes)), + contacts: first(server.map(|s| &s.contact_homes)), + username: server.map(|s| s.username.clone()).unwrap_or_default(), + separate: server.is_some_and(|s| s.separate_password), + password: String::new(), + shown: false, + error: String::new(), + }) + } + + /// The origin the password field is for: the calendars', else the contacts'. + pub(crate) fn password_origin(&self) -> Option { + origin_of(self.calendars.trim()).or_else(|| origin_of(self.contacts.trim())) + } + + /// Whether the contacts are on another server than the calendars (which asks for its own). + fn contacts_elsewhere(&self) -> bool { + let card = origin_of(self.contacts.trim()); + card.is_some() && origin_of(self.calendars.trim()).is_some_and(|cal| Some(cal) != card) + } + + /// Keep the settings, and hold the password typed for its origin. False, with the reason in + /// [`DavSettings::error`], when the command refused them. + pub(crate) fn save(&mut self, app: &mut MailApp) -> bool { + let homes = |s: &str| if s.trim().is_empty() { vec![] } else { vec![s.trim().to_string()] }; + let params = json!({ + "id": self.account, + "calendarHomes": homes(&self.calendars), + "contactHomes": homes(&self.contacts), + "username": self.username.trim(), + "separatePassword": self.separate, + }); + if let Err(e) = app.execute("account.davSet", params) { + self.error = e; + return false; + } + if self.separate + && !self.password.is_empty() + && let Some(origin) = self.password_origin() + && app.hold_dav_password(self.account, &origin, &self.password) + { + app.dav.trouble.remove(&self.account); + } + // (The settings are new: the job may look at once.) + app.dav.next = 0.0; + true + } +} + +/// A small dim line under a field. +fn hint(ui: &mut Ui, t: &Tokens, text: &str) { + ui.label(egui::RichText::new(text).color(t.text_dim).size(11.0)); +} + +/// What the account's last read of its calendar servers came to, in words; `None` before any did. +pub(crate) fn status(app: &MailApp, a: &Account) -> Option { + let server = a.dav.as_ref()?; + let said = match app.dav_trouble(a.id) { + Some(DavProblem::NeedsPassword | DavProblem::WrongPassword | DavProblem::UnsupportedSignIn) => tl!("The server wouldn't sign in."), + Some(DavProblem::Certificate) => tl!("The server's certificate isn't trusted, so nothing was sent to it."), + Some(DavProblem::Unreachable | DavProblem::Busy) => tl!("The server couldn't be reached. MailCraft tries again later."), + Some(DavProblem::Redirected | DavProblem::NotCalendarServer | DavProblem::Refused) => { + tl!("The address doesn't lead to calendars or contacts. Check it in Change….") + } + Some(DavProblem::ServerErrors) => tl!("The server answered some requests with errors. MailCraft asks again later."), + Some(DavProblem::Full) => tl!("The mailbox holds as much from this server as it may."), + Some(DavProblem::None | DavProblem::Limits) | None => { + let n = server.collections.len(); + if n == 0 { + return None; + } + return Some(tln!(n, "{n} calendar or address book read", "{n} calendars and address books read")); + } + }; + Some(said.to_string()) +} + +pub fn show(ctx: &egui::Context, d: &mut DavSettings, app: &mut MailApp, t: &Tokens, enter: bool) -> Outcome { + let watch = app.secret_watch(); + let Some(account) = app.session.mailbox.account(d.account).cloned() else { return Outcome::Close }; + let who = account.email.trim().to_string(); + let set_up = account.dav.is_some(); + let remember = app.ui.remember_sign_in; + let (mut submit, mut close, mut stop) = (false, false, false); + let open = window(ctx, tl!("Calendars and Contacts"), 480.0, |ui| { + ui.label(crate::i18n::fmt(tl!("Where the calendars and contacts of {account} are kept"), &[("account", &who)])); + ui.label(tl!("Calendars")); + crate::text_menu::field( + ui.add(egui::TextEdit::singleline(&mut d.calendars).hint_text("https://dav.example.org/calendars/ada/").desired_width(f32::INFINITY)), + ); + ui.label(tl!("Contacts")); + crate::text_menu::field( + ui.add(egui::TextEdit::singleline(&mut d.contacts).hint_text("https://dav.example.org/addressbooks/ada/").desired_width(f32::INFINITY)), + ); + hint(ui, t, tl!("The https:// addresses your provider gives for calendars (CalDAV) and contacts (CardDAV). Either may be left empty.")); + ui.label(tl!("User name")); + crate::text_menu::field(ui.add(egui::TextEdit::singleline(&mut d.username).hint_text(who.as_str()).desired_width(f32::INFINITY))); + hint(ui, t, tl!("Leave it empty to sign in with the account's address.")); + ui.checkbox(&mut d.separate, tl!("These servers have a password of their own")); + if d.separate { + if let Some(origin) = d.password_origin() { + let room = egui::Margin::from(ui.spacing().button_padding); + ui.label(crate::i18n::fmt(tl!("Password for {server}"), &[("server", &crate::forms::kit::shown(host(&origin), 80))])); + crate::secret_field::field(ui, &mut d.password, &mut d.shown, watch, room, |edit| edit); + if d.contacts_elsewhere() { + hint(ui, t, tl!("The contacts are on another server: File › Info asks for its password.")); + } + } + let said = if remember { + tl!("Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it.") + } else { + tl!("MailCraft keeps it in memory until you close the app. It is never written to disk.") + }; + hint(ui, t, said); + } else { + hint(ui, t, tl!("The account's mail password is used, and only for these addresses.")); + } + if let Some(line) = status(app, &account) { + hint(ui, t, &line); + } + if !d.error.is_empty() { + ui.label(egui::RichText::new(d.error.as_str()).color(t.red)); + } + if set_up { + stop = ui + .link(tl!("Stop using these servers")) + .on_hover_text(tl!("Forget these addresses and what was read from them. The calendars and contacts on the servers stay as they are.")) + .clicked(); + } + hint(ui, t, tl!("Saving sends nothing. MailCraft reads the servers at its next run.")); + let ready = !(d.calendars.trim().is_empty() && d.contacts.trim().is_empty()); + let (ok, cancel) = buttons(ui, tl!("Save"), ready); + submit = ok || (enter && ready); + close = cancel; + }); + if !open || close { + return Outcome::Close; + } + if stop { + return match app.execute("account.davOff", json!({"id": d.account})) { + Ok(_) => Outcome::Close, + Err(e) => { + d.error = e; + Outcome::Open + } + }; + } + if submit && d.save(app) { + return Outcome::Close; + } + Outcome::Open +} + +/// The account's line in File › Info: where its calendars and contacts are and how the last read +/// went, with a way to set them up or change them. Only while the feature is on. +pub(crate) fn info_row(app: &mut MailApp, ui: &mut Ui, t: &Tokens, a: &Account) { + if !app.session.dav_enabled || !may_have(a) { + return; + } + let status = status(app, a); + ui.horizontal(|ui| { + ui.add_space(36.0); + let (line, link) = match a.dav.as_ref() { + None => (tl!("Calendars and contacts: not set up").to_string(), tl!("Set Up…")), + Some(server) => { + let host = server.home_origins().first().map(|o| host(o).to_string()).unwrap_or_default(); + (crate::i18n::fmt(tl!("Calendars and contacts: {server}"), &[("server", &crate::forms::kit::shown(&host, 80))]), tl!("Change…")) + } + }; + ui.label(egui::RichText::new(line).font(regular(11.5)).color(t.text_dim)); + if ui.link(link).on_hover_text(tl!("Where this account's calendars and contacts are kept")).clicked() { + let _ = app.run("ui.dialog", json!({"name": "davSettings", "id": a.id})); + } + }); + if let Some(status) = status { + ui.horizontal(|ui| { + ui.add_space(36.0); + ui.label(egui::RichText::new(status).font(regular(11.5)).color(t.text_dim)); + }); + } + ui.add_space(4.0); +} diff --git a/crates/ui-egui/src/dav_settings_tests.rs b/crates/ui-egui/src/dav_settings_tests.rs new file mode 100644 index 0000000000..6e29454c1a --- /dev/null +++ b/crates/ui-egui/src/dav_settings_tests.rs @@ -0,0 +1,131 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Calendars and Contacts in File › Info (#209, D7): the settings as typed, the password held for +//! its own origin only, and Stop using these servers. + +use mailcraft_engine::Session; +use mailcraft_model::{DavProblem, Id}; +use serde_json::json; + +use crate::dav_settings::{DavSettings, status}; +use crate::{MailApp, Services}; + +const NOW: i64 = 1_791_993_600; +const CAL: &str = "https://dav.example.org"; +const CARD: &str = "https://cards.example.org"; + +fn app() -> (MailApp, Id) { + let session = Session::at(mailcraft_engine::sample::mailbox(NOW, 0), NOW, 0); + let mut a = MailApp::new(session, Services::default()); + a.autosave = false; + a.session.dav_enabled = true; + let id = a.execute("account.add", json!({"email": "ada@example.org", "incoming": {"host": "imap.example.org"}})).unwrap()["id"].as_u64().unwrap(); + (a, id) +} + +#[test] +fn the_window_opens_only_while_the_feature_is_on_and_for_an_account_that_may_have_servers() { + let (mut a, id) = app(); + assert!(DavSettings::open(&a, id).is_some()); + a.execute("ui.dialog", json!({"name": "davSettings", "id": id})).unwrap(); + assert!(a.dialog.is_some()); + a.session.dav_enabled = false; + assert!(DavSettings::open(&a, id).is_none()); + a.session.dav_enabled = true; + assert!(DavSettings::open(&a, 999_999).is_none()); +} + +#[test] +fn saving_keeps_what_was_typed_and_sends_nothing() { + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = format!(" {CAL}/calendars/ada/ "); + d.contacts = format!("{CAL}/addressbooks/ada/"); + d.username = "ada-dav".into(); + assert!(d.save(&mut a)); + let server = a.session.mailbox.account(id).unwrap().dav.clone().unwrap(); + assert_eq!(server.calendar_homes, vec![format!("{CAL}/calendars/ada/")]); + assert_eq!(server.contact_homes, vec![format!("{CAL}/addressbooks/ada/")]); + assert_eq!(server.username, "ada-dav"); + assert!(!server.separate_password); + assert!(a.dav_passwords.is_empty(), "the mail password is looked up at each job, never held"); + // Opened again, the window shows what is kept. + let d = DavSettings::open(&a, id).unwrap(); + assert_eq!(d.calendars, format!("{CAL}/calendars/ada/")); + assert_eq!(d.username, "ada-dav"); +} + +#[test] +fn an_address_the_command_refuses_is_said_and_nothing_is_kept() { + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = "http://dav.example.org/calendars/ada/".into(); + assert!(!d.save(&mut a)); + assert!(!d.error.is_empty()); + assert!(a.session.mailbox.account(id).unwrap().dav.is_none()); +} + +#[test] +fn a_password_of_their_own_is_held_for_the_origin_the_field_names_and_no_other() { + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = format!("{CAL}/calendars/ada/"); + d.contacts = format!("{CARD}/addressbooks/ada/"); + d.separate = true; + d.password = "own".into(); + assert_eq!(d.password_origin().as_deref(), Some(CAL)); + assert!(d.save(&mut a)); + assert_eq!(a.dav_password(id, CAL).as_deref(), Some("own")); + assert_eq!(a.dav_password(id, CARD), None, "never lent to another origin"); + assert_eq!(a.dav_origins_wanting_password(id), vec![CARD.to_string()], "File › Info asks for the contacts' own"); +} + +#[test] +fn one_server_for_calendars_and_contacts_takes_one_password() { + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = format!("{CAL}/calendars/ada/"); + d.contacts = format!("{CAL}/addressbooks/ada/"); + d.separate = true; + d.password = "own".into(); + assert!(d.save(&mut a)); + assert!(a.dav_origins_wanting_password(id).is_empty()); + // Only contacts: the field is theirs. + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.contacts = format!("{CARD}/addressbooks/ada/"); + d.separate = true; + d.password = "own".into(); + assert_eq!(d.password_origin().as_deref(), Some(CARD)); + assert!(d.save(&mut a)); + assert_eq!(a.dav_password(id, CARD).as_deref(), Some("own")); +} + +#[test] +fn a_password_typed_while_the_box_is_off_is_not_held() { + let (mut a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = format!("{CAL}/calendars/ada/"); + d.password = "typed, then the box was cleared".into(); + assert!(d.save(&mut a)); + assert!(a.dav_passwords.is_empty()); +} + +#[test] +fn stop_using_forgets_the_servers() { + let (mut a, id) = app(); + a.execute("account.davSet", json!({"id": id, "calendarHomes": [format!("{CAL}/calendars/ada/")]})).unwrap(); + a.execute("account.davOff", json!({"id": id})).unwrap(); + assert!(a.session.mailbox.account(id).unwrap().dav.is_none()); + assert!(DavSettings::open(&a, id).unwrap().calendars.is_empty()); +} + +#[test] +fn the_status_says_nothing_before_a_read_and_names_the_trouble_after_one() { + let (mut a, id) = app(); + assert_eq!(status(&a, a.session.mailbox.account(id).unwrap()), None, "not set up"); + a.execute("account.davSet", json!({"id": id, "calendarHomes": [format!("{CAL}/calendars/ada/")]})).unwrap(); + assert_eq!(status(&a, a.session.mailbox.account(id).unwrap()), None, "nothing read yet"); + a.dav.shown.insert(id, DavProblem::WrongPassword); + assert_eq!(status(&a, a.session.mailbox.account(id).unwrap()).as_deref(), Some("The server wouldn't sign in.")); +} diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index c6ef6a1609..4cd1310e91 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -49,6 +49,8 @@ pub enum Dialog { SendLater(crate::send_later::Ask), /// The password of an account's calendar servers (#209). DavPassword(Box), + /// Where an account's calendars and contacts are kept (#209). + DavSettings(Box), /// Direct Replies To: where replies to the message being written go; runs `compose.replyTo`. ReplyTo { text: String, @@ -298,6 +300,7 @@ impl Dialog { Dialog::ReplyTo { .. } => "replyTo", Dialog::SendLater(d) => d.name(), Dialog::DavPassword(d) => d.name(), + Dialog::DavSettings(d) => d.name(), Dialog::SharedMailbox { .. } => "sharedMailbox", Dialog::OpenCalendar { .. } => "openCalendar", Dialog::Subscribe { .. } => "subscribe", @@ -383,6 +386,14 @@ impl Dialog { Dialog::SendLater(crate::send_later::Ask::open(app, crate::send_later::Mode::Change(queued))?) } "davPassword" => Dialog::DavPassword(Box::new(crate::dav_password_ask::DavPasswordAsk::open(app, id("id")?)?)), + "davSettings" => { + // For the account named, else the first that can have them. + let account = match id("id") { + Some(id) => id, + None => app.session.mailbox.accounts.iter().find(|a| mailcraft_engine::cmd::dav_account::may_have(a))?.id, + }; + Dialog::DavSettings(Box::new(crate::dav_settings::DavSettings::open(app, account)?)) + } "replyTo" => Dialog::ReplyTo { text: app.session.compose.as_ref()?.reply_to.clone(), error: String::new() }, "sharedMailbox" => { // Under the account named, else the first that can open one. @@ -2500,6 +2511,11 @@ pub fn show(app: &mut MailApp, ctx: &egui::Context) { close = true; } } + Dialog::DavSettings(d) => { + if matches!(crate::dav_settings::show(ctx, d, app, &t, enter), crate::dav_settings::Outcome::Close) { + close = true; + } + } Dialog::ReplyTo { text, error } => { let mut submit = false; let open = window(ctx, tl!("Direct Replies To"), 420.0, |ui| { diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index f986d5c4fd..b24f968c19 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -109,6 +109,9 @@ mod dav_secret_read; mod dav_secret_read_tests; #[cfg(test)] mod dav_secrets_tests; +mod dav_settings; +#[cfg(test)] +mod dav_settings_tests; #[cfg(test)] mod dialog_report_tests; #[cfg(test)] diff --git a/docs/log.d/ROADMAP/progress/209-d7-window.md b/docs/log.d/ROADMAP/progress/209-d7-window.md new file mode 100644 index 0000000000..802d7206a4 --- /dev/null +++ b/docs/log.d/ROADMAP/progress/209-d7-window.md @@ -0,0 +1 @@ +| 2026-11-25 | #209 D7, the window: File › Info › Calendars and Contacts (Set Up… or Change…) keeps the typed calendar and contacts addresses, the user name and whether the servers have a password of their own through `account.davSet`; one password field, held for the origin it names and no other; a status line from the last read; Stop using these servers runs `account.davOff`; saving sends nothing; behind `MAILCRAFT_DAV=1` | From b7db10901ab6ec28a38ddc66fbcfef6f53d1b9c6 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 20:55:13 +0100 Subject: [PATCH 08/11] #209 D7: the host's search for calendar and contacts servers `mailcraft_net::dav_find` drives `mailcraft_dav::discovery`: the requests it makes, the SRV and TXT look-up of the domain, and the question for the owner, which waits for the window. A typed address is the only place asked for its kind. It hands back homes and counts, or a kind of failure (`mailcraft_model::DavFindFailure`), never a server's words. Tests run against the stand-in: a typed address, a host the domain sends the search to (asked first; a no sends it nothing), giving up, a refused password, Microsoft and Google, a plain http address and the look-up. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/model/src/dav_find.rs | 78 ++++++++++++++++ crates/model/src/lib.rs | 2 + crates/net/src/dav_find.rs | 150 +++++++++++++++++++++++++++++++ crates/net/src/dav_find_tests.rs | 150 +++++++++++++++++++++++++++++++ crates/net/src/lib.rs | 2 + 5 files changed, 382 insertions(+) create mode 100644 crates/model/src/dav_find.rs create mode 100644 crates/net/src/dav_find.rs create mode 100644 crates/net/src/dav_find_tests.rs diff --git a/crates/model/src/dav_find.rs b/crates/model/src/dav_find.rs new file mode 100644 index 0000000000..ff574ec41b --- /dev/null +++ b/crates/model/src/dav_find.rs @@ -0,0 +1,78 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! What a search for an account's calendar and contacts servers found (#209, D7), as the host +//! hands it to the window: the homes that answered and how much is in them, or why nothing was +//! found, as a kind the window says in its own words. Nothing here is a server's sentence. + +use std::fmt; + +/// The homes a search found, and what is in them. +#[derive(Clone, Default, PartialEq, Eq)] +pub struct DavFound { + /// The calendar homes that answered, absolute; empty when calendars weren't found. + pub calendar_homes: Vec, + /// The address book homes that answered, absolute; empty when contacts weren't found. + pub contact_homes: Vec, + /// The calendars that hold events. + pub calendars: usize, + /// The address books. + pub address_books: usize, + /// What the homes held that isn't read (task lists, plain files, the home itself). + pub passed_over: usize, +} + +/// Only counts: the homes name the owner's servers. +impl fmt::Debug for DavFound { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("DavFound") + .field("calendar_homes", &self.calendar_homes.len()) + .field("contact_homes", &self.contact_homes.len()) + .field("calendars", &self.calendars) + .field("address_books", &self.address_books) + .field("passed_over", &self.passed_over) + .finish() + } +} + +/// Why a search found nothing. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum DavFindFailure { + /// The address, a user name or a typed address can't be used as it is. + BadSettings, + /// The address or a host the search led to is Microsoft's: nothing was sent there. + Microsoft, + /// The address or a host the search led to is Google's: nothing was sent there. + Google, + /// Nobody answered at the places looked at. + Unreachable, + /// No calendar or contacts server at the places looked at. + NotFound, + /// A host asked for a password without saying it keeps calendars or contacts: none was sent. + NotDavServer, + /// A secure connection couldn't be set up (the certificate, for one). + SecureConnection, + /// An answer that can't be read, or a redirect that isn't followed. + Unreadable, + /// The server or the organisation refused. + ServerRefused, + /// The server didn't say who the owner is on it, or where the calendars or contacts are. + NoHome, + /// The server signs in only in ways this version doesn't. + SignInNotSupported, + /// The owner said no to the host the search led to. + Declined, + /// The user name or password wasn't accepted. Nothing else was asked. + SignInRefused, + /// The search went on for too long (redirects, requests). + TooLong, +} + +/// Why the owner is asked before the password may go to a host. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum DavFindQuestion { + /// The host is in the owner's mail domain, but neither the mail server nor one the domain's + /// records name: it may be a web site rather than a calendar server. + OwnDomain, + /// The search was sent to the host, and it isn't one of the owner's. + Elsewhere, +} diff --git a/crates/model/src/lib.rs b/crates/model/src/lib.rs index a17237573b..8fa7366e07 100644 --- a/crates/model/src/lib.rs +++ b/crates/model/src/lib.rs @@ -20,6 +20,7 @@ pub mod contact_sync; mod contact_sync_tests; pub mod dav; pub mod dav_down; +mod dav_find; mod dav_server; pub mod device_limits; #[cfg(test)] @@ -78,6 +79,7 @@ pub use calendar::{ }; pub use contact::{Contact, ContactKey, KeyKind, Labeled, PostalAddress}; pub use dav_down::{DavAsk, DavAskCollection, DavCalendar, DavChange, DavDownload, DavKnown, DavListing, DavProblem, DavRead, DavReadState}; +pub use dav_find::{DavFindFailure, DavFindQuestion, DavFound}; pub use dav_server::{DavCollectionState, DavServer, origin_of}; pub use device_limits::{DeviceLimits, PHONE_DEFAULTS, PHONE_DOWNLOAD, PHONE_KEEP, PHONE_STORAGE}; pub use ews_server::{EwsServer, is_exchange_online, is_google_host, is_microsoft_domain, is_within}; diff --git a/crates/net/src/dav_find.rs b/crates/net/src/dav_find.rs new file mode 100644 index 0000000000..eea6553035 --- /dev/null +++ b/crates/net/src/dav_find.rs @@ -0,0 +1,150 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Finding an account's calendar and contacts servers (#209, D7): the host's side of +//! `mailcraft_dav::discovery`, once the owner pressed Find in File › Info › Calendars and Contacts +//! and not before. +//! +//! The machine decides everything about where the password may go; this only does what it asks: +//! the request it made (no redirect followed here), the SRV and TXT look-up of the domain over +//! DNS-over-HTTPS ([`crate::lookup_dav`], only the domain goes out), and the question for the +//! owner, which waits for the window. An address the owner typed is the only place asked for that +//! kind. What comes back is homes and counts, or a kind of failure ([`DavFindFailure`]), never a +//! server's words. Nothing here is logged but the outcome's kind. + +use mailcraft_dav::discovery::{ConsentReason, Discovery, Failure, Outcome, SrvAnswer, SrvName, Step}; +use mailcraft_dav::http::{HttpExchange, Secret}; +use mailcraft_dav::request::Kind; +use mailcraft_model::{DavFindFailure, DavFindQuestion, DavFound}; + +use crate::dav::Wire; +use crate::dns_srv::{DavRecords, DavService, lookup_dav}; + +/// The most rounds a search is driven: each is a request, a look-up or a question, and the +/// machine bounds its own requests well below this. +const ROUNDS: usize = 512; + +/// What the search starts from. +#[derive(Clone, Copy)] +pub struct DavFindAsk<'a> { + /// The account's address: its domain is where the search looks when nothing is typed. + pub email: &'a str, + /// The account's mail server (its IMAP host), whose name is the owner's; empty for none. + pub mail_host: &'a str, + /// The name that signs in; empty means the address. + pub username: &'a str, + /// The password, sent only where the machine allows it. + pub password: &'a str, + /// The calendars' address the owner typed; empty to search. + pub calendars: &'a str, + /// The contacts' address the owner typed; empty to search. + pub contacts: &'a str, +} + +/// The window's kind for a way the search failed. +fn failure_of(failure: Failure) -> DavFindFailure { + match failure { + Failure::Unreachable => DavFindFailure::Unreachable, + Failure::NotFound => DavFindFailure::NotFound, + Failure::NotDavServer => DavFindFailure::NotDavServer, + Failure::SecureConnection => DavFindFailure::SecureConnection, + Failure::Unreadable | Failure::InsecureRedirect | Failure::PrivateAddress => DavFindFailure::Unreadable, + Failure::ServerRefused => DavFindFailure::ServerRefused, + Failure::NoPrincipal | Failure::NoHome => DavFindFailure::NoHome, + Failure::SignInNotSupported => DavFindFailure::SignInNotSupported, + Failure::Declined => DavFindFailure::Declined, + Failure::SignInRefused => DavFindFailure::SignInRefused, + _ => DavFindFailure::TooLong, + } +} + +/// The look-up the machine asked for, by the fixed services only (`_caldavs._tcp.`). +fn look_up(name: &SrvName, srv: &mut dyn FnMut(DavService, &str) -> Option) -> Option { + let name = name.as_str(); + let (service, domain) = [DavService::CalDav, DavService::CardDav] + .into_iter() + .find_map(|service| name.strip_prefix(service.label()).and_then(|rest| rest.strip_prefix('.')).map(|domain| (service, domain)))?; + let records = srv(service, domain)?; + Some(SrvAnswer { targets: records.targets.into_iter().map(|t| (t.host, t.port)).collect(), path: records.path }) +} + +/// The search, start to end, through `exchange` and `srv`; `question` asks the owner about a host +/// (`None` when the owner gave up: the search ends, declined). +pub fn find_with( + ask: &DavFindAsk<'_>, + exchange: &dyn HttpExchange, + srv: &mut dyn FnMut(DavService, &str) -> Option, + question: &mut dyn FnMut(&str, DavFindQuestion) -> Option, +) -> Result { + let user = if ask.username.trim().is_empty() { ask.email.trim() } else { ask.username.trim() }; + let secret = Secret::basic(user, ask.password).map_err(|_| DavFindFailure::BadSettings)?; + let mut search = Discovery::new(ask.email.trim(), secret, true, true).map_err(|_| DavFindFailure::BadSettings)?; + if !ask.mail_host.trim().is_empty() { + search = search.mail_host(ask.mail_host); + } + for (kind, typed) in [(Kind::Calendar, ask.calendars), (Kind::AddressBook, ask.contacts)] { + if !typed.trim().is_empty() { + search = search.typed(kind, typed).map_err(|_| DavFindFailure::BadSettings)?; + } + } + let mut outcome = Outcome::Failed(Failure::TooManyRedirects); + for _ in 0..ROUNDS { + match search.step() { + Step::Request(request) => { + let result = exchange.exchange(&request); + search.response(result); + } + Step::LookupSrv(name) => { + let answer = look_up(&name, srv); + search.srv(answer); + } + Step::NeedsYes(consent) => { + let why = match consent.reason() { + ConsentReason::OwnDomain => DavFindQuestion::OwnDomain, + ConsentReason::Elsewhere => DavFindQuestion::Elsewhere, + }; + match question(consent.host(), why) { + Some(true) => search.agree(), + Some(false) => search.decline(), + None => return Err(DavFindFailure::Declined), + } + } + Step::Done(done) => { + outcome = done; + break; + } + } + } + match outcome { + Outcome::Found(found) => { + let mut out = DavFound::default(); + if let Some(cal) = found.calendars() { + out.calendar_homes = cal.homes().to_vec(); + out.calendars = cal.collections().calendars.len(); + out.passed_over += cal.collections().passed_over; + } + if let Some(card) = found.contacts() { + out.contact_homes = card.homes().to_vec(); + out.address_books = card.collections().address_books.len(); + out.passed_over += card.collections().passed_over; + } + Ok(out) + } + Outcome::Microsoft => Err(DavFindFailure::Microsoft), + Outcome::Google => Err(DavFindFailure::Google), + Outcome::Failed(failure) => Err(failure_of(failure)), + } +} + +/// The search over the real network: the system's certificates only (a server the system doesn't +/// trust is a [`DavFindFailure::SecureConnection`]), the domain's SRV and TXT records over +/// DNS-over-HTTPS. Blocks: the host runs it on a thread of its own. +pub fn find(ask: &DavFindAsk<'_>, question: &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result { + let wire = Wire::new(""); + let found = find_with(ask, &wire, &mut |service, domain| lookup_dav(service, domain).ok(), question); + log::info!("calendar server search: {:?}", found.as_ref().map(|f| (f.calendars, f.address_books))); + found +} + +#[cfg(test)] +#[path = "dav_find_tests.rs"] +mod tests; diff --git a/crates/net/src/dav_find_tests.rs b/crates/net/src/dav_find_tests.rs new file mode 100644 index 0000000000..a9d7d0ab22 --- /dev/null +++ b/crates/net/src/dav_find_tests.rs @@ -0,0 +1,150 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! The search for an account's calendar and contacts servers, as the host drives it, against the +//! strict stand-in of `mailcraft-dav` (nothing here is a real account's). + +use std::sync::Mutex; + +use mailcraft_dav::href::Origin; +use mailcraft_dav::http::{HttpExchange, HttpRequest, HttpResponse, TransportError}; +use mailcraft_dav::standin::StandIn; +use mailcraft_model::{DavFindFailure, DavFindQuestion}; + +use super::*; +use crate::dns_srv::SrvTarget; + +const USER: &str = "owner@example.org"; +const PASSWORD: &str = "test-only-not-a-secret"; +const DAV: &str = "https://dav.example.net"; + +/// One request that reached the world: its origin, and whether it carried the password. +type Sent = (String, bool); + +/// The stand-in at `DAV`, and the domain's own name, whose well-known address sends the search +/// there. +struct World { + server: StandIn, + log: Mutex>, +} + +impl World { + fn new() -> World { + let server = StandIn::new(DAV, USER, PASSWORD).unwrap(); + server.add_calendar("work", "Work", false); + server.add_calendar("shared", "Shared", true); + server.add_task_list("tasks", "Tasks"); + server.add_address_book("people", "People", false); + World { server, log: Mutex::new(Vec::new()) } + } + + fn to(&self, origin: &str) -> Vec { + self.log.lock().unwrap().iter().filter(|(o, _)| o == origin).cloned().collect() + } +} + +impl HttpExchange for World { + fn exchange(&self, request: &HttpRequest) -> Result { + let origin = Origin::parse(request.url()).unwrap().base(); + self.log.lock().unwrap().push((origin.clone(), request.field("authorization").is_some())); + if request.url().starts_with("https://example.org/.well-known/") { + return Ok(HttpResponse::new(301, Vec::new()).with_field("Location", &format!("{DAV}/dav/"))); + } + if origin == DAV { Ok(self.server.handle(request)) } else { Err(TransportError::Unreachable) } + } +} + +fn ask<'a>(calendars: &'a str, contacts: &'a str, password: &'a str) -> DavFindAsk<'a> { + DavFindAsk { email: USER, mail_host: "", username: "", password, calendars, contacts } +} + +fn no_srv(_: DavService, _: &str) -> Option { + None +} + +#[test] +fn a_typed_address_is_the_only_place_asked_and_its_homes_and_counts_come_back() { + let world = World::new(); + let typed = format!("{DAV}/dav/"); + let found = find_with(&ask(&typed, &typed, PASSWORD), &world, &mut no_srv, &mut |host, _| panic!("asked about {host}")).unwrap(); + assert_eq!(found.calendar_homes, vec![format!("{DAV}/dav/cal/owner/")]); + assert_eq!(found.contact_homes.len(), 1); + assert_eq!((found.calendars, found.address_books), (2, 1)); + assert!(found.passed_over >= 1, "the task list is not read"); + let sent = world.log.lock().unwrap().clone(); + assert!(sent.iter().all(|(origin, _)| origin == DAV), "nowhere but the typed host"); + assert!(!sent[0].1, "the first request carries no password"); + assert!(world.server.violations().is_empty()); +} + +#[test] +fn the_host_the_domain_sends_the_search_to_is_asked_about_and_a_no_sends_it_nothing() { + for yes in [false, true] { + let world = World::new(); + let mut asked = Vec::new(); + let found = find_with(&ask("", "", PASSWORD), &world, &mut no_srv, &mut |host, why| { + asked.push((host.to_string(), why)); + // (Asked before anything went there.) + assert!(world.to(DAV).is_empty()); + Some(yes) + }); + assert_eq!(asked, vec![("dav.example.net".to_string(), DavFindQuestion::Elsewhere)], "one question for both kinds"); + if yes { + let found = found.unwrap(); + assert_eq!((found.calendars, found.address_books), (2, 1)); + assert!(world.to("https://example.org").iter().all(|(_, password)| !password), "the domain's own name gets no password"); + } else { + assert_eq!(found, Err(DavFindFailure::Declined)); + assert!(world.to(DAV).is_empty()); + } + } +} + +#[test] +fn an_owner_who_gave_up_ends_the_search_and_nothing_more_is_sent() { + let world = World::new(); + let found = find_with(&ask("", "", PASSWORD), &world, &mut no_srv, &mut |_, _| None); + assert_eq!(found, Err(DavFindFailure::Declined)); + assert!(world.to(DAV).is_empty()); +} + +#[test] +fn a_refused_password_ends_the_search_at_once() { + let world = World::new(); + let typed = format!("{DAV}/dav/"); + let found = find_with(&ask(&typed, "", "wrong"), &world, &mut no_srv, &mut |_, _| Some(true)); + assert_eq!(found, Err(DavFindFailure::SignInRefused)); + assert_eq!(world.to(DAV).iter().filter(|(_, password)| *password).count(), 1, "tried once, not again"); +} + +#[test] +fn microsoft_and_google_addresses_end_the_search_and_nothing_is_sent() { + for (email, failure) in [("ada@outlook.com", DavFindFailure::Microsoft), ("ada@gmail.com", DavFindFailure::Google)] { + let world = World::new(); + let found = find_with(&DavFindAsk { email, ..ask("", "", PASSWORD) }, &world, &mut no_srv, &mut |_, _| Some(true)); + assert_eq!(found, Err(failure)); + assert!(world.log.lock().unwrap().is_empty()); + } +} + +#[test] +fn a_typed_address_that_is_not_https_is_refused_before_anything_is_sent() { + let world = World::new(); + let found = find_with(&ask("http://dav.example.net/dav/", "", PASSWORD), &world, &mut no_srv, &mut |_, _| Some(true)); + assert_eq!(found, Err(DavFindFailure::BadSettings)); + assert!(world.log.lock().unwrap().is_empty()); +} + +#[test] +fn the_look_up_is_asked_by_the_fixed_service_and_the_domain_only() { + let world = World::new(); + let mut looked = Vec::new(); + let mut srv = |service: DavService, domain: &str| { + looked.push((service, domain.to_string())); + (service == DavService::CalDav) + .then(|| DavRecords { targets: vec![SrvTarget { host: "dav.example.net".into(), port: 443 }], path: Some("/dav/".into()) }) + }; + let found = find_with(&ask("", "", PASSWORD), &world, &mut srv, &mut |_, _| Some(true)).unwrap(); + assert!(looked.contains(&(DavService::CalDav, "example.org".to_string()))); + assert!(looked.contains(&(DavService::CardDav, "example.org".to_string()))); + assert_eq!(found.calendars, 2); +} diff --git a/crates/net/src/lib.rs b/crates/net/src/lib.rs index decfecc030..0df349682e 100644 --- a/crates/net/src/lib.rs +++ b/crates/net/src/lib.rs @@ -35,6 +35,8 @@ mod cert; #[cfg(not(target_arch = "wasm32"))] pub mod dav; #[cfg(not(target_arch = "wasm32"))] +pub mod dav_find; +#[cfg(not(target_arch = "wasm32"))] mod discover; #[cfg(not(target_arch = "wasm32"))] mod dns; From decf2309631bcbbd2fa800dfd0d61bc3368b83d8 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:16:09 +0100 Subject: [PATCH 09/11] =?UTF-8?q?#209=20D7:=20Find=20in=20File=20=E2=80=BA?= =?UTF-8?q?=20Info=20=E2=80=BA=20Calendars=20and=20Contacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Find starts the host's search (`Services::dav_find`) from the typed addresses, or from the account's domain. It signs in with the typed password when the servers have their own, else with the mail password; with the box ticked and nothing typed, nothing is searched. The host's question about a host that isn't the owner's is put to the owner in the window, naming it whole, and one answer goes back. What was found fills the addresses, and Save keeps them; a failure is said in the window's own words. A dialog that goes away stops its search. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- apps/mailcraft/src/dav_find.rs | 75 ++++++++ apps/mailcraft/src/dav_find_flow.rs | 92 ++++++++++ apps/mailcraft/src/main.rs | 7 + crates/i18n/po/cs.po | 135 ++++++++++++++- crates/i18n/po/de.po | 132 +++++++++++++- crates/i18n/po/es.po | 132 +++++++++++++- crates/i18n/po/fr.po | 132 +++++++++++++- crates/i18n/po/hu.po | 132 +++++++++++++- crates/i18n/po/it.po | 132 +++++++++++++- crates/i18n/po/ka.po | 132 +++++++++++++- crates/i18n/po/messages.pot | 132 +++++++++++++- crates/i18n/po/nl.po | 132 +++++++++++++- crates/i18n/po/pl.po | 135 ++++++++++++++- crates/i18n/po/ro.po | 135 ++++++++++++++- crates/i18n/po/zh_CN.po | 129 +++++++++++++- crates/ui-egui/src/dav_find.rs | 83 +++++++++ crates/ui-egui/src/dav_settings.rs | 171 ++++++++++++++++++- crates/ui-egui/src/dav_settings_tests.rs | 131 +++++++++++++- crates/ui-egui/src/lib.rs | 6 + docs/log.d/ROADMAP/progress/209-d7-window.md | 2 +- 20 files changed, 2116 insertions(+), 41 deletions(-) create mode 100644 apps/mailcraft/src/dav_find.rs create mode 100644 apps/mailcraft/src/dav_find_flow.rs create mode 100644 crates/ui-egui/src/dav_find.rs diff --git a/apps/mailcraft/src/dav_find.rs b/apps/mailcraft/src/dav_find.rs new file mode 100644 index 0000000000..e5a7952498 --- /dev/null +++ b/apps/mailcraft/src/dav_find.rs @@ -0,0 +1,75 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! The host's side of Find in File › Info › Calendars and Contacts (#209, D7), on a thread of its +//! own, once the owner pressed Find and not before. +//! +//! The search is `mailcraft_net::dav_find`'s: it decides where the password may go. This only +//! carries its question to the window (`DavFindEvent::Question`), waits for the owner's answer, +//! and tells the window how it ended. A window that closed (the dialog went away) stops it at the +//! next question, and nothing more is told. Nothing here is logged. + +use std::sync::atomic::Ordering; +use std::sync::mpsc::{Receiver, RecvTimeoutError, channel}; +use std::time::Duration; + +use mailcraft_model::{DavFindFailure, DavFindQuestion, DavFound}; +use mailcraft_net::dav_find::DavFindAsk; +use mailcraft_ui_egui::dav_find::{DavFindEvent, DavFindJob}; + +/// The search itself: the real one, or a test's. +pub(crate) type Search<'a> = &'a dyn Fn(&DavFindAsk<'_>, &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result; + +/// Waits for the owner's answer; `None` when the owner gave up. +fn answer(job: &DavFindJob) -> Option { + loop { + match job.answers.recv_timeout(Duration::from_millis(100)) { + Ok(yes) => return Some(yes), + Err(RecvTimeoutError::Timeout) if job.cancel.load(Ordering::Relaxed) => return None, + Err(RecvTimeoutError::Timeout) => {} + Err(RecvTimeoutError::Disconnected) => return None, + } + } +} + +/// Runs a job to its end, telling `emit` of the owner's questions and, last, how it ended (nothing, +/// when the owner has given up). +pub(crate) fn find_with(search: Search<'_>, job: &DavFindJob, emit: &mut dyn FnMut(DavFindEvent)) { + let ask = DavFindAsk { + email: &job.email, + mail_host: &job.mail_host, + username: &job.username, + password: &job.password, + calendars: &job.calendars, + contacts: &job.contacts, + }; + let end = search(&ask, &mut |host, why| { + if job.cancel.load(Ordering::Relaxed) { + return None; + } + emit(DavFindEvent::Question { host: host.to_owned(), why }); + answer(job) + }); + if !job.cancel.load(Ordering::Relaxed) { + emit(DavFindEvent::Finished(end)); + } +} + +/// Runs a job on a thread of its own, waking the window for each thing it tells. +pub(crate) fn run(job: DavFindJob, wake: &egui::Context) -> Receiver { + let (tx, rx) = channel(); + let wake = wake.clone(); + let spawned = std::thread::Builder::new().name("calendar server search".into()).spawn(move || { + find_with(&|ask, question| mailcraft_net::dav_find::find(ask, question), &job, &mut |event| { + // Nobody is listening any more (the dialog closed): stop. + if tx.send(event).is_err() { + job.cancel.store(true, Ordering::Relaxed); + } + wake.request_repaint(); + }); + }); + // A dropped sender reads as nothing found in the window. + if let Err(e) = spawned { + log::error!("couldn't start searching for a calendar server: {e}"); + } + rx +} diff --git a/apps/mailcraft/src/dav_find_flow.rs b/apps/mailcraft/src/dav_find_flow.rs new file mode 100644 index 0000000000..a29cffa264 --- /dev/null +++ b/apps/mailcraft/src/dav_find_flow.rs @@ -0,0 +1,92 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! The host's side of Find (#209, D7): the search's question goes to the window, the owner's +//! answer comes back to it, and a window that went away stops it quietly. The search is a +//! stand-in here; `mailcraft_net::dav_find`'s own tests drive the real one against `mailcraft-dav`'s +//! stand-in server. + +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::mpsc::{Sender, channel}; +use std::sync::{Arc, Mutex}; +use std::time::Duration; + +use mailcraft_model::{DavFindFailure, DavFindQuestion, DavFound}; +use mailcraft_net::dav_find::DavFindAsk; +use mailcraft_ui_egui::dav_find::{DavFindEvent, DavFindJob}; + +use crate::dav_find::find_with; + +fn job() -> (DavFindJob, Sender) { + let (tx, answers) = channel(); + let job = DavFindJob { + email: "ada@example.org".into(), + mail_host: "imap.example.org".into(), + username: String::new(), + password: "test-only-not-a-secret".into(), + calendars: String::new(), + contacts: String::new(), + cancel: Arc::new(AtomicBool::new(false)), + answers, + }; + (job, tx) +} + +/// A search that asks once about `dav.example.net` and finds a calendar there on a yes. +fn asking(ask: &DavFindAsk<'_>, question: &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result { + assert_eq!(ask.email, "ada@example.org"); + match question("dav.example.net", DavFindQuestion::Elsewhere) { + Some(true) => Ok(DavFound { calendar_homes: vec!["https://dav.example.net/cal/ada/".into()], calendars: 1, ..Default::default() }), + _ => Err(DavFindFailure::Declined), + } +} + +#[test] +fn the_question_goes_to_the_window_and_the_answer_comes_back() { + for yes in [true, false] { + let (job, answers) = job(); + let (events, seen) = channel(); + let told = std::thread::scope(|scope| { + scope.spawn(move || find_with(&asking, &job, &mut |event| events.send(event).unwrap())); + let first = seen.recv_timeout(Duration::from_secs(10)).expect("the owner is asked"); + answers.send(yes).unwrap(); + let last = seen.recv_timeout(Duration::from_secs(10)).expect("and told how it ended"); + vec![first, last] + }); + assert_eq!(told[0], DavFindEvent::Question { host: "dav.example.net".into(), why: DavFindQuestion::Elsewhere }); + match &told[1] { + DavFindEvent::Finished(Ok(found)) => assert!(yes && found.calendars == 1), + DavFindEvent::Finished(Err(failure)) => assert!(!yes && *failure == DavFindFailure::Declined), + other => panic!("{other:?}"), + } + } +} + +#[test] +fn a_window_that_went_away_while_the_question_is_open_ends_the_search_quietly() { + let (job, _answers) = job(); + let cancel = job.cancel.clone(); + let told: Arc>> = Arc::default(); + std::thread::scope(|scope| { + let (sink, seen) = (told.clone(), told.clone()); + let handle = scope.spawn(move || find_with(&asking, &job, &mut |event| sink.lock().unwrap().push(event))); + for _ in 0..1_000 { + if !seen.lock().unwrap().is_empty() { + break; + } + std::thread::sleep(Duration::from_millis(5)); + } + cancel.store(true, Ordering::Relaxed); + handle.join().unwrap(); + }); + let told = told.lock().unwrap(); + assert_eq!(told.len(), 1, "the question, and no ending"); + assert!(matches!(told[0], DavFindEvent::Question { .. })); +} + +#[test] +fn a_search_without_questions_tells_its_end_once() { + let (job, _answers) = job(); + let mut told = Vec::new(); + find_with(&|_, _| Err(DavFindFailure::NotFound), &job, &mut |event| told.push(event)); + assert_eq!(told, vec![DavFindEvent::Finished(Err(DavFindFailure::NotFound))]); +} diff --git a/apps/mailcraft/src/main.rs b/apps/mailcraft/src/main.rs index 6dbbe0edc8..9aef5278e2 100644 --- a/apps/mailcraft/src/main.rs +++ b/apps/mailcraft/src/main.rs @@ -39,6 +39,9 @@ mod clipboard_mime; #[cfg(test)] mod control_challenge_flow; mod control_server; +mod dav_find; +#[cfg(test)] +mod dav_find_flow; #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly"))] mod desktop_icons; #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly"))] @@ -1098,6 +1101,7 @@ fn services( let unsubscribe_ctx = ctx.clone(); let subscription_ctx = ctx.clone(); let dav_ctx = ctx.clone(); + let dav_find_ctx = ctx.clone(); let pictures_kept = kept_pictures.clone(); let (images_ctx, images_kept) = (ctx.clone(), kept_pictures.clone()); let wipe_pictures = kept_pictures.clone(); @@ -1321,6 +1325,9 @@ fn services( mailcraft_ui_egui::DavDone { download } }) })), + // Find in File › Info › Calendars and Contacts: the search, on the owner's click, asking + // the window before the password may go to a host that isn't the owner's (#209). + dav_find: Some(Box::new(move |job| dav_find::run(job, &dav_find_ctx))), // A sender's picture for the message list, once the owner turned that on: from // Gravatar, favicon.im or Google, downloaded and kept like a message's pictures. sender_images: Some(Box::new(move |address, wanted| { diff --git a/crates/i18n/po/cs.po b/crates/i18n/po/cs.po index 006bbde1dc..85b0135ed6 100644 --- a/crates/i18n/po/cs.po +++ b/crates/i18n/po/cs.po @@ -758,6 +758,11 @@ msgstr "Pravidlo, které tento editor nezobrazuje; ponechá se beze změny." msgid "A save of the mailbox is still running: try again in a moment" msgstr "Ukládání poštovní schránky stále probíhá: zkuste to za chvíli znovu" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -776,6 +781,11 @@ msgstr "Je uvedena řada i jeden z jejích dnů; nic se nezměnilo." msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Řadu, kterou uchovává server účtu, nelze odsud přesunout do jiného kalendáře: server přesun neumí a dny, které byly změněny samostatně, by se při novém vytvoření mohly ztratit." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5017,7 +5027,7 @@ msgid "Don't Save" msgstr "Neukládat" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Neodesílat" @@ -6022,7 +6032,7 @@ msgid "Filter Tasks" msgstr "Filtrovat úkoly" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Najít" @@ -6057,6 +6067,11 @@ msgstr "Najít čas" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6489,6 +6504,11 @@ msgstr "Nalezeno v DNS vaší domény. Vaše přihlášení půjde na server mim msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Nalezeno v {path}. Nic se neimportuje, dokud nestisknete Importovat." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6705,6 +6725,11 @@ msgstr "Stránka GitHubu je otevřená: zkontrolujte ji a pak odešlete. MailCra msgid "Give it a title first" msgstr "Nejprve zadejte název" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8722,6 +8747,11 @@ msgstr "Prohlédněte si certifikát, který server nyní ukazuje. Dokud se rozh msgid "Look for This Meeting on the Calendar" msgstr "Vyhledat tuto schůzku v kalendáři" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10793,6 +10823,11 @@ msgstr "Žádná událost není otevřená ve vlastním okně" msgid "No appointment matches." msgstr "Žádná událost neodpovídá." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11063,6 +11098,11 @@ msgstr "Zatím žádná pravidla. Pravidlo zakládá, označuje příznakem nebo msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Nejsou zapamatováni žádní odesílatelé. „Vždy stahovat obrázky od“ nad zprávou sem přidá jejího odesílatele nebo jeho doménu." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14819,7 +14859,7 @@ msgid "Searching the server…" msgstr "Prohledávám server…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs msgid "Searching…" msgstr "" @@ -14984,6 +15024,11 @@ msgstr "Přesto odeslat" msgid "Send Cancellation" msgstr "Odeslat zrušení" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18586,6 +18631,21 @@ msgstr "Hledání vašeho serveru Exchange žádá začít znovu s adresou v jin msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Hledání vašeho serveru Exchange bylo předáno na {host}, který není ve vlastní doméně vaší adresy." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18680,6 +18740,11 @@ msgstr "Server nešlo prohledat. Zkuste to za několik minut znovu." msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Server nepřijal uživatelské jméno a heslo. Zkontrolujte je, nebo zadejte uživatelské jméno v Nastavení serveru (DOMÉNA\\uživatel nebo vy@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18704,6 +18769,11 @@ msgstr "Server nepředal zprávy ze složky „{name}“ (počet: {count})" msgid "The server didn't say when other people are busy" msgstr "Server nesdělil, kdy jsou ostatní zaneprázdněni" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18773,6 +18843,11 @@ msgstr[0] "Server účtu {account} informuje {n} pozvanou osobu, aby věděla, msgstr[1] "Server účtu {account} informuje {n} pozvané osoby, aby věděly, že je zrušena." msgstr[2] "Server účtu {account} informuje {n} pozvaných osob, aby věděly, že je zrušena." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18803,6 +18878,11 @@ msgstr "Server odmítl přihlášení tohoto účtu. Znovu se přihlaste pomocí msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Server odmítl přihlášení účtu {name}: přihlaste se znovu" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18820,6 +18900,11 @@ msgstr "Adresa serveru musí začínat https:// a uvádět server (https://mail. msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "Adresu serveru nebo uživatelské jméno nelze použít. Zkontrolujte je v Nastavení serveru." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19300,6 +19385,11 @@ msgstr "Tyto nešlo odstranit. Odstraňte je sami:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19783,6 +19873,16 @@ msgstr "Tato pozvánka má ID schůzky ve vašem kalendáři, ale není od její msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Tato pozvánka má ID schůzky ve vašem kalendáři, ale uvádí jiného organizátora, takže tuto schůzku nemůže změnit." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21801,6 +21901,11 @@ msgstr "Vrátili jste se ze stránky Microsoftu bez přihlášení: buď jste ta msgid "You declined this meeting." msgstr "Tuto schůzku jste odmítli." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26574,6 +26679,14 @@ msgstr[0] "{n} účet ho má" msgstr[1] "{n} účty ho mají" msgstr[2] "{n} účtů ho má" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26628,6 +26741,14 @@ msgstr[0] "{n} bajt" msgstr[1] "{n} bajty" msgstr[2] "{n} bajtů" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27413,6 +27534,14 @@ msgstr[0] "{n} otevřený úkol" msgstr[1] "{n} otevřené úkoly" msgstr[2] "{n} otevřených úkolů" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/de.po b/crates/i18n/po/de.po index b04381ecd0..04c789faf5 100644 --- a/crates/i18n/po/de.po +++ b/crates/i18n/po/de.po @@ -709,6 +709,11 @@ msgstr "Eine Regel, die dieser Editor nicht anzeigt; sie bleibt unverändert erh msgid "A save of the mailbox is still running: try again in a moment" msgstr "Das Speichern des Postfachs läuft noch. Bitte versuchen Sie es gleich noch einmal." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "A secure connection to the server couldn't be set up. Type the server's address in Server settings." @@ -726,6 +731,11 @@ msgstr "Eine Serie und einer ihrer Tage sind beide angegeben; es wurde nichts ge msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Eine Serie, die auf dem Server des Kontos liegt, kann von hier aus nicht in einen anderen Kalender verschoben werden: Der Server kann sie nicht verschieben, und einzeln geänderte Tage könnten beim Neuanlegen verloren gehen." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs msgid "A shared mailbox's automatic replies are set by whoever manages it; MailCraft sets only your own account's" @@ -4762,7 +4772,7 @@ msgid "Don't Save" msgstr "Nicht speichern" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Nicht senden" @@ -5685,7 +5695,7 @@ msgid "Filter Tasks" msgstr "Aufgaben filtern" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs msgid "Find" msgstr "Suchen" @@ -5715,6 +5725,11 @@ msgstr "Zeit finden" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6124,6 +6139,11 @@ msgstr "Im DNS Ihrer Domain gefunden. Ihre Anmeldung geht nur mit Ihrer Zustimmu msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Gefunden unter {path}. Es wird nichts importiert, bis Sie auf „Importieren“ klicken." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6322,6 +6342,11 @@ msgstr "Die GitHub-Seite ist geöffnet: Überprüfen Sie Ihren Beitrag und sende msgid "Give it a title first" msgstr "Geben Sie zuerst einen Titel ein" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8183,6 +8208,11 @@ msgstr "Sehen Sie sich das Zertifikat an, das der Server gerade anzeigt. Währen msgid "Look for This Meeting on the Calendar" msgstr "Diese Besprechung im Kalender suchen" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Look for your certificates and keys again" @@ -10137,6 +10167,11 @@ msgstr "Kein Termin ist in einem eigenen Fenster geöffnet" msgid "No appointment matches." msgstr "Kein passender Termin gefunden." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -10389,6 +10424,11 @@ msgstr "Noch keine Regeln. Eine Regel legt eingehende E-Mails ab, kennzeichnet o msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Keine Absender gespeichert. „Bilder immer herunterladen von“ über einer Nachricht fügt deren Absender oder dessen Domäne hier hinzu." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -13920,7 +13960,7 @@ msgid "Searching the server…" msgstr "Server wird durchsucht…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Suche läuft…" @@ -14085,6 +14125,11 @@ msgstr "Trotzdem senden" msgid "Send Cancellation" msgstr "Absage senden" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -17478,6 +17523,21 @@ msgstr "Die Suche nach Ihrem Exchange-Server fordert dazu auf, mit einer Adresse msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Die Suche nach Ihrem Exchange-Server wurde an {host} weitergeleitet. Dieser Host gehört nicht zur Domäne Ihrer Adresse." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs msgid "The selected message, as .eml" @@ -17568,6 +17628,11 @@ msgstr "Der Server konnte nicht durchsucht werden. Versuchen Sie es in einigen M msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Der Server hat den Benutzernamen und das Passwort nicht akzeptiert. Überprüfen Sie beides oder geben Sie Ihren Benutzernamen in den Servereinstellungen ein (DOMAIN\\user oder you@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -17592,6 +17657,11 @@ msgstr "Der Server hat {count} Nachrichten aus „{name}“ nicht herausgegeben" msgid "The server didn't say when other people are busy" msgstr "Der Server hat nicht mitgeteilt, wann andere gebucht sind" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -17655,6 +17725,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "Der Server von {account} benachrichtigt die {n} eingeladene Person, damit sie weiß, dass es abgesagt ist." msgstr[1] "Der Server von {account} benachrichtigt die {n} eingeladenen Personen, damit sie wissen, dass es abgesagt ist." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server or the organisation wouldn't give its settings. Ask your administrator for the server's address and type it in Server settings." @@ -17680,6 +17755,11 @@ msgstr "Der Server hat die Anmeldung für dieses Konto abgelehnt. Melden Sie sic msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Der Server hat die Anmeldung für {name} abgelehnt: Melden Sie sich erneut an" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -17695,6 +17775,11 @@ msgstr "Die Serveradresse muss mit https:// beginnen und den Server angeben (htt msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "Die Serveradresse oder der Benutzername kann nicht verwendet werden. Überprüfen Sie beides in den Servereinstellungen." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's answer for automatic setup couldn't be read. Type the server's address in Server settings." @@ -18130,6 +18215,11 @@ msgstr "Folgende Elemente konnten nicht entfernt werden. Entfernen Sie diese sel msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -18582,6 +18672,16 @@ msgstr "Diese Einladung hat die ID einer Besprechung in Ihrem Kalender, stammt a msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Diese Einladung enthält die ID einer Besprechung in Ihrem Kalender, nennt aber einen anderen Organisator, weswegen sie diese Besprechung nicht ändern kann." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -20502,6 +20602,11 @@ msgstr "Sie sind von der Seite von Microsoft zurückgekehrt, ohne sich anzumelde msgid "You declined this meeting." msgstr "Sie haben diese Besprechung abgelehnt." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "You didn't agree to send your sign-in to the server the setup led to. Type the server's address in Server settings." @@ -25020,6 +25125,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} Konto hat eine" msgstr[1] "{n} Konten haben eine" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -25068,6 +25180,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} Byte" msgstr[1] "{n} Bytes" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs msgid "{n} calendar item" @@ -25729,6 +25848,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} offene Aufgabe" msgstr[1] "{n} offene Aufgaben" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/es.po b/crates/i18n/po/es.po index f5caa23935..b89f1de556 100644 --- a/crates/i18n/po/es.po +++ b/crates/i18n/po/es.po @@ -758,6 +758,11 @@ msgstr "Una regla que este editor no muestra; se conserva tal como está." msgid "A save of the mailbox is still running: try again in a moment" msgstr "Todavía se está guardando el buzón: vuelva a intentarlo en un momento" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -776,6 +781,11 @@ msgstr "Se nombran a la vez una serie y uno de sus días; no se ha cambiado nada msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Una serie que guarda el servidor de la cuenta no se puede mover a otro calendario desde aquí: el servidor no tiene forma de moverla, y los días que se cambiaron por separado podrían perderse al volver a crearla." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5020,7 +5030,7 @@ msgid "Don't Save" msgstr "No guardar" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "No enviar" @@ -6017,7 +6027,7 @@ msgid "Filter Tasks" msgstr "Filtrar tareas" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Buscar" @@ -6052,6 +6062,11 @@ msgstr "Buscar una hora" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6481,6 +6496,11 @@ msgstr "Encontrado en el DNS de su dominio. Su inicio de sesión va a un servido msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Encontrado en {path}. No se importa nada hasta que pulse Importar." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6697,6 +6717,11 @@ msgstr "La página de GitHub está abierta: revísela y envíela. MailCraft no e msgid "Give it a title first" msgstr "Ponle primero un título" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8704,6 +8729,11 @@ msgstr "Vea el certificado que muestra ahora el servidor. No se inicia sesión m msgid "Look for This Meeting on the Calendar" msgstr "Buscar esta reunión en el calendario" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10774,6 +10804,11 @@ msgstr "No hay ninguna cita abierta en una ventana propia" msgid "No appointment matches." msgstr "Ninguna cita coincide." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11044,6 +11079,11 @@ msgstr "Aún no hay reglas. Una regla archiva, marca o elimina el correo a medid msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "No hay remitentes recordados. «Descargar siempre las imágenes de», encima de un mensaje, agrega aquí su remitente o el dominio del remitente." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14801,7 +14841,7 @@ msgid "Searching the server…" msgstr "Buscando en el servidor…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Buscando…" @@ -14968,6 +15008,11 @@ msgstr "Enviar de todos modos" msgid "Send Cancellation" msgstr "Enviar cancelación" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18560,6 +18605,21 @@ msgstr "La búsqueda de su servidor Exchange pide empezar de nuevo con una direc msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "La búsqueda de su servidor Exchange se redirigió a {host}, que no está en el dominio de su dirección." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18654,6 +18714,11 @@ msgstr "No se pudo buscar en el servidor. Inténtelo de nuevo en unos minutos." msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "El servidor no aceptó el nombre de usuario y la contraseña. Compruébelos o escriba su nombre de usuario en la configuración del servidor (DOMINIO\\usuario o usted@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18678,6 +18743,11 @@ msgstr "El servidor no entregó {count} mensajes de «{name}»" msgid "The server didn't say when other people are busy" msgstr "El servidor no indicó cuándo están ocupadas otras personas" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18744,6 +18814,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "El servidor de {account} avisa a la {n} persona invitada, para que sepa que se ha cancelado." msgstr[1] "El servidor de {account} avisa a las {n} personas invitadas, para que sepan que se ha cancelado." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18774,6 +18849,11 @@ msgstr "El servidor rechazó el inicio de sesión de esta cuenta. Use Enviar y r msgid "The server turned down the sign-in for {name}: sign in again" msgstr "El servidor rechazó el inicio de sesión de {name}: inicie sesión de nuevo" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18791,6 +18871,11 @@ msgstr "La dirección del servidor debe empezar por https:// y nombrar el servid msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "No se puede usar la dirección del servidor o el nombre de usuario. Compruébelos en la configuración del servidor." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19268,6 +19353,11 @@ msgstr "No se pudieron quitar. Quítelos usted mismo:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19744,6 +19834,16 @@ msgstr "Esta invitación tiene el ID de una reunión de su calendario pero no es msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Esta invitación tiene el ID de una reunión de su calendario pero nombra a otro organizador, así que no puede modificar esa reunión." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21751,6 +21851,11 @@ msgstr "Volviste de la página de Microsoft sin haber iniciado sesión: dijiste msgid "You declined this meeting." msgstr "Ha rechazado esta reunión." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26511,6 +26616,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} cuenta tiene una" msgstr[1] "{n} cuentas tienen una" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26559,6 +26671,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} byte" msgstr[1] "{n} bytes" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27262,6 +27381,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} tarea pendiente" msgstr[1] "{n} tareas pendientes" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/fr.po b/crates/i18n/po/fr.po index 5450856f1c..ad49fd1016 100644 --- a/crates/i18n/po/fr.po +++ b/crates/i18n/po/fr.po @@ -757,6 +757,11 @@ msgstr "Une règle que cet éditeur n'affiche pas ; elle est conservée telle qu msgid "A save of the mailbox is still running: try again in a moment" msgstr "Un enregistrement de la boîte aux lettres est encore en cours : réessayez dans un instant" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -775,6 +780,11 @@ msgstr "Une série et l'un de ses jours sont tous deux nommés ; rien n'a ét msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Une série conservée par le serveur du compte ne peut pas être déplacée d'ici vers un autre calendrier : le serveur ne permet pas de la déplacer, et les jours modifiés individuellement pourraient être perdus en la recréant." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5003,7 +5013,7 @@ msgid "Don't Save" msgstr "Ne pas enregistrer" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Ne pas envoyer" @@ -5993,7 +6003,7 @@ msgid "Filter Tasks" msgstr "Filtrer les tâches" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Rechercher" @@ -6028,6 +6038,11 @@ msgstr "Trouver un horaire" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6455,6 +6470,11 @@ msgstr "Trouvé dans le DNS de votre domaine. Votre connexion n'est envoyée à msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Trouvé dans {path}. Rien n'est importé avant que vous appuyiez sur Importer." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6669,6 +6689,11 @@ msgstr "La page de GitHub est ouverte : vérifiez-la, puis envoyez. MailCraft n' msgid "Give it a title first" msgstr "Donnez-lui d'abord un titre" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8665,6 +8690,11 @@ msgstr "Regardez le certificat que le serveur présente maintenant. Rien n'est c msgid "Look for This Meeting on the Calendar" msgstr "Rechercher cette réunion dans le calendrier" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10728,6 +10758,11 @@ msgstr "Aucun rendez-vous n'est ouvert dans une fenêtre distincte" msgid "No appointment matches." msgstr "Aucun rendez-vous ne correspond." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -10997,6 +11032,11 @@ msgstr "Aucune règle pour l'instant. Une règle classe, marque d'un indicateur msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Aucun expéditeur n'est mémorisé. « Toujours télécharger les images de » au-dessus d'un message ajoute ici son expéditeur ou le domaine de son expéditeur." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14729,7 +14769,7 @@ msgid "Searching the server…" msgstr "Recherche sur le serveur…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Recherche…" @@ -14896,6 +14936,11 @@ msgstr "Envoyer quand même" msgid "Send Cancellation" msgstr "Envoyer l'annulation" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18477,6 +18522,21 @@ msgstr "La recherche de votre serveur Exchange demande de recommencer avec une a msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "La recherche de votre serveur Exchange a été redirigée vers {host}, qui ne se trouve pas dans le domaine de votre adresse." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18571,6 +18631,11 @@ msgstr "Le serveur n'a pas pu être interrogé. Réessayez dans quelques minutes msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Le serveur n'a pas accepté le nom d'utilisateur et le mot de passe. Vérifiez-les, ou saisissez votre nom d'utilisateur dans les paramètres du serveur (DOMAINE\\utilisateur ou you@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18595,6 +18660,11 @@ msgstr "Le serveur n'a pas transmis {count} messages de « {name} »" msgid "The server didn't say when other people are busy" msgstr "Le serveur n'a pas indiqué quand les autres personnes sont occupées" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18661,6 +18731,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "Le serveur de {account} prévient la {n} personne invitée, pour qu'elle sache que c'est annulé." msgstr[1] "Le serveur de {account} prévient les {n} personnes invitées, pour qu'elles sachent que c'est annulé." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18691,6 +18766,11 @@ msgstr "Le serveur a refusé la connexion pour ce compte. Utilisez Envoyer/Recev msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Le serveur a refusé la connexion pour {name} : reconnectez-vous" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18708,6 +18788,11 @@ msgstr "L'adresse du serveur doit commencer par https:// et nommer le serveur (h msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "L'adresse du serveur ou le nom d'utilisateur est inutilisable. Vérifiez-les dans les paramètres du serveur." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19184,6 +19269,11 @@ msgstr "Ceux-ci n'ont pas pu être supprimés. Supprimez-les vous-même :" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19660,6 +19750,16 @@ msgstr "Cette invitation porte l'identifiant d'une réunion de votre calendrier msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Cette invitation porte l'identifiant d'une réunion de votre calendrier mais désigne un autre organisateur, elle ne peut donc pas modifier cette réunion." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21656,6 +21756,11 @@ msgstr "Vous êtes revenu de la page de Microsoft sans vous être connecté : vo msgid "You declined this meeting." msgstr "Vous avez refusé cette réunion." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26413,6 +26518,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} compte en a une" msgstr[1] "{n} comptes en ont une" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26461,6 +26573,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} octet" msgstr[1] "{n} octets" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27164,6 +27283,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} tâche en cours" msgstr[1] "{n} tâches en cours" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/hu.po b/crates/i18n/po/hu.po index 01f2ef5148..dc361bb223 100644 --- a/crates/i18n/po/hu.po +++ b/crates/i18n/po/hu.po @@ -762,6 +762,11 @@ msgstr "Ez a szerkesztő nem jeleníti meg ezt a szabályt; változatlanul megma msgid "A save of the mailbox is still running: try again in a moment" msgstr "A postafiók mentése még mindig folyamatban van: próbálja újra egy pillanat alatt" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -780,6 +785,11 @@ msgstr "Egy sorozat és annak egyik napja is meg van adva; semmi sem változott. msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "A kiszolgálón tárolt sorozat innen nem helyezhető át másik naptárba. A kiszolgáló nem támogatja az áthelyezést. A sorozat újralétrehozásakor elveszhetnek az egyenként módosított előfordulások." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5016,7 +5026,7 @@ msgid "Don't Save" msgstr "Ne ments!" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Ne küldj!" @@ -6009,7 +6019,7 @@ msgid "Filter Tasks" msgstr "Feladatok szűrése" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Keresés" @@ -6044,6 +6054,11 @@ msgstr "Időpont keresése" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6471,6 +6486,11 @@ msgstr "A beiratkozásod egy olyan szerverre megy, ami nem a te domained, csak m msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Megtalálva itt: {path}. Az importálás az Importálás gombbal indítható." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6685,6 +6705,11 @@ msgstr "GitHub oldala nyitva van: ellenőrizze, majd adja be. MailCraft nem kül msgid "Give it a title first" msgstr "Először adjon meg egy címet" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8699,6 +8724,11 @@ msgstr "Nézd meg a tanúsítvány, amit a szerver mutat, semmi sincs aláírva, msgid "Look for This Meeting on the Calendar" msgstr "Keresd meg ezt a találkozót a naptárban" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10766,6 +10796,11 @@ msgstr "Nincs szabad időpont a saját ablakában." msgid "No appointment matches." msgstr "Nincs találka." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11036,6 +11071,11 @@ msgstr "Még nincsenek szabályok. A szabályfájlok, zászlók vagy töröli a msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Nem emlékeznek a feladókra. \"Mindig tölts le képeket\" felett egy üzenet ad hozzá a feladó vagy a feladó tartománya itt." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14792,7 +14832,7 @@ msgid "Searching the server…" msgstr "A szerver keresése…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Keresés…" @@ -14959,6 +14999,11 @@ msgstr "Küldés mindenképp" msgid "Send Cancellation" msgstr "Törlés küldése" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18554,6 +18599,21 @@ msgstr "A Exchange szerver keresése egy másik domain-en lévő címmel, {host} msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Az Exchange-kiszolgáló keresését átirányították ide: {host}. Ez a kiszolgáló az e-mail-címétől eltérő tartományban van." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18648,6 +18708,11 @@ msgstr "A szervert nem sikerült átkeresni. Próbálja újra néhány perc múl msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "A szerver nem fogadta el a felhasználó nevét és jelszavát. Ellenőrizze őket, vagy írja be a felhasználónevét a kiszolgáló beállításaiban (DOMAIN\\user or you@p példán.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18672,6 +18737,11 @@ msgstr "A szerver nem adta át a {count} üzeneteit {name}-ról." msgid "The server didn't say when other people are busy" msgstr "A szerver nem mondta, hogy mikor vannak mások elfoglaltak." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18738,6 +18808,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "A(z) {account} kiszolgálója értesíti a(z) {n} meghívott személyt, hogy tudják, le van mondva." msgstr[1] "A(z) {account} kiszolgálója értesíti a(z) {n} meghívott személyt, hogy tudják, le van mondva." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18768,6 +18843,11 @@ msgstr "A szerver lehalkította a fiók bejelentkezését. A Send/Receive haszn msgid "The server turned down the sign-in for {name}: sign in again" msgstr "A szerver lehalkította a {name} bejelentkezését: jelentkezzen be újra" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18785,6 +18865,11 @@ msgstr "A szerver címét a https://-vel kell kezdeni, és meg kell nevezni a sz msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "A kiszolgáló címe vagy a felhasználó neve nem használható. Ellenőrizze őket a kiszolgáló beállításaiban." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19262,6 +19347,11 @@ msgstr "Ezeket nem lehetett eltávolítani." msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19738,6 +19828,16 @@ msgstr "Ez a meghívás a naptáradban egy találkozó azonosítójával van ell msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Ez a meghívás egy találkozó azonosítóját tartalmazza a naptáradban, de nevezz el egy másik szervezőt, így nem változtathat ezen a találkozón." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21744,6 +21844,11 @@ msgstr "Bejelentkezés nélkül tért vissza a Microsoft oldaláról: ott nemet msgid "You declined this meeting." msgstr "Elutasította ezt az értekezletet." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26507,6 +26612,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} fióknak van" msgstr[1] "{n} fióknak van" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26555,6 +26667,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} bájt" msgstr[1] "{n} bájt" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27258,6 +27377,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} nyitott feladat" msgstr[1] "{n} nyitott feladat" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/it.po b/crates/i18n/po/it.po index 6058cefd5e..0e6e74b719 100644 --- a/crates/i18n/po/it.po +++ b/crates/i18n/po/it.po @@ -758,6 +758,11 @@ msgstr "Una regola che questo editor non mostra; viene conservata così com'è." msgid "A save of the mailbox is still running: try again in a moment" msgstr "Un salvataggio della casella è ancora in corso: riprova tra un momento" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -776,6 +781,11 @@ msgstr "Sono indicati sia una serie sia uno dei suoi giorni; non è stato modifi msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Una serie conservata sul server dell'account non può essere spostata da qui in un altro calendario: il server non consente di spostarla, e ricreandola si potrebbero perdere i giorni modificati singolarmente." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5016,7 +5026,7 @@ msgid "Don't Save" msgstr "Non salvare" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Non inviare" @@ -6013,7 +6023,7 @@ msgid "Filter Tasks" msgstr "Filtra attività" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Trova" @@ -6048,6 +6058,11 @@ msgstr "Trova un orario" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6477,6 +6492,11 @@ msgstr "Trovato nel DNS del tuo dominio. Il tuo accesso va a un server esterno a msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Trovato in {path}. Non viene importato nulla finché non premi Importa." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6693,6 +6713,11 @@ msgstr "La pagina di GitHub è aperta: controllala, poi invia. MailCraft non ha msgid "Give it a title first" msgstr "Prima dagli un titolo" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8699,6 +8724,11 @@ msgstr "Esamina il certificato che il server presenta ora. Mentre decidi non vie msgid "Look for This Meeting on the Calendar" msgstr "Cerca questa riunione nel calendario" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10768,6 +10798,11 @@ msgstr "Nessun appuntamento è aperto in una finestra separata" msgid "No appointment matches." msgstr "Nessun appuntamento corrisponde." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11036,6 +11071,11 @@ msgstr "Ancora nessuna regola. Una regola archivia, contrassegna o elimina la po msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Nessun mittente memorizzato. «Scarica sempre le immagini da» sopra un messaggio aggiunge qui il mittente o il suo dominio." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14786,7 +14826,7 @@ msgid "Searching the server…" msgstr "Ricerca sul server…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Ricerca in corso…" @@ -14952,6 +14992,11 @@ msgstr "Invia comunque" msgid "Send Cancellation" msgstr "Invia annullamento" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18539,6 +18584,21 @@ msgstr "La ricerca del server Exchange chiede di ripartire con un indirizzo di u msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "La ricerca del server Exchange è stata inoltrata a {host}, che non appartiene al dominio del tuo indirizzo." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18633,6 +18693,11 @@ msgstr "Impossibile eseguire la ricerca sul server. Riprova tra qualche minuto." msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Il server non ha accettato nome utente e password. Controllali, oppure scrivi il nome utente in Impostazioni server (DOMINIO\\utente oppure tu@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18657,6 +18722,11 @@ msgstr "Il server non ha consegnato {count} messaggi di «{name}»" msgid "The server didn't say when other people are busy" msgstr "Il server non ha indicato quando gli altri sono occupati" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18723,6 +18793,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "Il server di {account} avvisa la {n} persona invitata, perché sappia che è annullato." msgstr[1] "Il server di {account} avvisa le {n} persone invitate, perché sappiano che è annullato." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18753,6 +18828,11 @@ msgstr "Il server ha rifiutato l'accesso per questo account. Usa Invia/Ricevi pe msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Il server ha rifiutato l'accesso per {name}: accedi di nuovo" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18770,6 +18850,11 @@ msgstr "L'indirizzo del server deve iniziare con https:// e indicare il server ( msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "L'indirizzo del server o il nome utente non sono utilizzabili. Controllali in Impostazioni server." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19247,6 +19332,11 @@ msgstr "Impossibile rimuoverli. Rimuovili tu stesso:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19721,6 +19811,16 @@ msgstr "Questo invito ha l'ID di una riunione presente nel tuo calendario ma non msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Questo invito ha l'ID di una riunione presente nel tuo calendario ma indica un altro organizzatore, quindi non può modificarla." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21726,6 +21826,11 @@ msgstr "Sei tornato dalla pagina di Microsoft senza aver effettuato l'accesso: l msgid "You declined this meeting." msgstr "Questa riunione è stata rifiutata." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26486,6 +26591,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} account ne ha una" msgstr[1] "{n} account ne hanno una" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26534,6 +26646,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} byte" msgstr[1] "{n} byte" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27237,6 +27356,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} attività aperta" msgstr[1] "{n} attività aperte" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/ka.po b/crates/i18n/po/ka.po index 5ed9900ce9..648bc2c673 100644 --- a/crates/i18n/po/ka.po +++ b/crates/i18n/po/ka.po @@ -756,6 +756,11 @@ msgstr "წესი, რომელსაც ეს რედაქტორ msgid "A save of the mailbox is still running: try again in a moment" msgstr "საფოსტო ყუთის შენახვა ჯერ კიდევ მიმდინარეობს: სცადეთ ცოტა ხანში" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -774,6 +779,11 @@ msgstr "მითითებულია როგორც სერია, msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "სერია, რომელსაც ანგარიშის სერვერი ინახავს, აქედან სხვა კალენდარში ვერ გადავა: სერვერს მისი გადატანა არ შეუძლია, ხელახლა შექმნისას კი ცალკე შეცვლილი დღეები შეიძლება დაიკარგოს." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5008,7 +5018,7 @@ msgid "Don't Save" msgstr "არ შეინახოს" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "არ გაიგზავნოს" @@ -6004,7 +6014,7 @@ msgid "Filter Tasks" msgstr "დავალებების ფილტრი" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "ძებნა" @@ -6039,6 +6049,11 @@ msgstr "დროის ძებნა" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6467,6 +6482,11 @@ msgstr "ნაპოვნია თქვენი დომენის DNS- msgid "Found in {path}. Nothing is imported until you press Import." msgstr "ნაპოვნია აქ: {path}. სანამ „იმპორტს“ არ დააჭერთ, არაფერი შემოიტანება." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6682,6 +6702,11 @@ msgstr "GitHub-ის გვერდი გახსნილია: შეა msgid "Give it a title first" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8681,6 +8706,11 @@ msgstr "ნახეთ სერტიფიკატი, რომელსა msgid "Look for This Meeting on the Calendar" msgstr "ამ შეხვედრის კალენდარში მოძებნა" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10743,6 +10773,11 @@ msgstr "არცერთი ჩანაწერი არ არის გ msgid "No appointment matches." msgstr "შესაბამისი ჩანაწერი არ არის." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11011,6 +11046,11 @@ msgstr "წესები ჯერ არ არის. წესი შემ msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "დამახსოვრებული გამგზავნები არ არის. წერილის ზემოთ ღილაკი „სურათების ყოველთვის ჩამოტვირთვა გამგზავნისგან“ აქ მის გამგზავნს ან გამგზავნის დომენს ამატებს." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14743,7 +14783,7 @@ msgid "Searching the server…" msgstr "სერვერზე ძიება…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "ძიება…" @@ -14910,6 +14950,11 @@ msgstr "მაინც გაგზავნა" msgid "Send Cancellation" msgstr "გაუქმების გაგზავნა" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18488,6 +18533,21 @@ msgstr "თქვენი Exchange სერვერის ძიება ი msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "თქვენი Exchange სერვერის ძიება გადამისამართდა სერვერზე {host}, რომელიც თქვენი მისამართის დომენში არ არის." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18581,6 +18641,11 @@ msgstr "სერვერზე ძიება ვერ მოხერხდ msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "სერვერმა მომხმარებლის სახელი და პაროლი არ მიიღო. შეამოწმეთ ისინი ან შეიყვანეთ მომხმარებლის სახელი სერვერის პარამეტრებში (DOMAIN\\user ან you@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18605,6 +18670,11 @@ msgstr "სერვერმა საქაღალდიდან „{name} msgid "The server didn't say when other people are busy" msgstr "სერვერმა არ თქვა, როდის არიან სხვები დაკავებული" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18671,6 +18741,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "{account}-ის სერვერი მოწვეულ პირებს ({n}) ატყობინებს, რომ იცოდნენ, რომ გაუქმდა." msgstr[1] "{account}-ის სერვერი მოწვეულ პირებს ({n}) ატყობინებს, რომ იცოდნენ, რომ გაუქმდა." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18701,6 +18776,11 @@ msgstr "სერვერმა ამ ანგარიშით შესვ msgid "The server turned down the sign-in for {name}: sign in again" msgstr "სერვერმა ანგარიშით {name} შესვლა უარყო: ხელახლა შედით" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18718,6 +18798,11 @@ msgstr "სერვერის მისამართი უნდა იწ msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "სერვერის მისამართის ან მომხმარებლის სახელის გამოყენება შეუძლებელია. შეამოწმეთ ისინი სერვერის პარამეტრებში." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19193,6 +19278,11 @@ msgstr "ესენი ვერ წაიშალა. წაშალეთ msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19668,6 +19758,16 @@ msgstr "ამ მოწვევას თქვენს კალენდა msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "ამ მოწვევას თქვენს კალენდარში არსებული შეხვედრის ID აქვს, მაგრამ სხვა ორგანიზატორს ასახელებს, ამიტომ იმ შეხვედრას ვერ შეცვლის." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21674,6 +21774,11 @@ msgstr "" msgid "You declined this meeting." msgstr "თქვენ ეს შეხვედრა უარყავით." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26424,6 +26529,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "ხელმოწერა აქვს {n} ანგარიშს" msgstr[1] "ხელმოწერა აქვს {n} ანგარიშს" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26472,6 +26584,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} ბაიტი" msgstr[1] "{n} ბაიტი" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27173,6 +27292,13 @@ msgid_plural "{n} open tasks" msgstr[0] "ღია დავალება: {n}" msgstr[1] "ღია დავალება: {n}" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/messages.pot b/crates/i18n/po/messages.pot index ec59e0f2e5..725bac5eb7 100644 --- a/crates/i18n/po/messages.pot +++ b/crates/i18n/po/messages.pot @@ -633,6 +633,11 @@ msgstr "" msgid "A save of the mailbox is still running: try again in a moment" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "A secure connection to the server couldn't be set up. Type the server's address in Server settings." @@ -648,6 +653,11 @@ msgstr "" msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs msgid "A shared mailbox's automatic replies are set by whoever manages it; MailCraft sets only your own account's" @@ -4178,7 +4188,7 @@ msgid "Don't Save" msgstr "" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs msgid "Don't Send" msgstr "" @@ -5003,7 +5013,7 @@ msgid "Filter Tasks" msgstr "" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs msgid "Find" msgstr "" @@ -5032,6 +5042,11 @@ msgstr "" msgid "Find a font" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs msgid "Find next spelling error" @@ -5387,6 +5402,11 @@ msgstr "" msgid "Found in {path}. Nothing is imported until you press Import." msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs msgid "Found {n} folder" @@ -5566,6 +5586,11 @@ msgstr "" msgid "Give it a title first" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -7234,6 +7259,11 @@ msgstr "" msgid "Look for This Meeting on the Calendar" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs msgid "Look for your certificates and keys again" @@ -8943,6 +8973,11 @@ msgstr "" msgid "No appointment matches." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs msgid "No categories yet" @@ -9168,6 +9203,11 @@ msgstr "" msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "No server answered at the usual places for this address. Check the network connection, or type the server's address in Server settings." @@ -12280,7 +12320,7 @@ msgid "Searching the server…" msgstr "" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs msgid "Searching…" msgstr "" @@ -12419,6 +12459,11 @@ msgstr "" msgid "Send Cancellation" msgstr "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs msgid "Send Later" @@ -15416,6 +15461,21 @@ msgstr "" msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs msgid "The selected message, as .eml" @@ -15496,6 +15556,11 @@ msgstr "" msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs msgid "The server didn't delete {name}{why}: it is back." @@ -15516,6 +15581,11 @@ msgstr "" msgid "The server didn't say when other people are busy" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs msgid "The server didn't send the messages. Try again in a few minutes." @@ -15572,6 +15642,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "" msgstr[1] "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server or the organisation wouldn't give its settings. Ask your administrator for the server's address and type it in Server settings." @@ -15597,6 +15672,11 @@ msgstr "" msgid "The server turned down the sign-in for {name}: sign in again" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -15612,6 +15692,11 @@ msgstr "" msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "The server's answer for automatic setup couldn't be read. Type the server's address in Server settings." @@ -16013,6 +16098,11 @@ msgstr "" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs msgid "These tasks exist only on this computer. Choose the Microsoft account whose To Do gets them. Until you choose, they stay here and nothing of them is sent." @@ -16412,6 +16502,16 @@ msgstr "" msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs msgid "This is a development build: it checks only when you press Check for Updates." @@ -18073,6 +18173,11 @@ msgstr "" msgid "You declined this meeting." msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs msgid "You didn't agree to send your sign-in to the server the setup led to. Type the server's address in Server settings." @@ -22053,6 +22158,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "" msgstr[1] "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs msgid "{n} appointment" @@ -22095,6 +22207,13 @@ msgid_plural "{n} bytes" msgstr[0] "" msgstr[1] "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs msgid "{n} calendar item" @@ -22710,6 +22829,13 @@ msgid_plural "{n} open tasks" msgstr[0] "" msgstr[1] "" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs msgid "{n} part of a message couldn't be read from the mailbox's content folder" diff --git a/crates/i18n/po/nl.po b/crates/i18n/po/nl.po index 9ff133e47a..079674caa2 100644 --- a/crates/i18n/po/nl.po +++ b/crates/i18n/po/nl.po @@ -756,6 +756,11 @@ msgstr "Een regel die deze editor niet toont; hij blijft ongewijzigd bewaard." msgid "A save of the mailbox is still running: try again in a moment" msgstr "Het opslaan van het postvak is nog bezig: probeer het zo meteen opnieuw" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -774,6 +779,11 @@ msgstr "Een reeks en een van haar dagen worden allebei genoemd; er is niets gewi msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Een reeks die de server van het account bewaart, kan vanaf hier niet naar een andere agenda worden verplaatst: de server kan een reeks niet verplaatsen, en dagen die afzonderlijk zijn gewijzigd, kunnen verloren gaan bij het opnieuw maken." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -4849,7 +4859,7 @@ msgid "Don't Save" msgstr "Niet opslaan" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Niet verzenden" @@ -5798,7 +5808,7 @@ msgid "Filter Tasks" msgstr "Taken filteren" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs msgid "Find" msgstr "Zoeken" @@ -5830,6 +5840,11 @@ msgstr "Een tijd zoeken" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6231,6 +6246,11 @@ msgstr "Gevonden in het DNS van uw domein. Uw aanmelding gaat pas naar een serve msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Gevonden in {path}. Er wordt niets geïmporteerd totdat u op Importeren drukt." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6439,6 +6459,11 @@ msgstr "De pagina van GitHub is open: controleer die en dien hem daarna in. Mail msgid "Give it a title first" msgstr "Geef het eerst een titel" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8392,6 +8417,11 @@ msgstr "Bekijk het certificaat dat de server nu toont. Er wordt niet aangemeld z msgid "Look for This Meeting on the Calendar" msgstr "Deze vergadering in de agenda zoeken" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10390,6 +10420,11 @@ msgstr "Er is geen afspraak geopend in een eigen venster" msgid "No appointment matches." msgstr "Geen afspraak komt overeen." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -10659,6 +10694,11 @@ msgstr "Nog geen regels. Een regel bergt e-mail op, markeert die of verwijdert d msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Er zijn geen afzenders onthouden. „Altijd afbeeldingen downloaden van” boven een bericht voegt hier de afzender of het domein van de afzender toe." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14298,7 +14338,7 @@ msgid "Searching the server…" msgstr "Bezig met zoeken op de server…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Zoeken…" @@ -14454,6 +14494,11 @@ msgstr "Toch verzenden" msgid "Send Cancellation" msgstr "Annulering verzenden" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -17991,6 +18036,21 @@ msgstr "Het zoeken naar uw Exchange-server vraagt om opnieuw te beginnen met een msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Het zoeken naar uw Exchange-server is doorgestuurd naar {host}, dat niet in het eigen domein van uw adres ligt." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18085,6 +18145,11 @@ msgstr "De server kon niet worden doorzocht. Probeer het over een paar minuten o msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "De server heeft de gebruikersnaam en het wachtwoord niet geaccepteerd. Controleer ze, of typ uw gebruikersnaam bij Serverinstellingen (DOMAIN\\user of naam@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18109,6 +18174,11 @@ msgstr "De server heeft {count} berichten uit \"{name}\" niet gegeven" msgid "The server didn't say when other people are busy" msgstr "De server heeft niet aangegeven wanneer andere personen bezet zijn" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18175,6 +18245,11 @@ msgid_plural "The server of {account} tells the {n} people invited, so that they msgstr[0] "De server van {account} licht de {n} uitgenodigde persoon in, zodat die weet dat het geannuleerd is." msgstr[1] "De server van {account} licht de {n} uitgenodigde personen in, zodat ze weten dat het geannuleerd is." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18205,6 +18280,11 @@ msgstr "De server heeft de aanmelding voor dit account geweigerd. Gebruik Verzen msgid "The server turned down the sign-in for {name}: sign in again" msgstr "De server heeft de aanmelding voor {name} geweigerd: meld u opnieuw aan" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18222,6 +18302,11 @@ msgstr "Het adres van de server moet beginnen met https:// en de server noemen ( msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "Het adres van de server of de gebruikersnaam kan niet worden gebruikt. Controleer ze bij Serverinstellingen." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18695,6 +18780,11 @@ msgstr "Deze konden niet worden verwijderd. Verwijder ze zelf:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19168,6 +19258,16 @@ msgstr "Deze uitnodiging heeft de id van een vergadering in uw agenda, maar komt msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Deze uitnodiging heeft de id van een vergadering in uw agenda, maar noemt een andere organisator, en kan die vergadering dus niet wijzigen." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21137,6 +21237,11 @@ msgstr "U bent teruggekeerd van de pagina van Microsoft zonder aan te melden: u msgid "You declined this meeting." msgstr "U hebt deze vergadering geweigerd." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -25884,6 +25989,13 @@ msgid_plural "{n} accounts have one" msgstr[0] "{n} account heeft er een" msgstr[1] "{n} accounts hebben er een" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -25932,6 +26044,13 @@ msgid_plural "{n} bytes" msgstr[0] "{n} byte" msgstr[1] "{n} bytes" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -26634,6 +26753,13 @@ msgid_plural "{n} open tasks" msgstr[0] "{n} openstaande taak" msgstr[1] "{n} openstaande taken" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/pl.po b/crates/i18n/po/pl.po index 4d6c90eb42..2280ce6977 100644 --- a/crates/i18n/po/pl.po +++ b/crates/i18n/po/pl.po @@ -759,6 +759,11 @@ msgstr "Reguła, której ten edytor nie pokazuje; zostaje bez zmian." msgid "A save of the mailbox is still running: try again in a moment" msgstr "Zapis skrzynki pocztowej nadal trwa: spróbuj ponownie za chwilę" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -777,6 +782,11 @@ msgstr "Podano jednocześnie serię i jeden z jej dni; nic nie zostało zmienion msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "Serii przechowywanej na serwerze konta nie można stąd przenieść do innego kalendarza: serwer nie umożliwia przenoszenia, a dni zmienione osobno mogłyby zostać utracone przy tworzeniu jej od nowa." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5028,7 +5038,7 @@ msgid "Don't Save" msgstr "Nie zapisuj" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Nie wysyłaj" @@ -6033,7 +6043,7 @@ msgid "Filter Tasks" msgstr "Filtruj zadania" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Znajdź" @@ -6068,6 +6078,11 @@ msgstr "Znajdź termin" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6500,6 +6515,11 @@ msgstr "Znaleziono w DNS Twojej domeny. Logowanie trafia do serwera spoza Twojej msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Znaleziono w {path}. Nic nie jest importowane, dopóki nie naciśniesz Importuj." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6717,6 +6737,11 @@ msgstr "Strona GitHub jest otwarta: sprawdź ją, a potem wyślij. MailCraft nic msgid "Give it a title first" msgstr "Najpierw nadaj tytuł" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8735,6 +8760,11 @@ msgstr "Obejrzyj certyfikat, który serwer pokazuje teraz. Do czasu Twojej decyz msgid "Look for This Meeting on the Calendar" msgstr "Znajdź to spotkanie w kalendarzu" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10809,6 +10839,11 @@ msgstr "Żaden termin nie jest otwarty we własnym oknie" msgid "No appointment matches." msgstr "Żaden termin nie pasuje." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11079,6 +11114,11 @@ msgstr "Brak reguł. Reguła przenosi do folderu, oflagowuje lub usuwa pocztę w msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Nie zapamiętano żadnych nadawców. Opcja „Zawsze pobieraj obrazy od” nad wiadomością dodaje tutaj jej nadawcę lub domenę nadawcy." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14843,7 +14883,7 @@ msgid "Searching the server…" msgstr "Przeszukiwanie serwera…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Wyszukiwanie…" @@ -15010,6 +15050,11 @@ msgstr "Wyślij mimo to" msgid "Send Cancellation" msgstr "Wyślij anulowanie" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18614,6 +18659,21 @@ msgstr "Wyszukiwanie serwera Exchange prosi o ponowne rozpoczęcie z adresem w i msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Wyszukiwanie serwera Exchange zostało przekierowane do {host}, który nie należy do domeny Twojego adresu." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18708,6 +18768,11 @@ msgstr "Nie można przeszukać serwera. Spróbuj ponownie za kilka minut." msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Serwer nie przyjął nazwy użytkownika i hasła. Sprawdź je lub wpisz nazwę użytkownika w Ustawieniach serwera (DOMENA\\użytkownik lub ty@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18732,6 +18797,11 @@ msgstr "Serwer nie wydał wiadomości w liczbie {count} z „{name}”" msgid "The server didn't say when other people are busy" msgstr "Serwer nie podał, kiedy inne osoby są zajęte" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18801,6 +18871,11 @@ msgstr[0] "Serwer {account} powiadamia {n} zaproszoną osobę, aby wiedziała, msgstr[1] "Serwer {account} powiadamia {n} zaproszone osoby, aby wiedziały, że spotkanie jest odwołane." msgstr[2] "Serwer {account} powiadamia {n} zaproszonych osób, aby wiedziały, że spotkanie jest odwołane." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18831,6 +18906,11 @@ msgstr "Serwer odrzucił logowanie do tego konta. Użyj opcji Wyślij/Odbierz, a msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Serwer odrzucił logowanie do {name}: zaloguj się ponownie" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18848,6 +18928,11 @@ msgstr "Adres serwera musi zaczynać się od https:// i wskazywać serwer (https msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "Adres serwera lub nazwa użytkownika są nieprawidłowe. Sprawdź je w Ustawieniach serwera." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19328,6 +19413,11 @@ msgstr "Nie można tego usunąć. Usuń to samodzielnie:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19811,6 +19901,16 @@ msgstr "To zaproszenie ma identyfikator spotkania z Twojego kalendarza, ale nie msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "To zaproszenie ma identyfikator spotkania z Twojego kalendarza, ale wskazuje innego organizatora, więc nie może zmienić tego spotkania." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21832,6 +21932,11 @@ msgstr "Wróciłeś ze strony firmy Microsoft bez zalogowania: odmówiłeś tam msgid "You declined this meeting." msgstr "Odrzucono to spotkanie." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26606,6 +26711,14 @@ msgstr[0] "{n} konto ma podpis" msgstr[1] "{n} konta mają podpis" msgstr[2] "{n} kont ma podpis" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26660,6 +26773,14 @@ msgstr[0] "{n} bajt" msgstr[1] "{n} bajty" msgstr[2] "{n} bajtów" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27448,6 +27569,14 @@ msgstr[0] "{n} otwarte zadanie" msgstr[1] "{n} otwarte zadania" msgstr[2] "{n} otwartych zadań" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/ro.po b/crates/i18n/po/ro.po index 87b9260302..7d43ffa389 100644 --- a/crates/i18n/po/ro.po +++ b/crates/i18n/po/ro.po @@ -759,6 +759,11 @@ msgstr "O regulă pe care acest editor nu o afișează; este păstrată așa cum msgid "A save of the mailbox is still running: try again in a moment" msgstr "O salvare a cutiei poștale încă rulează: încercați din nou peste un moment" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -777,6 +782,11 @@ msgstr "Sunt numite atât o serie, cât și una dintre zilele ei; nu s-a schimba msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "O serie păstrată de serverul contului nu poate fi mutată de aici în alt calendar: serverul nu are cum să o mute, iar zilele ei modificate separat s-ar putea pierde la recreare." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5026,7 +5036,7 @@ msgid "Don't Save" msgstr "Nu salvez" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "Nu trimit" @@ -6031,7 +6041,7 @@ msgid "Filter Tasks" msgstr "Filtrare sarcini" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "Găsire" @@ -6066,6 +6076,11 @@ msgstr "Găsire oră" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6496,6 +6511,11 @@ msgstr "Găsit în DNS-ul domeniului dvs. Autentificarea merge către un server msgid "Found in {path}. Nothing is imported until you press Import." msgstr "Găsit în {path}. Nu se importă nimic până nu apăsați Import." +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6713,6 +6733,11 @@ msgstr "Pagina GitHub este deschisă: verificați-o, apoi trimiteți. MailCraft msgid "Give it a title first" msgstr "Dă-i mai întâi un titlu" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8731,6 +8756,11 @@ msgstr "Uitați-vă la certificatul pe care îl arată acum serverul. Nu se face msgid "Look for This Meeting on the Calendar" msgstr "Căutare întâlnire în calendar" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10805,6 +10835,11 @@ msgstr "Nicio programare nu este deschisă în fereastră proprie" msgid "No appointment matches." msgstr "Nicio programare nu se potrivește." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11075,6 +11110,11 @@ msgstr "Încă nicio regulă. O regulă clasează, marchează sau șterge e-mail msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "Nu este reținut niciun expeditor. „Descărcați mereu imaginile de la”, de deasupra unui mesaj, adaugă aici expeditorul sau domeniul lui." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14839,7 +14879,7 @@ msgid "Searching the server…" msgstr "Se caută pe server…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "Se caută…" @@ -15006,6 +15046,11 @@ msgstr "Trimite oricum" msgid "Send Cancellation" msgstr "Trimitere anulare" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18610,6 +18655,21 @@ msgstr "Căutarea serverului Exchange cere să înceapă din nou cu o adresă di msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "Căutarea serverului Exchange a fost trimisă mai departe la {host}, care nu este în domeniul adresei dvs." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18704,6 +18764,11 @@ msgstr "Serverul nu a putut fi căutat. Încercați din nou peste câteva minute msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "Serverul nu a acceptat numele de utilizator și parola. Verificați-le sau scrieți numele de utilizator în Setări server (DOMENIU\\utilizator sau dvs@example.org)." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18728,6 +18793,11 @@ msgstr "Serverul nu a predat {count} mesaje din „{name}”" msgid "The server didn't say when other people are busy" msgstr "Serverul nu a spus când sunt ocupate alte persoane" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18797,6 +18867,11 @@ msgstr[0] "Serverul contului {account} anunță {n} persoană invitată, ca să msgstr[1] "Serverul contului {account} anunță cele {n} persoane invitate, ca să știe că s-a anulat." msgstr[2] "Serverul contului {account} anunță cele {n} de persoane invitate, ca să știe că s-a anulat." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18827,6 +18902,11 @@ msgstr "Serverul a refuzat conectarea pentru acest cont. Folosiți Trimitere/pri msgid "The server turned down the sign-in for {name}: sign in again" msgstr "Serverul a refuzat conectarea pentru {name}: conectați-vă din nou" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18844,6 +18924,11 @@ msgstr "Adresa serverului trebuie să înceapă cu https:// și să numească se msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "Adresa serverului sau numele de utilizator nu pot fi folosite. Verificați-le în Setări server." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19324,6 +19409,11 @@ msgstr "Acestea nu au putut fi eliminate. Eliminați-le chiar dvs.:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19807,6 +19897,16 @@ msgstr "Această invitație are ID-ul unei întâlniri din calendarul dvs., dar msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "Această invitație are ID-ul unei întâlniri din calendarul dvs., dar numește alt organizator, deci nu poate modifica acea întâlnire." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21826,6 +21926,11 @@ msgstr "Te-ai întors de pe pagina Microsoft fără să te autentifici: ai spus msgid "You declined this meeting." msgstr "Ați refuzat această întâlnire." +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26599,6 +26704,14 @@ msgstr[0] "{n} cont are una" msgstr[1] "{n} conturi au una" msgstr[2] "{n} de conturi au una" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26653,6 +26766,14 @@ msgstr[0] "{n} octet" msgstr[1] "{n} octeți" msgstr[2] "{n} de octeți" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27441,6 +27562,14 @@ msgstr[0] "{n} sarcină deschisă" msgstr[1] "{n} sarcini deschise" msgstr[2] "{n} de sarcini deschise" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/i18n/po/zh_CN.po b/crates/i18n/po/zh_CN.po index a0a7bc35a8..d806db683a 100644 --- a/crates/i18n/po/zh_CN.po +++ b/crates/i18n/po/zh_CN.po @@ -759,6 +759,11 @@ msgstr "此编辑器无法显示的规则;将保持原样。" msgid "A save of the mailbox is still running: try again in a moment" msgstr "邮箱保存仍在运行:请稍后再试" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A secure connection to the server couldn't be set up. Check the address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -777,6 +782,11 @@ msgstr "同时指定了一个系列及其中的某一天;未做任何更改。 msgid "A series that the account's server keeps can't be moved to another calendar from here: the server has no way of moving one, and days of it that were changed on their own could be lost in making it again." msgstr "无法从这里将账户服务器管理的重复日程移到其他日历:服务器不支持移动,而重新创建可能丢失单独更改过的日期。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address." +msgstr "" + #. what a command says #: crates/engine/src/cmd/auto_replies.rs #, fuzzy @@ -5021,7 +5031,7 @@ msgid "Don't Save" msgstr "不保存" #. interface -#: crates/ui-egui/src/agent_gate.rs +#: crates/ui-egui/src/agent_gate.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Don't Send" msgstr "不发送" @@ -6010,7 +6020,7 @@ msgid "Filter Tasks" msgstr "筛选任务" #. command label, interface, ribbon, ribbon location -#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs +#: crates/engine/src/cmd/calendar/share.rs crates/engine/src/cmd/edit.rs crates/engine/src/cmd/mail.rs crates/engine/src/cmd/people.rs crates/engine/src/cmd/view.rs crates/ui-egui/src/dav_settings.rs crates/ui-egui/src/dialogs.rs crates/ui-egui/src/ribbon.rs #, fuzzy msgid "Find" msgstr "查找" @@ -6045,6 +6055,11 @@ msgstr "查找时间" msgid "Find a font" msgstr "Find a font" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." +msgstr "" + #. interface #: crates/ui-egui/src/spelling.rs #, fuzzy @@ -6473,6 +6488,11 @@ msgstr "已在您域名的 DNS 中找到。只有在您同意后,您的登录 msgid "Found in {path}. Nothing is imported until you press Import." msgstr "在 {path} 中找到。点击“导入”前不会导入任何内容。" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Found {calendars} and {books}. Save keeps them." +msgstr "" + #. what a command says #: crates/model/src/sync/progress.rs #, fuzzy @@ -6688,6 +6708,11 @@ msgstr "GitHub 页面已打开:请检查后再提交。MailCraft 没有发送 msgid "Give it a title first" msgstr "请先为其设置标题" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Give the password first." +msgstr "" + #. interface #: crates/ui-egui/src/dav_password_ask.rs msgid "Give the password of this account's calendars and contacts. Nothing is sent until the server asks for it." @@ -8698,6 +8723,11 @@ msgstr "查看服务器当前显示的证书。在您做出决定前不会登录 msgid "Look for This Meeting on the Calendar" msgstr "在日历上查找此会议" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Look for the servers now." +msgstr "" + #. interface #: crates/ui-egui/src/security.rs #, fuzzy @@ -10764,6 +10794,11 @@ msgstr "没有在独立窗口中打开的约会" msgid "No appointment matches." msgstr "没有匹配的约会。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No calendar or contacts server was found for this address. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/forms.rs #, fuzzy @@ -11034,6 +11069,11 @@ msgstr "尚无规则。规则会在邮件到达时将其移入文件夹、标记 msgid "No senders are remembered. \"Always download pictures from\" above a message adds its sender or its sender's domain here." msgstr "尚未记住任何发件人。使用邮件上方的“始终下载来自此发件人的图片”可将发件人或其域名添加到此处。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "No server answered at the usual places for this address. Check the connection, or type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -14792,7 +14832,7 @@ msgid "Searching the server…" msgstr "正在搜索服务器…" #. interface -#: crates/ui-egui/src/address_book.rs +#: crates/ui-egui/src/address_book.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Searching…" msgstr "正在搜索…" @@ -14959,6 +14999,11 @@ msgstr "仍然发送" msgid "Send Cancellation" msgstr "发送取消通知" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "Send It There" +msgstr "" + #. command label, interface, name #: crates/engine/src/cmd/send_later.rs crates/ui-egui/src/send_later.rs #, fuzzy @@ -18549,6 +18594,21 @@ msgstr "查找 Exchange 服务器时,需要使用另一域 {host} 中的地址 msgid "The search for your Exchange server was sent on to {host}, which isn't in your address's own domain." msgstr "查找 Exchange 服务器的请求被重定向到 {host},它不属于您地址所在的域。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search was sent to {host}, which isn't one of your servers. Send your password there?" +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The search went on too long without an end. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/backstage.rs #, fuzzy @@ -18643,6 +18703,11 @@ msgstr "无法搜索服务器。请几分钟后重试。" msgid "The server didn't accept the user name and password. Check them, or type your user name in Server settings (DOMAIN\\user or you@example.org)." msgstr "服务器未接受用户名和密码。请检查这些信息,或在服务器设置中输入用户名(DOMAIN\\user 或 you@example.org)。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't accept the user name and password. Nothing else was tried." +msgstr "" + #. what a command says #: crates/engine/src/cmd/contacts_remote.rs #, fuzzy @@ -18667,6 +18732,11 @@ msgstr "服务器未提供“{name}”中的 {count} 封邮件" msgid "The server didn't say when other people are busy" msgstr "服务器未提供其他人的忙闲信息" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server didn't say where your calendars or contacts are. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/graph_fetch.rs #, fuzzy @@ -18730,6 +18800,11 @@ msgid "The server of {account} tells the {n} person invited, so that they know i msgid_plural "The server of {account} tells the {n} people invited, so that they know it is cancelled." msgstr[0] "{account} 的服务器通知 {n} 位受邀者,让他们知道已取消。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server or the organisation wouldn't give its calendars or contacts. Ask your administrator." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -18760,6 +18835,11 @@ msgstr "服务器拒绝了此账户的登录请求。请使用“发送/接收 msgid "The server turned down the sign-in for {name}: sign in again" msgstr "服务器拒绝了 {name} 的登录请求:请重新登录" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server wants a way of signing in that MailCraft can't do yet." +msgstr "" + #. interface #: crates/ui-egui/src/dav_settings.rs msgid "The server wouldn't sign in." @@ -18777,6 +18857,11 @@ msgstr "服务器地址必须以 https:// 开头并包含服务器名称(例 msgid "The server's address or the user name can't be used. Check them in Server settings." msgstr "无法使用该服务器地址或用户名。请在服务器设置中检查。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -19251,6 +19336,11 @@ msgstr "无法移除以下项目,请自行移除:" msgid "These servers have a password of their own" msgstr "" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "These settings can't be used as they are: check the addresses (https://) and the user name." +msgstr "" + #. interface #: crates/ui-egui/src/task_sync.rs #, fuzzy @@ -19720,6 +19810,16 @@ msgstr "此邀请的会议 ID 与您日历中的会议相同,但邀请并非 msgid "This invitation has the ID of a meeting on your calendar but names another organizer, so it can't change that meeting." msgstr "此邀请的会议 ID 与您日历中的会议相同,但指定了另一位组织者,因此无法更改该会议。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent." +msgstr "" + +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent." +msgstr "" + #. interface #: crates/ui-egui/src/updates.rs #, fuzzy @@ -21727,6 +21827,11 @@ msgstr "您从 Microsoft 页面返回但未登录:您在那里选择了拒绝, msgid "You declined this meeting." msgstr "您已拒绝此会议。" +#. interface +#: crates/ui-egui/src/dav_find.rs +msgid "You didn't agree to send the password to the server the search led to. Type the server's address." +msgstr "" + #. interface #: crates/ui-egui/src/account_setup/exchange.rs #, fuzzy @@ -26479,6 +26584,12 @@ msgid "{n} account has one" msgid_plural "{n} accounts have one" msgstr[0] "{n} 个账户已设置" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} address book" +msgid_plural "{n} address books" +msgstr[0] "" + #. interface #: crates/ui-egui/src/calendar_view.rs #, fuzzy @@ -26521,6 +26632,12 @@ msgid "{n} byte" msgid_plural "{n} bytes" msgstr[0] "{n} 字节" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} calendar" +msgid_plural "{n} calendars" +msgstr[0] "" + #. interface #: crates/ui-egui/src/import_pst.rs #, fuzzy @@ -27139,6 +27256,12 @@ msgid "{n} open task" msgid_plural "{n} open tasks" msgstr[0] "{n} 项未完成任务" +#. interface +#: crates/ui-egui/src/dav_settings.rs +msgid "{n} other item isn't read (a task list, a plain file)" +msgid_plural "{n} other items aren't read (task lists, plain files)" +msgstr[0] "" + #. interface #: crates/ui-egui/src/lib.rs #, fuzzy diff --git a/crates/ui-egui/src/dav_find.rs b/crates/ui-egui/src/dav_find.rs new file mode 100644 index 0000000000..1a68b7165a --- /dev/null +++ b/crates/ui-egui/src/dav_find.rs @@ -0,0 +1,83 @@ +// SPDX-FileCopyrightText: MailCraft contributors +// SPDX-License-Identifier: MIT OR Apache-2.0 +//! Find in File › Info › Calendars and Contacts (#209, D7): what the window asks of the host +//! ([`DavFindJob`]) and what the host tells it ([`DavFindEvent`]). +//! +//! The window only collects; the host searches on a thread of its own, and nothing is sent before +//! the owner presses Find (`mailcraft_net::dav_find`). The host asks before the password may go +//! to a host that isn't the owner's, and the window puts the question to the owner, naming the +//! host whole. What comes back is homes and counts, or a kind of failure the window says in its +//! own words. +//! +//! The password travels in the job, in memory, and is in no log line: the job has no `Debug`. + +use std::sync::Arc; +use std::sync::atomic::AtomicBool; +use std::sync::mpsc::Receiver; + +use mailcraft_model::{DavFindFailure, DavFindQuestion, DavFound}; + +/// What the host is asked to do ([`crate::Services::dav_find`]). +pub struct DavFindJob { + /// The account's address. + pub email: String, + /// The account's mail server (its IMAP host); empty for none. + pub mail_host: String, + /// The name that signs in; empty means the address. + pub username: String, + /// The password: the servers' own, or the account's mail password. + pub password: String, + /// The calendars' address the owner typed; empty to search. + pub calendars: String, + /// The contacts' address the owner typed; empty to search. + pub contacts: String, + /// Set when the owner gives up (the dialog closed): the host stops at the next safe place. + pub cancel: Arc, + /// The owner's answers to the host's questions ([`DavFindEvent::Question`]): yes or no. + pub answers: Receiver, +} + +/// What the host tells the window. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum DavFindEvent { + /// May the password go to `host`? The window asks the owner and sends the answer. + Question { host: String, why: DavFindQuestion }, + /// The search is over. + Finished(Result), +} + +/// What the window says of a failed search, in its own words. +pub(crate) fn said(failure: DavFindFailure) -> &'static str { + match failure { + DavFindFailure::BadSettings => tl!("These settings can't be used as they are: check the addresses (https://) and the user name."), + DavFindFailure::Microsoft => { + tl!("This is a Microsoft address: its calendars and contacts come with the Microsoft account. Nothing was sent.") + } + DavFindFailure::Google => tl!("This is a Google address: calendars and contacts from Google aren't read this way. Nothing was sent."), + DavFindFailure::Unreachable => { + tl!("No server answered at the usual places for this address. Check the connection, or type the server's address.") + } + DavFindFailure::NotFound => tl!("No calendar or contacts server was found for this address. Type the server's address."), + DavFindFailure::NotDavServer => { + tl!("A server asked for a password without saying it keeps calendars or contacts, so none was sent. Type the server's address.") + } + DavFindFailure::SecureConnection => tl!("A secure connection to the server couldn't be set up. Check the address."), + DavFindFailure::Unreadable => tl!("The server's answer couldn't be read, or led somewhere that isn't followed. Type the server's address."), + DavFindFailure::ServerRefused => tl!("The server or the organisation wouldn't give its calendars or contacts. Ask your administrator."), + DavFindFailure::NoHome => tl!("The server didn't say where your calendars or contacts are. Type the server's address."), + DavFindFailure::SignInNotSupported => tl!("The server wants a way of signing in that MailCraft can't do yet."), + DavFindFailure::Declined => tl!("You didn't agree to send the password to the server the search led to. Type the server's address."), + DavFindFailure::SignInRefused => tl!("The server didn't accept the user name and password. Nothing else was tried."), + DavFindFailure::TooLong => tl!("The search went on too long without an end. Type the server's address."), + } +} + +/// What the window asks the owner about a host, in its own words. +pub(crate) fn question(why: DavFindQuestion) -> &'static str { + match why { + DavFindQuestion::OwnDomain => tl!( + "The search found {host} in your mail domain. It isn't your mail server, and may be a web site rather than a calendar server. Send your password there?" + ), + DavFindQuestion::Elsewhere => tl!("The search was sent to {host}, which isn't one of your servers. Send your password there?"), + } +} diff --git a/crates/ui-egui/src/dav_settings.rs b/crates/ui-egui/src/dav_settings.rs index d24444d1e6..dcb9d3a06c 100644 --- a/crates/ui-egui/src/dav_settings.rs +++ b/crates/ui-egui/src/dav_settings.rs @@ -5,17 +5,25 @@ //! //! The dialog collects what `account.davSet` takes and runs it; Stop using these servers runs //! `account.davOff`. Saving sends nothing: the DAV job reads the servers by itself, at its next -//! run. A password typed here is never a command's parameter. It is held in memory for the origin +//! run. Find is the only thing here that sends: the host searches from the typed addresses, or +//! from the account's domain (`dav_find.rs`), asks before the password may go to a host that +//! isn't the owner's, and fills in the homes it found; the owner then saves them. A password typed here is never a command's parameter. It is held in memory for the origin //! the field names ([`MailApp::hold_dav_password`]), and for no other: calendars and contacts on //! one server (Infomaniak's) share it, and contacts on another server ask for their own in File › //! Info (`dav_password_ask.rs`). It is remembered only once that server took it, as the owner //! allows (`dav_secret_read.rs`). +use std::sync::Arc; +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::mpsc::{Receiver, Sender, TryRecvError}; + use egui::Ui; use mailcraft_engine::cmd::dav_account::may_have; -use mailcraft_model::{Account, DavProblem, Id, origin_of}; +use mailcraft_model::{Account, DavFindFailure, DavFindQuestion, DavFound, DavProblem, Id, origin_of}; use serde_json::json; +use crate::dav_find::{DavFindEvent, DavFindJob}; + use crate::MailApp; use crate::dialogs::{buttons, window}; use crate::theme::{Tokens, regular}; @@ -33,6 +41,27 @@ pub struct DavSettings { /// The owner clicked the eye: the password is shown until the next click or the dialog's end. shown: bool, pub(crate) error: String, + /// The search under way, when the owner pressed Find. + pub(crate) finding: Option, + /// How the last search ended. + pub(crate) found: Option>, +} + +/// A search under way: what the host tells, where the owner's answers go, and the question open. +pub(crate) struct Finding { + events: Receiver, + answers: Sender, + cancel: Arc, + pub(crate) question: Option<(String, DavFindQuestion)>, +} + +/// A dialog that goes away stops its search. +impl Drop for DavSettings { + fn drop(&mut self) { + if let Some(finding) = &self.finding { + finding.cancel.store(true, Ordering::Relaxed); + } + } } /// What became of the dialog this frame. @@ -69,9 +98,82 @@ impl DavSettings { password: String::new(), shown: false, error: String::new(), + finding: None, + found: None, }) } + /// The password Find signs in with: the one typed when the servers have their own, else the + /// account's mail password as the window has it. `None` when there is none yet. + pub(crate) fn find_password(&self, app: &MailApp) -> Option { + if self.separate { + return (!self.password.is_empty()).then(|| self.password.clone()); + } + app.passwords.get(&self.account).cloned().or_else(|| app.remembered("password", self.account)).filter(|p| !p.is_empty()) + } + + /// Start the search: from the typed addresses, else from the account's domain. Nothing is + /// sent before this. False when the host can't search or there is no password. + pub(crate) fn find(&mut self, app: &MailApp) -> bool { + let (Some(search), Some(password)) = (app.services.dav_find.as_ref(), self.find_password(app)) else { return false }; + let Some(a) = app.session.mailbox.account(self.account) else { return false }; + let (answers, asked) = std::sync::mpsc::channel(); + let cancel = Arc::new(AtomicBool::new(false)); + let job = DavFindJob { + email: a.email.trim().to_string(), + mail_host: a.incoming.as_ref().map(|s| s.host.trim().to_string()).unwrap_or_default(), + username: self.username.trim().to_string(), + password, + calendars: self.calendars.trim().to_string(), + contacts: self.contacts.trim().to_string(), + cancel: cancel.clone(), + answers: asked, + }; + self.error.clear(); + self.found = None; + self.finding = Some(Finding { events: search(job), answers, cancel, question: None }); + true + } + + /// Take in what the host told since the last frame. + pub(crate) fn poll(&mut self) { + let Some(finding) = self.finding.as_mut() else { return }; + loop { + match finding.events.try_recv() { + Ok(DavFindEvent::Question { host, why }) => finding.question = Some((host, why)), + Ok(DavFindEvent::Finished(end)) => { + if let Ok(found) = &end { + if let Some(home) = found.calendar_homes.first() { + self.calendars = home.clone(); + } + if let Some(home) = found.contact_homes.first() { + self.contacts = home.clone(); + } + } + self.found = Some(end); + self.finding = None; + return; + } + Err(TryRecvError::Empty) => return, + // (The host stopped without an end: said as nothing found.) + Err(TryRecvError::Disconnected) => { + self.found = Some(Err(DavFindFailure::Unreachable)); + self.finding = None; + return; + } + } + } + } + + /// The owner's answer to the open question. + pub(crate) fn answer(&mut self, yes: bool) { + if let Some(finding) = self.finding.as_mut() + && finding.question.take().is_some() + { + let _ = finding.answers.send(yes); + } + } + /// The origin the password field is for: the calendars', else the contacts'. pub(crate) fn password_origin(&self) -> Option { origin_of(self.calendars.trim()).or_else(|| origin_of(self.contacts.trim())) @@ -145,7 +247,9 @@ pub fn show(ctx: &egui::Context, d: &mut DavSettings, app: &mut MailApp, t: &Tok let who = account.email.trim().to_string(); let set_up = account.dav.is_some(); let remember = app.ui.remember_sign_in; - let (mut submit, mut close, mut stop) = (false, false, false); + d.poll(); + let can_find = app.services.dav_find.is_some() && d.finding.is_none() && d.find_password(app).is_some(); + let (mut submit, mut close, mut stop, mut find, mut answer) = (false, false, false, false, None); let open = window(ctx, tl!("Calendars and Contacts"), 480.0, |ui| { ui.label(crate::i18n::fmt(tl!("Where the calendars and contacts of {account} are kept"), &[("account", &who)])); ui.label(tl!("Calendars")); @@ -179,6 +283,61 @@ pub fn show(ctx: &egui::Context, d: &mut DavSettings, app: &mut MailApp, t: &Tok } else { hint(ui, t, tl!("The account's mail password is used, and only for these addresses.")); } + if app.services.dav_find.is_some() { + ui.horizontal(|ui| { + let tip = if d.find_password(app).is_none() { tl!("Give the password first.") } else { tl!("Look for the servers now.") }; + find = ui.add_enabled(can_find, egui::Button::new(tl!("Find"))).on_hover_text(tip).clicked(); + if d.finding.is_some() { + ui.spinner(); + ui.label(tl!("Searching…")); + } + }); + hint( + ui, + t, + tl!( + "Find asks the typed addresses, or else public name servers and the usual places for your address's domain. The password goes only to a server of yours that asks for it, or one you agree to." + ), + ); + } + if let Some((host, why)) = d.finding.as_ref().and_then(|f| f.question.clone()) { + ui.label(crate::i18n::fmt(crate::dav_find::question(why), &[("host", &crate::forms::kit::shown(&host, 80))])); + ui.horizontal(|ui| { + if ui.button(tl!("Send It There")).clicked() { + answer = Some(true); + } + if ui.button(tl!("Don't Send")).clicked() { + answer = Some(false); + } + }); + } + match &d.found { + Some(Ok(found)) => { + let line = crate::i18n::fmt( + tl!("Found {calendars} and {books}. Save keeps them."), + &[ + ("calendars", &tln!(found.calendars, "{n} calendar", "{n} calendars")), + ("books", &tln!(found.address_books, "{n} address book", "{n} address books")), + ], + ); + hint(ui, t, &line); + if found.passed_over > 0 { + hint( + ui, + t, + &tln!( + found.passed_over, + "{n} other item isn't read (a task list, a plain file)", + "{n} other items aren't read (task lists, plain files)" + ), + ); + } + } + Some(Err(failure)) => { + ui.label(egui::RichText::new(crate::dav_find::said(*failure)).color(t.red)); + } + None => {} + } if let Some(line) = status(app, &account) { hint(ui, t, &line); } @@ -200,6 +359,12 @@ pub fn show(ctx: &egui::Context, d: &mut DavSettings, app: &mut MailApp, t: &Tok if !open || close { return Outcome::Close; } + if let Some(yes) = answer { + d.answer(yes); + } + if find { + d.find(app); + } if stop { return match app.execute("account.davOff", json!({"id": d.account})) { Ok(_) => Outcome::Close, diff --git a/crates/ui-egui/src/dav_settings_tests.rs b/crates/ui-egui/src/dav_settings_tests.rs index 6e29454c1a..49af5ddc13 100644 --- a/crates/ui-egui/src/dav_settings_tests.rs +++ b/crates/ui-egui/src/dav_settings_tests.rs @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: MailCraft contributors // SPDX-License-Identifier: MIT OR Apache-2.0 //! Calendars and Contacts in File › Info (#209, D7): the settings as typed, the password held for -//! its own origin only, and Stop using these servers. +//! its own origin only, Stop using these servers, and Find with a stand-in for the host's search. use mailcraft_engine::Session; use mailcraft_model::{DavProblem, Id}; @@ -129,3 +129,132 @@ fn the_status_says_nothing_before_a_read_and_names_the_trouble_after_one() { a.dav.shown.insert(id, DavProblem::WrongPassword); assert_eq!(status(&a, a.session.mailbox.account(id).unwrap()).as_deref(), Some("The server wouldn't sign in.")); } + +/// What the stand-in search was given, and its way to talk back to the window. +#[derive(Default)] +struct Searches { + jobs: Vec, + tell: Vec>, +} + +type Shared = std::sync::Arc>; + +/// A window whose host keeps each search for the test to answer. +fn finding() -> (MailApp, Id, Shared) { + let (mut a, id) = app(); + let shared: Shared = Default::default(); + let kept = shared.clone(); + a.services.dav_find = Some(Box::new(move |job| { + let (tell, told) = std::sync::mpsc::channel(); + let mut kept = kept.lock().unwrap(); + kept.jobs.push(job); + kept.tell.push(tell); + told + })); + (a, id, shared) +} + +#[test] +fn find_signs_in_with_the_typed_password_only_when_the_servers_have_their_own() { + let (mut a, id, shared) = finding(); + a.passwords.insert(id, "mail".into()); + let mut d = DavSettings::open(&a, id).unwrap(); + // The box ticked and nothing typed: the mail password is never the secret. + d.separate = true; + assert!(!d.find(&a)); + assert!(shared.lock().unwrap().jobs.is_empty()); + d.password = "own".into(); + assert!(d.find(&a)); + // The box off: the mail password, whatever was typed before. + let mut d = DavSettings::open(&a, id).unwrap(); + d.password = "typed, then the box was cleared".into(); + assert!(d.find(&a)); + let searches = shared.lock().unwrap(); + let given: Vec<&str> = searches.jobs.iter().map(|j| j.password.as_str()).collect(); + assert_eq!(given, ["own", "mail"]); + assert_eq!(searches.jobs[0].mail_host, "imap.example.org"); + assert_eq!(searches.jobs[0].email, "ada@example.org"); +} + +#[test] +fn nothing_is_searched_without_a_password_or_a_host_that_can() { + let (a, id) = app(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + assert!(!d.find(&a), "no host service"); + let (a2, id2, shared) = finding(); + let mut d = DavSettings::open(&a2, id2).unwrap(); + assert!(!d.find(&a2), "no mail password yet"); + assert!(shared.lock().unwrap().jobs.is_empty()); +} + +#[test] +fn the_question_is_put_to_the_owner_and_the_answer_goes_back_once() { + let (a, id, shared) = finding(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + assert!(d.find(&a)); + let tell = shared.lock().unwrap().tell[0].clone(); + tell.send(crate::dav_find::DavFindEvent::Question { host: "dav.example.net".into(), why: mailcraft_model::DavFindQuestion::Elsewhere }).unwrap(); + d.poll(); + assert_eq!(d.finding.as_ref().unwrap().question.as_ref().map(|(h, _)| h.as_str()), Some("dav.example.net")); + d.answer(false); + d.answer(true); + let searches = shared.lock().unwrap(); + let answers: Vec = searches.jobs[0].answers.try_iter().collect(); + assert_eq!(answers, [false], "one answer for one question"); +} + +#[test] +fn what_was_found_fills_the_addresses_and_save_holds_the_password_there() { + let (mut a, id, shared) = finding(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + assert!(d.find(&a)); + let found = mailcraft_model::DavFound { + calendar_homes: vec![format!("{CAL}/calendars/ada/")], + contact_homes: vec![format!("{CAL}/addressbooks/ada/")], + calendars: 2, + address_books: 1, + passed_over: 1, + }; + shared.lock().unwrap().tell[0].send(crate::dav_find::DavFindEvent::Finished(Ok(found))).unwrap(); + d.poll(); + assert!(d.finding.is_none()); + assert_eq!(d.calendars, format!("{CAL}/calendars/ada/")); + assert_eq!(d.contacts, format!("{CAL}/addressbooks/ada/")); + assert!(a.session.mailbox.account(id).unwrap().dav.is_none(), "found is not kept until Save"); + assert!(d.save(&mut a)); + assert_eq!(a.dav_password(id, CAL).as_deref(), Some("own")); + assert!(a.dav_origins_wanting_password(id).is_empty()); +} + +#[test] +fn a_failed_search_keeps_what_was_typed_and_says_why() { + let (a, id, shared) = finding(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + d.calendars = format!("{CAL}/typed/"); + assert!(d.find(&a)); + shared.lock().unwrap().tell[0].send(crate::dav_find::DavFindEvent::Finished(Err(mailcraft_model::DavFindFailure::SignInRefused))).unwrap(); + d.poll(); + assert_eq!(d.found, Some(Err(mailcraft_model::DavFindFailure::SignInRefused))); + assert_eq!(d.calendars, format!("{CAL}/typed/")); +} + +#[test] +fn a_dialog_that_goes_away_stops_its_search() { + let (a, id, shared) = finding(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + assert!(d.find(&a)); + let cancel = shared.lock().unwrap().jobs[0].cancel.clone(); + assert!(!cancel.load(std::sync::atomic::Ordering::Relaxed)); + drop(d); + assert!(cancel.load(std::sync::atomic::Ordering::Relaxed)); +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index b24f968c19..a9c7ce2c53 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -98,6 +98,7 @@ pub mod credits; pub mod data_removal; pub mod date_picker; pub mod dates; +pub mod dav_find; mod dav_job; #[cfg(test)] mod dav_job_tests; @@ -591,6 +592,11 @@ pub struct Services { /// challenge, over TLS, to the pinned certificate when one is set. Absent in the browser and /// the tests. pub dav: Option Receiver>>, + /// Desktop: search for an account's calendar and contacts servers (#209, D7, + /// `mailcraft_net::dav_find`), on a thread of its own, once the owner pressed Find in File › + /// Info › Calendars and Contacts. It asks before the password may go to a host that isn't the + /// owner's ([`dav_find::DavFindEvent::Question`]). Absent in the browser and the tests. + pub dav_find: Option Receiver>>, /// Desktop: remove everything MailCraft keeps on this computer, in the folders the host /// itself works in ([`data_removal::DataWipe`], File › Info › Remove MailCraft's data from /// this computer, #177). Absent in the browser and the tests. diff --git a/docs/log.d/ROADMAP/progress/209-d7-window.md b/docs/log.d/ROADMAP/progress/209-d7-window.md index 802d7206a4..5dc575eba8 100644 --- a/docs/log.d/ROADMAP/progress/209-d7-window.md +++ b/docs/log.d/ROADMAP/progress/209-d7-window.md @@ -1 +1 @@ -| 2026-11-25 | #209 D7, the window: File › Info › Calendars and Contacts (Set Up… or Change…) keeps the typed calendar and contacts addresses, the user name and whether the servers have a password of their own through `account.davSet`; one password field, held for the origin it names and no other; a status line from the last read; Stop using these servers runs `account.davOff`; saving sends nothing; behind `MAILCRAFT_DAV=1` | +| 2026-11-25 | #209 D7, the window: File › Info › Calendars and Contacts (Set Up… or Change…) keeps the typed calendar and contacts addresses, the user name and whether the servers have a password of their own through `account.davSet`; one password field, held for the origin it names and no other; a status line from the last read; Stop using these servers runs `account.davOff`; saving sends nothing; Find searches from the typed addresses or the account's domain (`mailcraft_net::dav_find` over `mailcraft_dav::discovery`), asks the owner before the password goes to a host that isn't theirs, fills in the homes found and says why when nothing was; behind `MAILCRAFT_DAV=1` | From 10855b5ebfbb01f0aba2fbf91f4c28b6762ce0bd Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:33:22 +0100 Subject: [PATCH 10/11] #209 D7: the password field before an address is known; Find in screenshots The password field shows as soon as the box is ticked, so Find can search from the domain with the servers' own password. ui_shot gets a stand-in search (`{"host": {"davFind": true}}`), `{"click": label}` and `{"typePassword": text}`, for the light and dark screenshots. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- crates/i18n/po/cs.po | 2 +- crates/i18n/po/de.po | 2 +- crates/i18n/po/es.po | 2 +- crates/i18n/po/fr.po | 2 +- crates/i18n/po/hu.po | 2 +- crates/i18n/po/it.po | 2 +- crates/i18n/po/ka.po | 2 +- crates/i18n/po/messages.pot | 2 +- crates/i18n/po/nl.po | 2 +- crates/i18n/po/pl.po | 2 +- crates/i18n/po/ro.po | 2 +- crates/i18n/po/zh_CN.po | 2 +- crates/ui-egui/examples/ui_shot.rs | 41 ++++++++++++++++++++++++++++++ crates/ui-egui/src/dav_settings.rs | 16 +++++++----- 14 files changed, 62 insertions(+), 19 deletions(-) diff --git a/crates/i18n/po/cs.po b/crates/i18n/po/cs.po index 85b0135ed6..5058a64486 100644 --- a/crates/i18n/po/cs.po +++ b/crates/i18n/po/cs.po @@ -12632,7 +12632,7 @@ msgid "Part of your mailbox is damaged" msgstr "Část vaší poštovní schránky je poškozená" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Heslo" diff --git a/crates/i18n/po/de.po b/crates/i18n/po/de.po index 04c789faf5..f9dfd32ca6 100644 --- a/crates/i18n/po/de.po +++ b/crates/i18n/po/de.po @@ -11864,7 +11864,7 @@ msgid "Part of your mailbox is damaged" msgstr "Ein Teil Ihres Postfachs ist beschädigt" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Kennwort" diff --git a/crates/i18n/po/es.po b/crates/i18n/po/es.po index b89f1de556..f4fb8d8860 100644 --- a/crates/i18n/po/es.po +++ b/crates/i18n/po/es.po @@ -12618,7 +12618,7 @@ msgid "Part of your mailbox is damaged" msgstr "Parte de su buzón está dañada" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Contraseña" diff --git a/crates/i18n/po/fr.po b/crates/i18n/po/fr.po index ad49fd1016..e3d01df3f0 100644 --- a/crates/i18n/po/fr.po +++ b/crates/i18n/po/fr.po @@ -12567,7 +12567,7 @@ msgid "Part of your mailbox is damaged" msgstr "Une partie de votre boîte aux lettres est endommagée" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Mot de passe" diff --git a/crates/i18n/po/hu.po b/crates/i18n/po/hu.po index dc361bb223..1ee5ab9c37 100644 --- a/crates/i18n/po/hu.po +++ b/crates/i18n/po/hu.po @@ -12610,7 +12610,7 @@ msgid "Part of your mailbox is damaged" msgstr "A postafiókád egy része megsérült." #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Jelszó" diff --git a/crates/i18n/po/it.po b/crates/i18n/po/it.po index 0e6e74b719..ab1bcc06e5 100644 --- a/crates/i18n/po/it.po +++ b/crates/i18n/po/it.po @@ -12610,7 +12610,7 @@ msgid "Part of your mailbox is damaged" msgstr "Una parte della tua casella è danneggiata" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Password" diff --git a/crates/i18n/po/ka.po b/crates/i18n/po/ka.po index 648bc2c673..6cade19e8e 100644 --- a/crates/i18n/po/ka.po +++ b/crates/i18n/po/ka.po @@ -12579,7 +12579,7 @@ msgid "Part of your mailbox is damaged" msgstr "თქვენი საფოსტო ყუთის ნაწილი დაზიანებულია" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "პაროლი" diff --git a/crates/i18n/po/messages.pot b/crates/i18n/po/messages.pot index 725bac5eb7..ea169a9fe0 100644 --- a/crates/i18n/po/messages.pot +++ b/crates/i18n/po/messages.pot @@ -10486,7 +10486,7 @@ msgid "Part of your mailbox is damaged" msgstr "" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs msgid "Password" msgstr "" diff --git a/crates/i18n/po/nl.po b/crates/i18n/po/nl.po index 079674caa2..251e93e3d6 100644 --- a/crates/i18n/po/nl.po +++ b/crates/i18n/po/nl.po @@ -12207,7 +12207,7 @@ msgid "Part of your mailbox is damaged" msgstr "Een deel van uw postvak is beschadigd" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Wachtwoord" diff --git a/crates/i18n/po/pl.po b/crates/i18n/po/pl.po index 2280ce6977..a904d208ab 100644 --- a/crates/i18n/po/pl.po +++ b/crates/i18n/po/pl.po @@ -12653,7 +12653,7 @@ msgid "Part of your mailbox is damaged" msgstr "Część Twojej skrzynki pocztowej jest uszkodzona" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Hasło" diff --git a/crates/i18n/po/ro.po b/crates/i18n/po/ro.po index 7d43ffa389..0e10778f3c 100644 --- a/crates/i18n/po/ro.po +++ b/crates/i18n/po/ro.po @@ -12649,7 +12649,7 @@ msgid "Part of your mailbox is damaged" msgstr "O parte din cutia poștală este deteriorată" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "Parolă" diff --git a/crates/i18n/po/zh_CN.po b/crates/i18n/po/zh_CN.po index d806db683a..d03d34e1b6 100644 --- a/crates/i18n/po/zh_CN.po +++ b/crates/i18n/po/zh_CN.po @@ -12608,7 +12608,7 @@ msgid "Part of your mailbox is damaged" msgstr "您的邮箱部分损坏" #. interface -#: crates/ui-egui/src/account_setup.rs +#: crates/ui-egui/src/account_setup.rs crates/ui-egui/src/dav_settings.rs #, fuzzy msgid "Password" msgstr "密码" diff --git a/crates/ui-egui/examples/ui_shot.rs b/crates/ui-egui/examples/ui_shot.rs index a758a0e269..8de2be8fd2 100644 --- a/crates/ui-egui/examples/ui_shot.rs +++ b/crates/ui-egui/examples/ui_shot.rs @@ -43,6 +43,10 @@ //! turn that off for the computer from the start, and `{"host": {"updates": "didntStart 0.4.2"}}` //! has the running version be one newly installed that didn't start twice running, with 0.4.2 //! kept to go back to. +//! `{"host": {"davFind": true}}` has Find in File › Info › Calendars and Contacts search a stand-in +//! (#209): it asks once about `dav.example.net`, and on a yes finds two calendars and an address +//! book there (nothing is sent). `{"click": "label"}` clicks the last thing with that label (the +//! one in front), and `{"typePassword": "text"}` types into the password field in front. //! `{"host": {"ownKeys": true}}` lists two made-up keys of the owner's in File › Options › Security (#30). //! `{"host": {"pictures": true}}` lets pictures on the web be downloaded, each a drawn stand-in //! (nothing is fetched), so that the pictures bar offers what it does in the app. @@ -847,6 +851,29 @@ fn main() { // In front or not, for desktop alerts about new mail. harness.input_mut().focused = !host.unfocused; } + // Find searches a stand-in for calendar and contacts servers (#209): one question, + // then what a yes finds. + if said.get("davFind").is_some() { + harness.state_mut().services.dav_find = Some(Box::new(|job: mailcraft_ui_egui::dav_find::DavFindJob| { + use mailcraft_ui_egui::dav_find::DavFindEvent; + let (tx, rx) = channel(); + let _ = tx.send(DavFindEvent::Question { host: "dav.example.net".into(), why: mailcraft_model::DavFindQuestion::Elsewhere }); + std::thread::spawn(move || { + let end = match job.answers.recv() { + Ok(true) => Ok(mailcraft_model::DavFound { + calendar_homes: vec!["https://dav.example.net/calendars/ada/".into()], + contact_homes: vec!["https://dav.example.net/addressbooks/ada/".into()], + calendars: 2, + address_books: 1, + passed_over: 1, + }), + _ => Err(mailcraft_model::DavFindFailure::Declined), + }; + let _ = tx.send(DavFindEvent::Finished(end)); + }); + rx + })); + } // Pictures on the web can be downloaded: each is a drawn stand-in (nothing is fetched). if said.get("pictures").is_some() { harness.state_mut().services.pictures = Some(Box::new(|address: String| { @@ -935,6 +962,20 @@ fn main() { harness.state_mut().open_from_system(what); step_n(&mut harness, 2); } + // A click on what has this label, the last one (in front): `{"click": "Find"}`. + if let Some(label) = l.get("click").and_then(|v| v.as_str()) { + use egui_kittest::kittest::Queryable; + harness.query_all_by_label(label).last().expect("something with that label").click(); + step_n(&mut harness, 2); + } + // Text typed into the password field in front: `{"typePassword": "…"}`. + if let Some(text) = l.get("typePassword").and_then(|v| v.as_str()) { + use egui_kittest::kittest::Queryable; + harness.query_all_by_role(egui::accesskit::Role::PasswordInput).last().expect("a password field").focus(); + step_n(&mut harness, 1); + harness.event(egui::Event::Text(text.to_owned())); + step_n(&mut harness, 2); + } if let Some(wheel) = l.get("wheel") { let n = |key: &str| wheel.get(key).and_then(|v| v.as_f64()).unwrap_or(0.0) as f32; harness.event(egui::Event::PointerMoved(egui::pos2(n("x"), n("y")))); diff --git a/crates/ui-egui/src/dav_settings.rs b/crates/ui-egui/src/dav_settings.rs index dcb9d3a06c..2a76de78ae 100644 --- a/crates/ui-egui/src/dav_settings.rs +++ b/crates/ui-egui/src/dav_settings.rs @@ -266,13 +266,15 @@ pub fn show(ctx: &egui::Context, d: &mut DavSettings, app: &mut MailApp, t: &Tok hint(ui, t, tl!("Leave it empty to sign in with the account's address.")); ui.checkbox(&mut d.separate, tl!("These servers have a password of their own")); if d.separate { - if let Some(origin) = d.password_origin() { - let room = egui::Margin::from(ui.spacing().button_padding); - ui.label(crate::i18n::fmt(tl!("Password for {server}"), &[("server", &crate::forms::kit::shown(host(&origin), 80))])); - crate::secret_field::field(ui, &mut d.password, &mut d.shown, watch, room, |edit| edit); - if d.contacts_elsewhere() { - hint(ui, t, tl!("The contacts are on another server: File › Info asks for its password.")); - } + // (Before an address is typed or found, the field is for the server Find will find.) + let room = egui::Margin::from(ui.spacing().button_padding); + match d.password_origin() { + Some(origin) => ui.label(crate::i18n::fmt(tl!("Password for {server}"), &[("server", &crate::forms::kit::shown(host(&origin), 80))])), + None => ui.label(tl!("Password")), + }; + crate::secret_field::field(ui, &mut d.password, &mut d.shown, watch, room, |edit| edit); + if d.contacts_elsewhere() { + hint(ui, t, tl!("The contacts are on another server: File › Info asks for its password.")); } let said = if remember { tl!("Once the server has taken it, MailCraft keeps it in your system's credential store, as File › Options lets it.") From 5eedebe9f9b15e4e9d8b35827f1945845e569cc7 Mon Sep 17 00:00:00 2001 From: LembkeM <26285953+LembkeM@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:58:21 +0100 Subject: [PATCH 11/11] #209 D7: keep every home, stop a closed search at once, the trusted certificate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An untouched address field stands for its whole list of homes, kept or found, so an unchanged Save keeps them all and the server stays the same. The search asks before every round whether the owner gave up, so a closed dialog sends nothing more. Find trusts the certificate the owner trusts for these servers. The status line leaves a missing password to File › Info's own line. Human-reviewed, AI-assisted, nobody's mailbox harmed. --- apps/mailcraft/src/dav_find.rs | 29 ++++++++++------ apps/mailcraft/src/dav_find_flow.rs | 9 +++-- crates/net/src/dav_find.rs | 23 +++++++++---- crates/net/src/dav_find_tests.rs | 44 +++++++++++++++++------- crates/ui-egui/src/dav_find.rs | 3 ++ crates/ui-egui/src/dav_settings.rs | 22 ++++++++++-- crates/ui-egui/src/dav_settings_tests.rs | 43 +++++++++++++++++++++++ 7 files changed, 138 insertions(+), 35 deletions(-) diff --git a/apps/mailcraft/src/dav_find.rs b/apps/mailcraft/src/dav_find.rs index e5a7952498..a5e78618a7 100644 --- a/apps/mailcraft/src/dav_find.rs +++ b/apps/mailcraft/src/dav_find.rs @@ -5,8 +5,8 @@ //! //! The search is `mailcraft_net::dav_find`'s: it decides where the password may go. This only //! carries its question to the window (`DavFindEvent::Question`), waits for the owner's answer, -//! and tells the window how it ended. A window that closed (the dialog went away) stops it at the -//! next question, and nothing more is told. Nothing here is logged. +//! and tells the window how it ended. A window that closed (the dialog went away) stops it before +//! its next request or question, and nothing more is told. Nothing here is logged. use std::sync::atomic::Ordering; use std::sync::mpsc::{Receiver, RecvTimeoutError, channel}; @@ -17,7 +17,8 @@ use mailcraft_net::dav_find::DavFindAsk; use mailcraft_ui_egui::dav_find::{DavFindEvent, DavFindJob}; /// The search itself: the real one, or a test's. -pub(crate) type Search<'a> = &'a dyn Fn(&DavFindAsk<'_>, &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result; +pub(crate) type Search<'a> = + &'a dyn Fn(&DavFindAsk<'_>, &mut dyn FnMut(&str, DavFindQuestion) -> Option, &dyn Fn() -> bool) -> Result; /// Waits for the owner's answer; `None` when the owner gave up. fn answer(job: &DavFindJob) -> Option { @@ -41,14 +42,20 @@ pub(crate) fn find_with(search: Search<'_>, job: &DavFindJob, emit: &mut dyn FnM password: &job.password, calendars: &job.calendars, contacts: &job.contacts, + trusted: &job.trusted, }; - let end = search(&ask, &mut |host, why| { - if job.cancel.load(Ordering::Relaxed) { - return None; - } - emit(DavFindEvent::Question { host: host.to_owned(), why }); - answer(job) - }); + let stopped = || job.cancel.load(Ordering::Relaxed); + let end = search( + &ask, + &mut |host, why| { + if stopped() { + return None; + } + emit(DavFindEvent::Question { host: host.to_owned(), why }); + answer(job) + }, + &stopped, + ); if !job.cancel.load(Ordering::Relaxed) { emit(DavFindEvent::Finished(end)); } @@ -59,7 +66,7 @@ pub(crate) fn run(job: DavFindJob, wake: &egui::Context) -> Receiver (DavFindJob, Sender) { password: "test-only-not-a-secret".into(), calendars: String::new(), contacts: String::new(), + trusted: String::new(), cancel: Arc::new(AtomicBool::new(false)), answers, }; @@ -32,7 +33,11 @@ fn job() -> (DavFindJob, Sender) { } /// A search that asks once about `dav.example.net` and finds a calendar there on a yes. -fn asking(ask: &DavFindAsk<'_>, question: &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result { +fn asking( + ask: &DavFindAsk<'_>, + question: &mut dyn FnMut(&str, DavFindQuestion) -> Option, + _stopped: &dyn Fn() -> bool, +) -> Result { assert_eq!(ask.email, "ada@example.org"); match question("dav.example.net", DavFindQuestion::Elsewhere) { Some(true) => Ok(DavFound { calendar_homes: vec!["https://dav.example.net/cal/ada/".into()], calendars: 1, ..Default::default() }), @@ -87,6 +92,6 @@ fn a_window_that_went_away_while_the_question_is_open_ends_the_search_quietly() fn a_search_without_questions_tells_its_end_once() { let (job, _answers) = job(); let mut told = Vec::new(); - find_with(&|_, _| Err(DavFindFailure::NotFound), &job, &mut |event| told.push(event)); + find_with(&|_, _, _| Err(DavFindFailure::NotFound), &job, &mut |event| told.push(event)); assert_eq!(told, vec![DavFindEvent::Finished(Err(DavFindFailure::NotFound))]); } diff --git a/crates/net/src/dav_find.rs b/crates/net/src/dav_find.rs index eea6553035..c86974536c 100644 --- a/crates/net/src/dav_find.rs +++ b/crates/net/src/dav_find.rs @@ -38,6 +38,8 @@ pub struct DavFindAsk<'a> { pub calendars: &'a str, /// The contacts' address the owner typed; empty to search. pub contacts: &'a str, + /// The one certificate trusted besides the system's (a SHA-256 fingerprint); empty for none. + pub trusted: &'a str, } /// The window's kind for a way the search failed. @@ -68,12 +70,14 @@ fn look_up(name: &SrvName, srv: &mut dyn FnMut(DavService, &str) -> Option, exchange: &dyn HttpExchange, srv: &mut dyn FnMut(DavService, &str) -> Option, question: &mut dyn FnMut(&str, DavFindQuestion) -> Option, + stopped: &dyn Fn() -> bool, ) -> Result { let user = if ask.username.trim().is_empty() { ask.email.trim() } else { ask.username.trim() }; let secret = Secret::basic(user, ask.password).map_err(|_| DavFindFailure::BadSettings)?; @@ -88,6 +92,9 @@ pub fn find_with( } let mut outcome = Outcome::Failed(Failure::TooManyRedirects); for _ in 0..ROUNDS { + if stopped() { + return Err(DavFindFailure::Declined); + } match search.step() { Step::Request(request) => { let result = exchange.exchange(&request); @@ -135,12 +142,16 @@ pub fn find_with( } } -/// The search over the real network: the system's certificates only (a server the system doesn't -/// trust is a [`DavFindFailure::SecureConnection`]), the domain's SRV and TXT records over +/// The search over the real network: the system's certificates and the one the owner trusts for +/// these servers (any other is a [`DavFindFailure::SecureConnection`]), the domain's SRV and TXT records over /// DNS-over-HTTPS. Blocks: the host runs it on a thread of its own. -pub fn find(ask: &DavFindAsk<'_>, question: &mut dyn FnMut(&str, DavFindQuestion) -> Option) -> Result { - let wire = Wire::new(""); - let found = find_with(ask, &wire, &mut |service, domain| lookup_dav(service, domain).ok(), question); +pub fn find( + ask: &DavFindAsk<'_>, + question: &mut dyn FnMut(&str, DavFindQuestion) -> Option, + stopped: &dyn Fn() -> bool, +) -> Result { + let wire = Wire::new(ask.trusted); + let found = find_with(ask, &wire, &mut |service, domain| lookup_dav(service, domain).ok(), question, stopped); log::info!("calendar server search: {:?}", found.as_ref().map(|f| (f.calendars, f.address_books))); found } diff --git a/crates/net/src/dav_find_tests.rs b/crates/net/src/dav_find_tests.rs index a9d7d0ab22..a007f755f4 100644 --- a/crates/net/src/dav_find_tests.rs +++ b/crates/net/src/dav_find_tests.rs @@ -54,7 +54,7 @@ impl HttpExchange for World { } fn ask<'a>(calendars: &'a str, contacts: &'a str, password: &'a str) -> DavFindAsk<'a> { - DavFindAsk { email: USER, mail_host: "", username: "", password, calendars, contacts } + DavFindAsk { email: USER, mail_host: "", username: "", password, calendars, contacts, trusted: "" } } fn no_srv(_: DavService, _: &str) -> Option { @@ -65,7 +65,7 @@ fn no_srv(_: DavService, _: &str) -> Option { fn a_typed_address_is_the_only_place_asked_and_its_homes_and_counts_come_back() { let world = World::new(); let typed = format!("{DAV}/dav/"); - let found = find_with(&ask(&typed, &typed, PASSWORD), &world, &mut no_srv, &mut |host, _| panic!("asked about {host}")).unwrap(); + let found = find_with(&ask(&typed, &typed, PASSWORD), &world, &mut no_srv, &mut |host, _| panic!("asked about {host}"), &|| false).unwrap(); assert_eq!(found.calendar_homes, vec![format!("{DAV}/dav/cal/owner/")]); assert_eq!(found.contact_homes.len(), 1); assert_eq!((found.calendars, found.address_books), (2, 1)); @@ -81,12 +81,18 @@ fn the_host_the_domain_sends_the_search_to_is_asked_about_and_a_no_sends_it_noth for yes in [false, true] { let world = World::new(); let mut asked = Vec::new(); - let found = find_with(&ask("", "", PASSWORD), &world, &mut no_srv, &mut |host, why| { - asked.push((host.to_string(), why)); - // (Asked before anything went there.) - assert!(world.to(DAV).is_empty()); - Some(yes) - }); + let found = find_with( + &ask("", "", PASSWORD), + &world, + &mut no_srv, + &mut |host, why| { + asked.push((host.to_string(), why)); + // (Asked before anything went there.) + assert!(world.to(DAV).is_empty()); + Some(yes) + }, + &|| false, + ); assert_eq!(asked, vec![("dav.example.net".to_string(), DavFindQuestion::Elsewhere)], "one question for both kinds"); if yes { let found = found.unwrap(); @@ -102,7 +108,7 @@ fn the_host_the_domain_sends_the_search_to_is_asked_about_and_a_no_sends_it_noth #[test] fn an_owner_who_gave_up_ends_the_search_and_nothing_more_is_sent() { let world = World::new(); - let found = find_with(&ask("", "", PASSWORD), &world, &mut no_srv, &mut |_, _| None); + let found = find_with(&ask("", "", PASSWORD), &world, &mut no_srv, &mut |_, _| None, &|| false); assert_eq!(found, Err(DavFindFailure::Declined)); assert!(world.to(DAV).is_empty()); } @@ -111,7 +117,7 @@ fn an_owner_who_gave_up_ends_the_search_and_nothing_more_is_sent() { fn a_refused_password_ends_the_search_at_once() { let world = World::new(); let typed = format!("{DAV}/dav/"); - let found = find_with(&ask(&typed, "", "wrong"), &world, &mut no_srv, &mut |_, _| Some(true)); + let found = find_with(&ask(&typed, "", "wrong"), &world, &mut no_srv, &mut |_, _| Some(true), &|| false); assert_eq!(found, Err(DavFindFailure::SignInRefused)); assert_eq!(world.to(DAV).iter().filter(|(_, password)| *password).count(), 1, "tried once, not again"); } @@ -120,7 +126,7 @@ fn a_refused_password_ends_the_search_at_once() { fn microsoft_and_google_addresses_end_the_search_and_nothing_is_sent() { for (email, failure) in [("ada@outlook.com", DavFindFailure::Microsoft), ("ada@gmail.com", DavFindFailure::Google)] { let world = World::new(); - let found = find_with(&DavFindAsk { email, ..ask("", "", PASSWORD) }, &world, &mut no_srv, &mut |_, _| Some(true)); + let found = find_with(&DavFindAsk { email, ..ask("", "", PASSWORD) }, &world, &mut no_srv, &mut |_, _| Some(true), &|| false); assert_eq!(found, Err(failure)); assert!(world.log.lock().unwrap().is_empty()); } @@ -129,7 +135,7 @@ fn microsoft_and_google_addresses_end_the_search_and_nothing_is_sent() { #[test] fn a_typed_address_that_is_not_https_is_refused_before_anything_is_sent() { let world = World::new(); - let found = find_with(&ask("http://dav.example.net/dav/", "", PASSWORD), &world, &mut no_srv, &mut |_, _| Some(true)); + let found = find_with(&ask("http://dav.example.net/dav/", "", PASSWORD), &world, &mut no_srv, &mut |_, _| Some(true), &|| false); assert_eq!(found, Err(DavFindFailure::BadSettings)); assert!(world.log.lock().unwrap().is_empty()); } @@ -143,8 +149,20 @@ fn the_look_up_is_asked_by_the_fixed_service_and_the_domain_only() { (service == DavService::CalDav) .then(|| DavRecords { targets: vec![SrvTarget { host: "dav.example.net".into(), port: 443 }], path: Some("/dav/".into()) }) }; - let found = find_with(&ask("", "", PASSWORD), &world, &mut srv, &mut |_, _| Some(true)).unwrap(); + let found = find_with(&ask("", "", PASSWORD), &world, &mut srv, &mut |_, _| Some(true), &|| false).unwrap(); assert!(looked.contains(&(DavService::CalDav, "example.org".to_string()))); assert!(looked.contains(&(DavService::CardDav, "example.org".to_string()))); assert_eq!(found.calendars, 2); } + +#[test] +fn a_search_that_was_stopped_sends_nothing_more() { + let world = World::new(); + let typed = format!("{DAV}/dav/"); + // Stopped once the first request went out: no second, and so no password. + let found = find_with(&ask(&typed, &typed, PASSWORD), &world, &mut no_srv, &mut |_, _| Some(true), &|| !world.log.lock().unwrap().is_empty()); + assert_eq!(found, Err(DavFindFailure::Declined)); + let sent = world.log.lock().unwrap().clone(); + assert_eq!(sent.len(), 1); + assert!(!sent[0].1); +} diff --git a/crates/ui-egui/src/dav_find.rs b/crates/ui-egui/src/dav_find.rs index 1a68b7165a..9e66851f10 100644 --- a/crates/ui-egui/src/dav_find.rs +++ b/crates/ui-egui/src/dav_find.rs @@ -31,6 +31,9 @@ pub struct DavFindJob { pub calendars: String, /// The contacts' address the owner typed; empty to search. pub contacts: String, + /// The SHA-256 fingerprint of the one certificate the owner trusts for these servers besides + /// the system's; empty for none. + pub trusted: String, /// Set when the owner gives up (the dialog closed): the host stops at the next safe place. pub cancel: Arc, /// The owner's answers to the host's questions ([`DavFindEvent::Question`]): yes or no. diff --git a/crates/ui-egui/src/dav_settings.rs b/crates/ui-egui/src/dav_settings.rs index 2a76de78ae..fe3122d2a9 100644 --- a/crates/ui-egui/src/dav_settings.rs +++ b/crates/ui-egui/src/dav_settings.rs @@ -33,6 +33,10 @@ pub struct DavSettings { pub(crate) account: Id, pub(crate) calendars: String, pub(crate) contacts: String, + /// The whole lists of homes the two fields stand for (what is kept, or what Find found): the + /// field shows the first, and an untouched field keeps them all. + pub(crate) calendar_homes: Vec, + pub(crate) contact_homes: Vec, pub(crate) username: String, /// The servers want a password of their own (not the account's mail password). pub(crate) separate: bool, @@ -93,6 +97,8 @@ impl DavSettings { account, calendars: first(server.map(|s| &s.calendar_homes)), contacts: first(server.map(|s| &s.contact_homes)), + calendar_homes: server.map(|s| s.calendar_homes.clone()).unwrap_or_default(), + contact_homes: server.map(|s| s.contact_homes.clone()).unwrap_or_default(), username: server.map(|s| s.username.clone()).unwrap_or_default(), separate: server.is_some_and(|s| s.separate_password), password: String::new(), @@ -126,6 +132,7 @@ impl DavSettings { password, calendars: self.calendars.trim().to_string(), contacts: self.contacts.trim().to_string(), + trusted: a.dav.as_ref().map(|s| s.trusted.clone()).unwrap_or_default(), cancel: cancel.clone(), answers: asked, }; @@ -145,9 +152,11 @@ impl DavSettings { if let Ok(found) = &end { if let Some(home) = found.calendar_homes.first() { self.calendars = home.clone(); + self.calendar_homes = found.calendar_homes.clone(); } if let Some(home) = found.contact_homes.first() { self.contacts = home.clone(); + self.contact_homes = found.contact_homes.clone(); } } self.found = Some(end); @@ -188,11 +197,16 @@ impl DavSettings { /// Keep the settings, and hold the password typed for its origin. False, with the reason in /// [`DavSettings::error`], when the command refused them. pub(crate) fn save(&mut self, app: &mut MailApp) -> bool { - let homes = |s: &str| if s.trim().is_empty() { vec![] } else { vec![s.trim().to_string()] }; + // (A field as it was stands for its whole list; one the owner changed, for what it says.) + let homes = |field: &str, list: &[String]| match field.trim() { + "" => vec![], + typed if list.first().is_some_and(|first| first == typed) => list.to_vec(), + typed => vec![typed.to_string()], + }; let params = json!({ "id": self.account, - "calendarHomes": homes(&self.calendars), - "contactHomes": homes(&self.contacts), + "calendarHomes": homes(&self.calendars, &self.calendar_homes), + "contactHomes": homes(&self.contacts, &self.contact_homes), "username": self.username.trim(), "separatePassword": self.separate, }); @@ -222,6 +236,8 @@ fn hint(ui: &mut Ui, t: &Tokens, text: &str) { pub(crate) fn status(app: &MailApp, a: &Account) -> Option { let server = a.dav.as_ref()?; let said = match app.dav_trouble(a.id) { + // (File › Info's own line asks for a password nothing here has.) + Some(DavProblem::NeedsPassword) if !app.dav_origins_wanting_password(a.id).is_empty() => return None, Some(DavProblem::NeedsPassword | DavProblem::WrongPassword | DavProblem::UnsupportedSignIn) => tl!("The server wouldn't sign in."), Some(DavProblem::Certificate) => tl!("The server's certificate isn't trusted, so nothing was sent to it."), Some(DavProblem::Unreachable | DavProblem::Busy) => tl!("The server couldn't be reached. MailCraft tries again later."), diff --git a/crates/ui-egui/src/dav_settings_tests.rs b/crates/ui-egui/src/dav_settings_tests.rs index 49af5ddc13..4259dae228 100644 --- a/crates/ui-egui/src/dav_settings_tests.rs +++ b/crates/ui-egui/src/dav_settings_tests.rs @@ -258,3 +258,46 @@ fn a_dialog_that_goes_away_stops_its_search() { drop(d); assert!(cancel.load(std::sync::atomic::Ordering::Relaxed)); } + +#[test] +fn an_untouched_field_keeps_every_home_and_the_server_stays_the_same() { + let (mut a, id) = app(); + let cal = [format!("{CAL}/calendars/ada/"), format!("{CAL}/calendars/team/")]; + a.execute("account.davSet", json!({"id": id, "calendarHomes": cal})).unwrap(); + let mut d = DavSettings::open(&a, id).unwrap(); + assert_eq!(d.calendars, cal[0]); + d.username = "ada-dav".into(); + let generation = a.session.mailbox.account(id).unwrap().dav.clone().unwrap().calendar_homes; + assert!(d.save(&mut a)); + assert_eq!(a.session.mailbox.account(id).unwrap().dav.clone().unwrap().calendar_homes, generation); + // A field the owner changed stands for what it says. + let mut d = DavSettings::open(&a, id).unwrap(); + d.calendars = format!("{CAL}/calendars/other/"); + assert!(d.save(&mut a)); + assert_eq!(a.session.mailbox.account(id).unwrap().dav.clone().unwrap().calendar_homes, vec![format!("{CAL}/calendars/other/")]); +} + +#[test] +fn every_home_find_found_is_kept() { + let (mut a, id, shared) = finding(); + let mut d = DavSettings::open(&a, id).unwrap(); + d.separate = true; + d.password = "own".into(); + assert!(d.find(&a)); + let homes = vec![format!("{CAL}/calendars/ada/"), format!("{CAL}/calendars/team/")]; + let found = mailcraft_model::DavFound { calendar_homes: homes.clone(), calendars: 3, ..Default::default() }; + shared.lock().unwrap().tell[0].send(crate::dav_find::DavFindEvent::Finished(Ok(found))).unwrap(); + d.poll(); + assert!(d.save(&mut a)); + assert_eq!(a.session.mailbox.account(id).unwrap().dav.clone().unwrap().calendar_homes, homes); +} + +#[test] +fn a_missing_password_is_asked_for_once_not_twice() { + let (mut a, id) = app(); + a.execute("account.davSet", json!({"id": id, "calendarHomes": [format!("{CAL}/calendars/ada/")], "separatePassword": true})).unwrap(); + a.dav.shown.insert(id, DavProblem::NeedsPassword); + assert_eq!(status(&a, a.session.mailbox.account(id).unwrap()), None, "File › Info's own line asks for it"); + assert!(a.hold_dav_password(id, CAL, "own")); + assert!(status(&a, a.session.mailbox.account(id).unwrap()).is_some()); +}