> Art, thanks again. This does what I need, but it only handles 1 > message at a time. The biggest problem is that I have 25,000 > messages to retrieve which would mean I would have to loop over this > script 25,000 times and scan a 120 MB file that same number of > times. This is just too resource intensive.
No offense to Art and Perl, but I would recommend following Darin's example and suck records into separate database tables. Think you need something that's indexed/multidimensional. And, of course, what's wonderful is that you've thus falsified "raw" logs, since that's the only way to get things done. --Sandy ------------------------------------ Sanford Whiteman, Chief Technologist Broadleaf Systems, a division of Cypress Integrated Systems, Inc. e-mail: [EMAIL PROTECTED] SpamAssassin plugs into Declude! http://www.imprimia.com/products/software/freeutils/SPAMC32/download/release/ Defuse Dictionary Attacks: Turn Exchange or IMail mailboxes into IMail Aliases! http://www.imprimia.com/products/software/freeutils/exchange2aliases/download/release/ http://www.imprimia.com/products/software/freeutils/ldap2aliases/download/release/ To Unsubscribe: http://imailserver.com/support/discussion_list/ List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://imailserver.com/support/kb.html