|Index > Scribe > message rules|
|does anyone know how i can create a message rule where anyone not in my contacts goes into the trash have tried all sorts but everything ends up in the trash|
|You can do that, but it's not obvious.
Firsly you need to be aware of the DOM that allows you access to the objects within Scribe.
Incomming mail will have a from field:
Which is of type 'Object::Address'. Now that object has a Contact field that refers to any local contact matching the email address:
And the interesting field in the contact object is 'folder' or the path to the contact in the folder tree:
Thus we can write a filter to check against the folder name, which will be null for someone we havn't got a contact record for.
mail.from.contact.folder NOT like "/contacts*"
Should do what you want.
|thank you for reply i will try that and let you know if it works. i just want all my junk mail to go in the trash can just could not for the life of me figure out how to do it i used to use a message rule like this in OE and always found it worked well|
|Also there is a bayesian filter for junk mail that you could start using. Look here for information about setting it up. Btw you'll need test40 for it to be useful.|
|thank you for help on filter it works great|