User Tools

Site Tools


reference:spamrules_statement_getusergroup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:spamrules_statement_getusergroup [2018/11/14 10:45] (current)
Line 1: Line 1:
 +======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.
 +<​code>​
 +GetUserGroup "​postmaster"​ pmGroup
 +</​code>​
reference/spamrules_statement_getusergroup.txt ยท Last modified: 2018/11/14 10:45 (external edit)