From 6a22811ad96f9ae8fed62dd5f8b421375e58aa1b Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 21 Jan 2024 16:07:11 +0100 Subject: [PATCH] trim mails --- src/model/mail.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/mail.rs b/src/model/mail.rs index dc5aff7..d03cf79 100644 --- a/src/model/mail.rs +++ b/src/model/mail.rs @@ -128,8 +128,9 @@ Der Vorstand .parse() .unwrap()); let splitted = send_to.split(','); - let send_mail = false; + let mut send_mail = false; for single_rec in splitted { + let single_rec = single_rec.trim(); match single_rec.parse() { Ok(val) => { email = email.bcc(val); -- 2.45.2