I would like to save the current message as Mime from within code.
I have tried using the ItemSaveMessage() Token, but keep getting an invalid parameter error.
Do you have any ideas on what could be causing this, I have tried many different ways and still get this same error.

Here is my code:

object oAccount = state.CurrentAccount;
GroupwareTypeLibrary.Account8 account;

if (!(oAccount == null))
{
account = ((GroupwareTypeLibrary.Account8)(oAccount));

int stCount = account.SentItems.Messages.Count;
message = (GroupwareTypeLibrary.Message3)account.SentItems.M essages.Item(stCount);

GroupWiseCommander.GWCommander cmd = new GroupWiseCommander.GWCommanderClass();
string strRes = "";
string command = "ItemSaveMessage(" + '"' + message.MessageID + '"' + ',' + '"' + "C:\\" + '"' + ',' + '"' + "Mime" + '"' + ")";
cmd.Execute(command, out strRes);
}