Expand description
Contacts and calendars behind the window.
What you change is written to the folders on disk at once, then the accountโs sync sends it, right away when the server answers, later when it does not: nothing waits on the network. Each contacts-and-calendars account syncs in the background every fifteen minutes, and at once after a change here. Deleting waits ten seconds with โUndoโ, as in the mail.
Structsยง
- Calendar
Choice ๐ - Event
View ๐ - Invitation
View ๐ - PimState ๐
- What the contacts and agenda pages show: their search and their stretch of days.
Constantsยง
- DAV_
PAUSE ๐ - Between two syncs of an accountโs contacts and calendars, unless something changed here.
Functionsยง
- account_
of ๐ - The account a contact or event file belongs to, from its folder.
- add_
account ๐ - Adds a contacts-and-calendars account: finds where they are, tests the password, keeps it in the keyring, and starts syncing. On a thread.
- add_
google_ ๐account - Adds a Google account, or signs one in again (
again: its id): Googleโs page opens in your browser, Sioul waits for its answer here (Cancel stops the wait), finds the calendars and contacts, and syncs them. On a thread. - add_
sender ๐ - A sender becomes a contact, in the first address book.
- answer ๐
- Answers an invitation: โacceptedโ, โtentativeโ or โdeclinedโ. Accepted or maybe, the event goes into your first calendar; then your answer goes to the organizer, from the account the invitation came to. โaddโ only adds it (an event published, not asked); โremoveโ takes a cancelled one out.
- books ๐
- The address books a contact can go into: [{id, name}].
- calendars ๐
- The calendars an event can go into.
- collection_
of ๐ - The collection a file is in.
- completions ๐
- Addresses to complete what is typed in an address field, as JSON.
- contact ๐
- A contact, every field, for its card and its form.
- contact_
for ๐ - The contact with this address, by file; empty when there is none.
- delete_
contact ๐ - Deletes a contact, after ten seconds to undo.
- delete_
event ๐ - Deletes an event, or only this occurrence of a repeating one, after ten seconds to undo.
- event ๐
- An event as its form shows it.
- find_
uid ๐ - The event file with this UID, in any calendar.
- google_
sentence ๐ - What went wrong while signing in with Google, in your language (its mailโs sign-in too, gmail.rs).
- invitation ๐
- The invitation a message carries, as the reader shows it; empty when it carries none.
- move_
contact ๐ - A contact moved to another address book: written there, then taken out
here. When the book would not keep something the card holds, nothing moves
until
confirmed: returns{"losses": [words]}, else{"key"}or{"error"}. - move_
event ๐ - An event moved by a drag in the agenda: its occurrence starting at
startnow fromnew_starttonew_end(Unix seconds), that time alone or every time (agenda::moved); then sent, the agenda and the plan made again, and โUndoโ offered for ten seconds, which writes back what the file held, unless it changed since (a sync, another device). Returns what went wrong, else โโ. - nudge ๐
- The accountโs background sync runs now.
- ours ๐
- A file inside Sioulโs address books and calendars, never elsewhere: no
โ..โ, which
starts_withwould let through (โcontacts/../../.bashrcโ). - overlaps ๐
- Two events at once in the next
daysdays, their margins counted, those set aside left out, as JSON: [{key, day, today, first, second}], each event {key, title, from, to} (โ09:30โ), for the Porch and the agenda. - reported ๐
- What a sync said: the accountโs status, conflicts in the status line, the pages again.
- save_
contact ๐ - Saves the contact form: into its file, or a new one in the first address book; then sent. Returns the contactโs file.
- save_
event ๐ - Saves the event form: into its file, or a new one in
calendar(โaccount/idโ); then sent. - send_
answer ๐ - The REPLY to the organizer, through the account the invitation came to.
- set_
overlap_ ๐aside - An overlap set aside for good; returns what went wrong, else โโ.
- show_
pim ๐ - Computes both pages on a thread and shows them.
- start_
dav_ ๐watcher - start_
dav_ ๐watchers - Starts a background sync for each contacts-and-calendars account that has none.
- stop_
dav_ ๐watcher - Stops an accountโs background sync: it was removed.
- with_
smtp ๐ - The account with its sending server, found and kept when it had none.