Thread

Index > Scribe > need help with filtering
Author/Date need help with filtering
ALL
14/05/2018 10:33pm
I'd like to make filter:

If 'sender's e-mail' = 'any e-mail from my folder Contacts'
do some Actions.

P.S.
I try to set:
mail.From.Email = mail.Contact.Folder
but It isn't working.
fret
14/05/2018 10:57pm
I'm pretty sure it's possible out of the box, but I'll have to get back to you tomorrow. It's late here.
fret
15/05/2018 8:25am
Ok this is how I would achieve what you want.. put this in the Script tab of the filter:

if (Mail.From.Contact)
	Filter.DoActions(Mail);


And then add any actions you need. No need to put normal conditions in, the script checks there is a contact object and then runs the actions. I pretty sure you could also figure out a way using the normal conditions but this is easier right now.
ALL
15/05/2018 3:24pm
Thanks, script is working.

But in this filter with this script don't working setted flag "Stop further processing of filters"

P.S.
This filter is FIRST.
Second, ..., filter processed on this email also.
fret
15/05/2018 3:47pm
But in this filter with this script don't working setted flag "Stop further processing of filters"
Oh you need to modify the script to do that too, like this:

if (Mail.From.Contact)
{
    Filter.DoActions(Mail);
    Filter.StopFiltering();
}


Easy!
ALL
15/05/2018 4:39pm
Thanks,

It is working :) :) :)
Reply