LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 21-Sep-2009, 07:17 AM
Junior Member
 
Join Date: Sep 2009
Posts: 10
CandiceS 0 reputation points
Default Save Message as Mime problem

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);
}
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 05:51 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2