Skip to content

Customizing notification messages

Hramchenko edited this page Oct 5, 2011 · 8 revisions

User Data Defence allows you to customize notification of alerts.

Open settings of UDDTray: Edit->Preferences, and select Alerts group.

Editing alert notification

There are some tabs in this group:

  • Default - settings for messages, which don't meet any condition, if you disable Show unknown messages, this messages are not shown;
  • Multiple - settings for notifications, which displayed where KNotify is overloaded by UDDTray alerts;
  • Type filter - settings for alerts with certain type;
  • Reg Exp Filter - settings which meet certain Qt regular expression.

Format string field contains message, which was shown in notification, where %field% will be replaced by its value. There are some system values:

  • %RAW_MESSAGE% will replaced with raw alert text;
  • %alerts_count% (only in Multiple tab) replaced with total count of alerts;
  • %max_level% (only in Multiple tab) replaced with maximum clearance level of received alerts.

Now we create custom notifications for Libre Office policy.

Go to the Reg Exp Filter tab. Enter in Reg Exp field type=AVC(.*)libre_office_secret select alert image and caption, select notification text.

Alerts configuration

Now if you receive AVC alerts with libre_office_secret string notification system will display something like this:

Alert notification

Go to the next part of tutorial

Clone this wiki locally