Posted by on 01 August 2012 04:59 PM
TOOL is directly accessing application to API. So you can set everything and more than in Icewarp Administration console through that. In many cases it's quicker to use TOOL or it's necessary due to function or variable absence in console.
TOOL is stored in Icewarp root folder\tool.exe
EXAMPLES OF USAGE
New account creation
tool create account firstname.lastname@example.org u_name "Tool Usage" u_password "toolpwd"
Existing account modification
tool modify account email@example.com u_password "changedpwd"
Existing accounts modifications
tool modify account *@domain.com u_comment "Modified account"
Deleting accounts in specified domain
tool delete account e*@domain
Import accounts from the file
tool import account importfile.txt u_name u_password
If this text shown above will be saved in mentioned txt file, account firstname.lastname@example.org will be created with name "Lukas Pibol" and password "lukaspwd".
Export accounts from database to BASE64 encoded file
tool export account *@domain.com u_backup > users-domain-com.csv
TOOL and APIconst.pas
File apiconst.pas is one of most important file when using TOOL. You can find that in Icewarp\api\delphi\apiconst.pas. All constants of API are displayed and explained here, but don't forget, that all levels have to be typed when commands creating.
tool display system C_InstallPath