I want do a DLP scan, if for example:

Header contains a keyword1 AND the subject (or body) contains keyword2


Can you give an estimation off the performance drop and extra memory, when 
scanning through all the parts?

And what would it take to change the code to do so?


With kind regards,


Maarten Bout | Integration Consultant


-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] 
Namens Martijn Brinkers
Verzonden: vrijdag 29 januari 2016 3:15
Aan: [email protected]
Onderwerp: Re: [Djigzo users] Combining DLP in subject and body



On 28-01-16 16:09, Maarten Bout wrote:
> Hello,
>
> I'm wondering if there's a possibility to combine a DLP in the subject, and a 
> DLP in the body.
>
> Encryption should triggering on the words: trigger1, trigger2
>
> For example
> Subject contains: trigger1
> Body contains: trigger2
>
> I'm using the following regexp: trigger1.*(\n|.)*trigger2
>
> When the subject or the body contains: trigger1 and trigger2, the email gets 
> encrypted.
> But when the subject contains: trigger1, and the body contains: 
> trigger2, the email doesn't get encrypted
>
> Does anyone have any experience with this situation?

Unfortunately, matching on multiple message parts is not supported. For 
performance and memory reasons, a message is scanned part by part and the 
headers of the message are considered to be a separate part. So if you have a 
multipart message, every part of the message is scanned on it's own. In 
principle it should be possible to modify the code to combine all parts into 
one large part and scan the complete text. This however makes scanning slower 
and require more memory.

What is the kind of DLP scanning that you want to accomplish? Only DLP scan if 
the subject contains some string?

Kind regards,

Martijn Brinkers

--
CipherMail email encryption

Email encryption with support for S/MIME, OpenPGP, PDF encryption and secure 
webmail pull.

https://www.ciphermail.com

Twitter: http://twitter.com/CipherMail

_______________________________________________
Users mailing list
[email protected]
https://lists.djigzo.com/lists/listinfo/users
_______________________________________________
Users mailing list
[email protected]
https://lists.djigzo.com/lists/listinfo/users

Reply via email to