Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5996339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:05:22+00:00 2026-05-23T00:05:22+00:00

We have a mailbox containing roughly 60,000 e-mails, and I’ve been challenged to pull

  • 0

We have a mailbox containing roughly 60,000 e-mails, and I’ve been challenged to pull the names, account numbers and e-mail addresses out of the body of each and export it into a spreadsheet-friendly format.

I was thinking of using AppleScript and Notes 8.5, but I can’t find any documentation on how to interact with individual messages in Notes.

Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:05:22+00:00Added an answer on May 23, 2026 at 12:05 am

    If you’re familiar with scripting languages, I suggest going with LotusScript instead. It gives you direct access to the Notes objects rather than Applescript and the Notes C API.

    You can create a Notes Agent within the mailbox using the Notes Designer application. The code would roughly be this:

    Dim s as New NotesSession
    Dim db as NotesDatabase
    Dim dc as NotesDocumentCollection
    Dim doc as NotesDocument
    
    Set db = s.CurrentDatabase
    Set dc = db.Search(|Form="Memo"|, Nothing, 0)
    Set doc = dc.GetFirstDocument
    
    While Not (doc Is Nothing)
    
        'Process each document here...
    
        Set doc = dc.GetNextDocument(doc)
    End While
    

    The question is how are the email addresses, account numbers, and names stored in the body of each email?

    You could pull all the text out of the body of the emails into a large text file, perhaps, and then process that with Applescript, if you’re more comfortable with that.

    fileNum = Freefile()
    pathname = "C:\path\to\file"
    Open pathname For Output As fileNum
    While Not (doc Is Nothing)
    
        Set rtitem = doc.GetFirstItem( "Body" )
        Write #fileNum, rtitem.GetFormattedText(False, 0)
    
        Set doc = dc.GetNextDocument(doc)
    End While
    Close fileNum
    

    Or you could use the NotesRichTextItem methods to navigate and extract specific data from the body. This could be useful, perhaps, if the data is stored in tables within the body of the email, as the NotesRichTextItem methods allow you to find a table element and navigate cells (although this is rather difficult, and might be worth posting a second question on StackOverflow to get help with this).

    If you’re looking to get the email address and names from the To: or From: fields of the email, you can do that more easily by accessing properties of the NotesDocument for each email. The fields could be extracted like so:

    Dim ToEmail as String
    Dim FromEmail as String
    
    ToEmail = doc.SendTo(0)   'a document's item properties are zero-based arrays
    FromEmail = doc.From(0)  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an old process (VBScript) that reads a common mailbox and processes certain
I have a Windows Service which is basically accessing a mailbox and reading the
I have a fairly simple console app that monitors an exchange mailbox, picks particular
i have this error when i sending email through our web application Mailbox unavailable.
I have been given a task to write a program to automatically create a
I have a table containing roles. Many users can be assigned to a role.
So I have to make a windows service that scans incoming mails in a
I am building a POP3 mailbox in PHP. I have the following files :
I have a Rails application with a daemon that checks a mailbox for any
In my application I have users, and then each user has one mailbox where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.