fix: Treat only "Auto-Submitted: auto-generated" messages as bot-sent (#5213)

"Auto-Submitted: auto-replied" messages mustn't be considered as sent by either bots or non-bots,
e.g. MDNs have this header value and it's the same for bots and non-bots.
This commit is contained in:
iequidoo
2024-01-24 23:11:35 -03:00
committed by iequidoo
parent 19dce9ddfa
commit 7cf382a3b8
5 changed files with 48 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ pub enum Param {
/// For Messages: the message is a reaction.
Reaction = b'x',
/// For Messages: a message with Auto-Submitted header ("bot").
/// For Messages: a message with "Auto-Submitted: auto-generated" header ("bot").
Bot = b'b',
/// For Messages: unset or 0=not forwarded,