Skip certain headers in OVER results

This commit is contained in:
XANTRONIX Development 2024-12-04 23:23:54 -05:00
parent 1698eaafce
commit ff19d88c3e

View file

@ -667,7 +667,18 @@ class Session(Connection):
str(message.content.count('\n') + 1),
]
HEADERS_SKIP = {
'subject': True,
'from': True,
'date': True,
'message-id': True,
'references': True
}
for k in message.headers:
if k.casefold() in HEADERS_SKIP:
continue
parts.append("%s: %s" % (
k, message.headers[k]
))