message: remove x-ms-has-attach check

Apparently, it's not very useful (marks sigs as attachments).
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-16 22:50:36 +03:00
parent f69ad37e7a
commit 1f9172a008
2 changed files with 0 additions and 53 deletions

View File

@ -533,16 +533,6 @@ process_message(const MimeMessage& mime_msg, const std::string& path,
info.mailing_list = get_mailing_list(mime_msg);
if (info.mailing_list)
info.flags |= Flags::MailingList;
// Microsoft override; outlook message can tell us directly
// wther
const auto ms_atthdr{mime_msg.header("X-MS-Has-Attach")};
if (ms_atthdr) {
if (*ms_atthdr == "yes")
info.flags |= Flags::HasAttachment;
else
info.flags &= ~Flags::HasAttachment;
}
}
static Mu::Result<std::string>