Skip to Content.
Sympa Menu

Custom user attributes

If the user description parameters available in Sympa don't suit your needs, you can define your own description attributes. These attributes can be used when moderating subscription or message moderation. They provide additional, useful informations, when making a decision.

Custom attributes definition

These attributes are defined in the list configuration by the custom_attribute parameter. You can define as many attributes as you like.

Custom attributes provisioning

Custom attributes can be provided using two mutually exclusive ways:

  1. manually by the user
  2. extracted from an LDAP or SQL repository (see include_ldap_ca and include_sql_ca list configuration parameters).

How are the custom attributes values obtained from users?

Users can provide the information expected by your custom attributes in two places:

How is it stored?

The custom attributes are stored as XML fragments in the subscriber_table table of database. This fragment is located in the custom_attribute_subscriber field.

Here is an example of such an XML fragment, which contains two custom attributes :

<?xml version="1.0" encoding="UTF-8" ?>
<custom_attributes>
  <custom_attribute id="accr">
    <value> ultra-violet</value>
  </custom_attribute>
  <custom_attribute id="pt">
    <value>0</value>
  </custom_attribute>
</custom_attributes>

So, what can you do with that feature?

The custom attributes are displayed for each user in the subscribers review of the web interface.

You can use these attributes for message personalization.

Top of Page