This Lua script converts chatlogs from Trillian into a format that can be parsed by the Message Exporter plugin for Miranda IM.

** Usage: **
Insert the full path of your logfile at line 8 of the script and run it using the Lua interpreter (http://www.lua.org/).
If you want to convert a lot of logs at once, you may want to use an additional script around this one, that inserts the correct filename automatically, since Lua itself does *not* offer this functionality.

** Issues: **
The script is just a quick hack and by no means fail-proof. Be sure to backup your files before applying the script.
The conversion to UTF-8 is currently only taking care of german Umlauts, so if your codepage requires additional adjustments, be sure to check the StartNewLine() function of the script.
The output produced by the script is pretty straightforward. If you want to do a more intense postprocessing to produce nicer results, feel free to modify the WriteFile() function starting at line 186.