User Tools

Site Tools


reference:spamrules_statement_getusergroup

This is an old revision of the document!


Spam Filter Rules: GetUserGroup

Statement GetUserGroup
Version 2.4.5+
Purpose Checks if the specified user is assigned to a VPOP3 group, and returns the group name

The GetUserGroup statement requires a username and variable name, in the format

GetUserGroup <username> <variable name>

If the user is not assigned to a group, an empty value will be returned.

Example

The following example will return the group which the user 'postmaster' is a member of and store it in the ${pmGroup} variable.

GetUserGroup "postmaster" pmGroup
reference/spamrules_statement_getusergroup.1314184934.txt.gz · Last modified: 2018/11/14 10:44 (external edit)