I wanted to save some of the data in the anti spam system in a permanent storage, but I didn’t want to flood my database with useless information, so I’ve always intended to save this data in XML.
When I was looking at Erlang and read that it had built in XML support, this made me VERY happy
A few weeks ago I attempted to make a profile into XML using Xmerl and I wasn’t as successful as I would have liked, but I just got it finished today. The reason for the failure in my first attempt was my lack of understanding for records in Erlang, not any real problem with the language. Except the poor documentation and limited examples.
Now that I understand that you create a series of record which with which you build the XML format that you desire then run the rather complex record through Xmerl to output your XML it a rather simple process.
The real test are still to come, which is a real email being processed and the profile being written to disk and then reading the XML back in and recreating my internal records from what I read from disk. At this point it’s more a matter of getting a few test message through the system then anything else.