proxmox/proxmox-notify
Lukas Wagner 5f7ac875f6 notify: add mechanisms for email message forwarding
As preparation for the integration of `proxmox-mail-foward` into the
notification system, this commit makes a few changes that allow us to
forward raw email messages (as passed from postfix).

For mail-based notification targets, the email will be forwarded
as-is, including all headers. The only thing that changes is the
message envelope.
For other notification targets, the mail is parsed using the
`mail-parser` crate, which allows us to extract a subject and a body.
As a body we use the plain-text version of the mail. If an email is
HTML-only, the `mail-parser` crate will automatically attempt to
transform the HTML into readable plain text.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-17 08:31:36 +01:00
..
debian bump proxmox-notify to 0.2.0 2023-07-28 11:56:56 +02:00
examples notify: factor out notification content into its own type 2023-11-17 08:31:36 +01:00
src notify: add mechanisms for email message forwarding 2023-11-17 08:31:36 +01:00
Cargo.toml notify: add mechanisms for email message forwarding 2023-11-17 08:31:36 +01:00