Does anyone have a code sample for determining if a sent fax has been archived? My C# code is below. It would be nice if there was an IsArchived property for faxes in the API, but I'm sure there is another method for retrieval, but I can't seem to figure out what that method is. I am reading UserIDs from a text file and checking their faxes to see if they are archiving properly. I can get to their faxes, but cannot figure out how to determine if they are being archived or not.
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace rfaxapi
{
class Program
{
static void Main(string[] args)
{
string inputfile = "C:/users.txt";
TextReader userinput = new StreamReader(inputfile);
RFCOMAPILib.FaxServer FaxAPI = new RFCOMAPILib.FaxServer();
FaxAPI.ServerName = "ServerName";
FaxAPI.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
string usr;
RFCOMAPILib.User temp;
while (((usr = userinput.ReadLine()) != null) && (usr != ""))
{
usr = usr.ToUpper();
temp = FaxAPI.get_User(usr);
foreach (RFCOMAPILib.Fax fx in temp.Faxes)
{
<Need to retrieve fax archive status here>
}
}
}
}
}