From dab5ae0798909b8a90cebbfafbee5a957483165c Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Sat, 22 Feb 2025 17:51:52 +0100 Subject: [PATCH] pmg-mail-filter: add short docs for top-part-only and only-content Signed-off-by: Stoiko Ivanov --- pmg-mail-filter.adoc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pmg-mail-filter.adoc b/pmg-mail-filter.adoc index 6e7b21f..e8a2500 100644 --- a/pmg-mail-filter.adoc +++ b/pmg-mail-filter.adoc @@ -300,11 +300,19 @@ Matches on infected mails. Match Field:: -Match specified mail header fields (for example, `Subject:`, `From:`, ...) +Match specified mail header fields (for example, `Subject:`, `From:`, ...). +Header fields of all mail-parts are taken into account by default, including the +headers of any attached mails, or the meta-information provided for attachments. +This can be restricted to only consider the headers of the top part of the mail. Content Type Filter:: -Can be used to match specific content types. +Can be used to match specific content types. By default the content type +information is taken from all available sources: The type determined by looking +at the content ('file magic') of the file, the provided `Content-Type:` +header of the attachment mail part, the type determined by looking at the suffix +of the suggested filename. Optionally this matching can be restricted to +consider the file contents. Match Filename::