[pbs-devel] applied-series: [PATCH proxmox v3 1/4] sendmail: add sendmail crate
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Dec 2 15:45:28 CET 2024
Am 02.12.24 um 15:16 schrieb Shannon Sterz:
> add the `proxmox-sendmail` crate that makes it easier to send mails via
> the `sendmail` utility. features include:
>
> - multipart/alternative support for html+plain text mails
> - multipart/mixed support for mails with attachments
> - automatic nesting of multipart/alternative and multipart/mixed parts
> - masks multiple receivers by default, can be disabled
> - encoding Subject, To, From, and attachment file names correctly
> - adding an `Auto-Submitted` header to avoid triggering automated mails
>
> also includes several tests to ensure that mails are formatted
> correctly. debian packaging is also provided.
>
> Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
> ---
>
> changes since v2 (thanks @ Lukas Wagner <l.wagner at proxmox.com>)
> - added debian packaging
> - change instances of `push_str(&format!(..)` over to `writeln!(..)`
> and `write!(..)`
>
> changes since v1 (thanks @ Lukas Wagner <l.wagner at proxmox.com>):
> - make it possible to disable receiver redaction
> - re-structure the mal formatting code; mainly split it into
> multiple functions (`format_header`, `format_body`,
> `format_attachment` etc.)
> - fix multiple typos
>
> Cargo.toml | 2 +
> proxmox-sendmail/Cargo.toml | 16 +
> proxmox-sendmail/debian/changelog | 5 +
> proxmox-sendmail/debian/control | 43 ++
> proxmox-sendmail/debian/copyright | 18 +
> proxmox-sendmail/debian/debcargo.toml | 7 +
> proxmox-sendmail/src/lib.rs | 779 ++++++++++++++++++++++++++
> 7 files changed, 870 insertions(+)
> create mode 100644 proxmox-sendmail/Cargo.toml
> create mode 100644 proxmox-sendmail/debian/changelog
> create mode 100644 proxmox-sendmail/debian/control
> create mode 100644 proxmox-sendmail/debian/copyright
> create mode 100644 proxmox-sendmail/debian/debcargo.toml
> create mode 100644 proxmox-sendmail/src/lib.rs
>
>
applied series and uploaded the new debian rust-source package to our devel repo, thanks!
More information about the pbs-devel
mailing list