Skip to content

v0.6.0

Choose a tag to compare

@TFoxik TFoxik released this 23 Oct 18:40
· 3 commits to main since this release

Changes

  • 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().