Welcome to
Tweak Marketing official website!
Attachments Processor 2009
Attachments Processor 2009 v.1.60 has been released.
Update it now.
download
Technical Support
  Overview
  Select SLA plan
  Knowledge Base
  Check current versions of our products
  Documentation
  Learning courses
  Helpdesk
  Live support
  Private Download
  Personal area

Home / Support / Documentation

• AEP Online Help Index

Incoming messages Statistics - An Example of Work with Database.

Example Description

This example shows how the Database Access processor, used to exchange data with databases, works. This component allows to specify the data source, SQL instruction template, and names of variables data to be sent to.

To load the example, load the rules list rules.txt from the Examples\Database folder.

The example is the solution of the task of maintaining incoming messages statistics. When a message is received, sender's name and e-mail address are stored in the database. For each sender, the total number of received messages, dates of receiving the first and the last message are also stored.

The STATISTIC table from Microsoft Access database stats.mdb located in the Examples\Database folder is used as data source.

The following SQL instructions are used in the example - SELECT, INSERT .. INTO, UPDATE.


Example Rule Description

Filtering

There is the Subject Filter that filters all messages except debug messages from the example.

Processing

  • Parsing of the sender's name and address.
  • Search for sender with that name and address in the database.
  • If no sender is found, the new entry containing the sender name and address and current date is created, incoming messages number is set to 1.
  • If the sender is found, the last message date is refreshed, and incoming messages number is increased by 1.


Debug Messages

There is one debug message used to show how the rule works.



 
 
Solutions | Products | Support | Price & Ordering | Partners | Blog & Articles | Company

Copyright © TweakMarketing 2012. All rights reserved.