Brook,

The best way to work with log files is with some unix-based utilities such as grep & 
cat.  They're command line utilities which make it easier to scan and return certain 
lines from text files (lines that match a pattern, for instance). You can actually 
find Windows versions of those around as well.  There's also similar tools available 
on the NT/W2K Resource Kit disk, I think the 'grep' equivalent is called 'find.exe' 
and 'findline.exe' or something like that.  You'll also want to be familiar with 
Regular Expressions.  To get your mailing data out of the log file I could see using a 
vbs/js/perl script if you're familiar with that, or even using CF in a pinch (though 
it'll be slow using CF).


>06/27/2003 06:16:36 PM [001] 231DE138C5E63545B785D8C4E70029E4.mbx sent successfully 
>to [EMAIL PROTECTED] from <[EMAIL PROTECTED]> 6922
>
>What is the best way to return this string "<[EMAIL PROTECTED]>" from that line?

I'm not going to test this RegEx but it or something close will work (might wrap but 
it's all one line):

"<([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)[EMAIL 
PROTECTED](\.[a-zA-Z0-9-]+)*\.(([a-zA-Z]{2,3})|(aero|coop|info|museum|name)))?>"

HTH,
-Max

==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Support/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================


Reply via email to