I'm struggling on making this statement works
I need to filter out sender email subject like "undeliverable" and "Automatic reply" and email addresses "no-replies@notif.com", " times@mail.com"
when running code it not returning anything.
I need to filter out sender email subject like "undeliverable" and "Automatic reply" and email addresses "no-replies@notif.com", " times@mail.com"
when running code it not returning anything.
Code:
eFilter = "@SQL= (NOT urn:schemas:httpmail:fromemail Like '%no-replies%'" & _
Not (urn:schemas:httpmail:subject" & _
" Like '%undeliverable%' Or " & _
"urn:schemas:httpmail:subject" & _
" Like '%Automatic reply%')" and
Not (urn:schemas:httpmail:fromemail" & _
" Like '%no-replies%' Or " & _
"urn:schemas:httpmail:fromemail" & _
" Like '%times%')" & _
" And urn:schemas:httpmail:datereceived = " & checkDate & _
" And urn:schemas:httpmail:datereceived <= " & tdyDate & ")"
Last edited: