APIs to interact with the file system.
fn dump(dir: String) -> ()
write the content of the current email with it’s metadata in a json file.
fn write(message: Message, dir: String) -> ()
Export the current raw message to a file as an
The message id of the email is used to name the file.
dir - the directory where to store the email. Relative to the
preq and onwards.
action "write to file" || fs::write("archives"),