Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Agent that searches documents 1

Status
Not open for further replies.

itypedformiles

Programmer
Feb 14, 2006
6
US
I've been given the task of searching the contents of documents (emails) for email addresses to remove from a mailing list. My question is, is it possible to have an agent that looks at and searches the contents of the email, rather than just the fields within that form?
 
Yes, of course. But based on the description, I think I would recommend to 'Free text search' enable the database and start looking through the database that way, at least first. I was not 100% certain of what you want to achieve, but to find email addresses inside all fields the use of free text search is normally very effective. So if it is only for finding that is an easier approach.

If you want to MODIFY something, then I would have used an agent. Also agents can use the facility of free text search to select wanted documents, and then work on a document collection.

This answer became a bit 'generic', mostly because it was a little hard to see what result(s) to be achieved.

Brgds,

TrooDOS
 
This is the best way I can describe it...

An inbox will receive several emails, of which I need to pull an email address out of the body of that email. I then need that email address to be listed in a view. I need an agent that will do this automatically, as there are many email addresses, and that email box does not belong to an actual person (it's just a place to put stuff). An individual will not be looking through each email. Nothing will be modified, just information extracted.
 
It ain't too complex.

In the mail file(s) in question the following is needed:
1. An agent that triggers either 'before new mail arrives' or 'after new mail has arrived'

2. 'Scan' or search through the text using a VARIANT element, searching for '@' (There can be several BODY elements!! for each item is needed). Read up about NotesRichTextItem's before you start...

3. Verify the address if it is RFC-821 or RFC-822 (Use the specific @Formula for this purpose, or write an own one)

4. If verified as legal rfc821/822 then
either:
Look up in the view to see if it is there already
or:
store each address in a new document

It WILL be a bit of code to write, and some minor adjustments here and there, but all main elements should be covered here based on the needs outlined...

Brgds,

TrooDOS
 
anyone know if i can do this using the header information, instead of the body of the email?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top