for(int i = 0; i < _database.AllDocuments.Count; i++)
{
NotesDocument _document = _database.AllDocuments.GetNthDocument(i);
if (_document != null)
{
int _fileId = GetFileId(ref _conn, f.FullName);
if (_fileId == -1)
break;
String _ident = _document.UniversalID;
//String _author = (String)((Array)_document.Authors).GetValue(0);
//object _oposted = _document.GetItemValue("PostedDate");
//DateTime _posted = (DateTime)((Array)_oposted).GetValue(0); ;
//DateTime _posted = (DateTime)_document.LastModified;
String _encrypted = _document.IsEncrypted ? "O" : "N";
object _oposted = _document.GetItemValue("PostedDate");
DateTime _posted = (DateTime)((Array)_oposted).GetValue(0);
Array _afrom = (Array)_document.GetItemValue(
"From");
String _from = "";
for (int j = 0; j < _afrom.Length; j++)
{
_from += (String)_afrom.GetValue(j) + "\n";
Array _ato = (Array)_document.GetItemValue("SendTo");
String _to = "";
for (int j = 0; j < _ato.Length; j++)
_ato += (String)_ato.GetValue(j) + "\n";
Array _acc = (Array)_document.GetItemValue("CopyTo");
String _cc = "";
for (int j = 0; j < _acc.Length; j++)
_cc += (String)_acc.GetValue(j) + "\n";
Array _abcc = (Array)_document.GetItemValue("BlindCopyTo");
String _bcc = "";
for (int j = 0; j < _bcc.Length; j++)
_bcc += (String)_abcc.GetValue(j) + "\n";
object _osubject = _document.GetItemValue("Subject");
String _subject = (String)((Array)_osubject).GetValue(0);
object _obody = _document.GetItemValue("Body");
String _body = (String)((Array)_obody).GetValue(0);
|