From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>,
Shannon Sterz <s.sterz@proxmox.com>
Subject: [pbs-devel] applied-series: [PATCH proxmox v3 1/4] sendmail: add sendmail crate
Date: Mon, 2 Dec 2024 15:45:28 +0100 [thread overview]
Message-ID: <0eeb8789-037f-4384-b306-aad88bcea602@proxmox.com> (raw)
In-Reply-To: <20241202141655.254472-1-s.sterz@proxmox.com>
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@proxmox.com>
> ---
>
> changes since v2 (thanks @ Lukas Wagner <l.wagner@proxmox.com>)
> - added debian packaging
> - change instances of `push_str(&format!(..)` over to `writeln!(..)`
> and `write!(..)`
>
> changes since v1 (thanks @ Lukas Wagner <l.wagner@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!
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
prev parent reply other threads:[~2024-12-02 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 14:16 [pbs-devel] " Shannon Sterz
2024-12-02 14:16 ` [pbs-devel] [PATCH proxmox v3 2/4] notify: switch sendmail endpoint over to new crate Shannon Sterz
2024-12-02 14:16 ` [pbs-devel] [PATCH proxmox v3 3/4] sendmail: add mail-forwarder feature Shannon Sterz
2024-12-02 14:16 ` [pbs-devel] [PATCH proxmox v3 4/4] notify: use proxmox-sendmail forward implementation Shannon Sterz
2024-12-02 14:22 ` [pbs-devel] [PATCH proxmox v3 1/4] sendmail: add sendmail crate Shannon Sterz
2024-12-02 14:33 ` Lukas Wagner
2024-12-02 14:42 ` Shannon Sterz
2024-12-02 14:45 ` Thomas Lamprecht [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0eeb8789-037f-4384-b306-aad88bcea602@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
--cc=s.sterz@proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox