You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_inbox() lists the messages in Schránka: subject, sender, sent time, preview and whether each is unread.
get_message(id) returns one message in full; fetching it marks the message read on the portal. The body comes as a sanitised node tree (paragraphs, line breaks, bold, italics, underline, lists and http(s) links); scripts, styles, media and event handlers are dropped.
The inbox and message pages are fetched without the AJAX headers: to an AJAX request the portal answers with the inbox's first-run guide and its sample items instead of the real messages.
A page answered with the sign-in page counts as an expired session, so the session is renewed.
Breaking changes
"inbox" is no longer in CAPTURE_PAGES, so fetch_page("inbox") raises ValueError. Use get_inbox().