Well, after several hours of tweaking, the above script PsaltyDS was kind enough to give me is not working and I have no idea why. Here is the code and some sample data.
#include <File.au3>
#include <Array.au3>
Global $sDateTime = "X-OriginalArrivalTime: 07 Mar 2011 21:08"
Global $sLogFile = @ScriptDir & "C:\Documents and Settings\Barry Bowden\Application Data\Thunderbird\Profiles\8xdu7029.default\Mail\pop3.live.com\Inbox"
Global $aLogData[1], $iIndex
; Find Date\Time stamp
_FileReadToArray($sLogFile, $aLogData)
$iIndex = _ArraySearch($aLogData, $sDateTime, 1, 0, 0, 1)
If @error Then
MsgBox(16, "Error", "Failed to find Date\Time stamp: " & $sDateTime)
Exit
EndIf
; Display seven lines after Date\Time stamp
$iIndex += 7
If $iIndex <= $aLogData[0] Then MsgBox(64, "Data line", $aLogData[$iIndex])
DATA ==============================================================
To: FIRST NAME LAST NAME <bqbowden@msn.com>
Return-Path: noreply@timewarnercable.com
X-OriginalArrivalTime: 07 Mar 2011 21:08:07.0775 (UTC) FILETIME=[C1E796F0:01CBDD0B]
--uVoice_BND4D754936615238
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 8bit
Mailbox 919-529-4460 has a new voice message from Unknown Name (919-575-4175).
Length: 17 seconds
Received on: 03/07/2011 04:08PM (EST)
DATA ==============================================================
Why is the search failing to find the text?
Barry