Setup of iQ.Suite Trailer for Department-Specific need
iQ.Suite Tips & Tricks for IBM Domino
For instance, to set up and use department-specific trailers, you can use the public address book (names.nsf) as data source.
In the address book, the necessary information can be stored in the personal document.

The following formula rule allows to use this information:

In words:
@Contains((@Dblookup( "" ; "": "names.nsf" ; "$Users" ;From;"Department"));"IT");
This formula rule checks whether or not the sender of an email belongs to the “IT” department.
The email “from” field is checked against the personal document of the public address book (names.nsf).
This rule can be used, for instance, to set up department-specific trailers.

Note: To avoid problems when processing emails, we recommend to use the formula validation feature under Tips and Tricks.
The rule would look like the following:
_result := @contains((@dblookup("";"":"names.nsf";"$Users";@LowerCase(from);"Department"));"IT");
@if(@IsError(_result);@false;_result);
If the Department field is changed in the directory, this will not
immediately be reflected by the rule as Domino stores the response to
the request in the cache.