tuta_poll
A small library to poll mails from tutanota and possibly decrypt sender name, subject and body and mark them as read.
Overview
The library provides a high level client with the option to connect to a websocket to listen for new messages as well as a wrapper for the undocumented tuta api. The library can also decrypt sender name, subject and message body.
Usage
Config and Client
let config = Account ;
let client = new.await?;
Get messages
use pin_mut;
use StreamExt;
let mails = client.get_mails;
pin_mut!;
while let Some = mails.next.await
Connect to websocket
let connector = client.get_websocket_connector?;
loop
Examples
For two full examples see the examples/ folder.