refactor: do not treat messages without headers as a special case

This commit is contained in:
link2xt
2023-06-09 22:29:44 +00:00
parent d538d29b94
commit 5659c1b9c2
2 changed files with 0 additions and 10 deletions

View File

@@ -138,12 +138,6 @@ pub(crate) async fn receive_imf_inner(
Ok(mime_parser) => mime_parser,
};
// we can not add even an empty record if we have no info whatsoever
if !mime_parser.has_headers() {
warn!(context, "receive_imf: no headers found.");
return Ok(None);
}
info!(context, "Received message has Message-Id: {rfc724_mid}");
// check, if the mail is already in our database.