Lotus Domino - find "from" for email


I have this code going through the email doc in domino

       For Each it In docMailItem.Items
        Debug.Print it.Name
        Debug.Print it
        ' or get the value in any other way!
       Next it

I see the it.Name as being all the fields that I need, such as Subject and From, but I can not get to the value. Please help. Thank you.

As a background, here the code leading to it. It all works.

   Set colMailItems = Maildb.AllDocuments
   Set docMailItem = colMailItems.GetLastDocument
   NumberOfMessages = colMailItems.Count
   ReDim aryContent(NumberOfMessages)
   blnReadMailRunning = True
   For lngItem = 0 To NumberOfMessages - 1
       Open storePath + "/email_" + CStr(lngItem + 1) + ".txt" For Output As 1
       Open storePath + "/email_" + CStr(lngItem + 1) + ".prop" For Output As 2
       itmMailItem.Authors = Join(docMailItem.Authors)
       Print #2, "Name=From"
       Print #2, "Value=" + itmMailItem.Authors
       If TypeName(docMailItem.Body) = "String" Then
            itmMailItem.BodyText = docMailItem.Body
           itmMailItem.BodyText = Join(docMailItem.Body)
       End If
       Print #1, itmMailItem.BodyText
       itmMailItem.LastModified = docMailItem.LastModified
       itmMailItem.Size = docMailItem.Size
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richie_SimonettiIT OperationsCommented:
msgbox docMailItem.columnvalues(1)
Richie_SimonettiIT OperationsCommented:
or, if you prefer:

For Each it In docMailItem.Items
        Debug.Print it.Name
        Debug.Print it.text
        ' or get the value in any other way!
       Next it

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kerznerAuthor Commented:
Sorry, Richie, you ARE the expert, I know, but I get

Object doesn't support this property or method
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

kerznerAuthor Commented:
Hooray! Debug.Print it.text worked
Richie_SimonettiIT OperationsCommented:
Then, the problem is with docMailItem, it is not a NOTESDocument object, isn't it?
Richie_SimonettiIT OperationsCommented:
If you have an object reference for each document in AllDocuments view, then, one of its properties is .columnvalues which is an array.
kerznerAuthor Commented:
no, of course not. I know that this is an old library I am using, but I have the code, and it is already working, so be it for now

when I re-write, I will probably use Java anyway

Best regards.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.