message: remove x-ms-has-attach check
Apparently, it's not very useful (marks sigs as attachments).
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user