global::fs
APIs to interact with the file system.
fn
dump
fn dump(dir: String) -> ()
details
write the content of the current email with itβs metadata in a json file.
fn
write
fn write(message: Message, dir: String) -> ()
details
Export the current raw message to a file as an eml
file.
The message id of the email is used to name the file.
Args
dir
- the directory where to store the email. Relative to the application path.
Effective smtp stage
preq
and onwards.
Examples
#{
preq: [
action "write to file" || fs::write("archives"),
]
}