Expand description
Check the Github README, to see an overview of the library.
Modules§
Functions§
- serve
- Main mailfred function.
Initialize a server that will serve the given service throught the given
connector.
Note that once the transports are connected, this function never ends.
If you want to finish this task, wrap it arround a
tokio::spawn
that can be cancelled. - spawn_
consumer - Spawn a task that will consume the given inbound transport without
processing the messages.
Because the inbound method is expected to extract the message,
it can be used to keep clean the inbound.
i.e. using
imap
it will remove all the emails in the configured folder.