-
Notifications
You must be signed in to change notification settings - Fork 22
configure
Jim Cowart edited this page Jan 16, 2013
·
1 revision
The configure method takes one argument - an object literal containing or more of the following possible postal.federation settings:
-
enabled- a boolean value which defaults totrue. If this value is set tofalse, then the local instance of postal will no longer send nor receive to/from remote postal instances. -
filterMode- A string value which can be"whitelist"or"blacklist". It defaults to"whitelist". -
filterDirection- A string value which can be"in","out"or"both". It defaults to"both".
Here's an example of configuring postal.federation to use blacklist mode, with a default filter direction of "in":
postal.fedx.configure({
filterMode : 'blacklist',
filterDirection : 'in'
});