mirror of
https://github.com/chatmail/relay.git
synced 2026-09-13 02:43:15 +00:00
refactor: Apply more lints (#17)
Sets lint rules and applies required changes. Fixes: #16 Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
This commit is contained in:
committed by
GitHub
parent
aab39be662
commit
9eb86b23ce
@@ -92,7 +92,10 @@ impl SmtpHandler for OutgoingBeforeQueueHandler {
|
||||
}
|
||||
|
||||
// Allow self-sent Autocrypt Setup Message
|
||||
if envelope.rcpt_to.len() == 1 && envelope.rcpt_to[0] == envelope.mail_from {
|
||||
if envelope.rcpt_to.len() == 1
|
||||
&& let Some(rcpt_to) = envelope.rcpt_to.first()
|
||||
&& *rcpt_to == envelope.mail_from
|
||||
{
|
||||
let subject = message
|
||||
.headers
|
||||
.get_first_value("Subject")
|
||||
|
||||
Reference in New Issue
Block a user