Ah thank you so much. . .I'll give it a try
EDIT: Not the exact results I'm looking for, but its close. Using the : instead of the ] gives me a line that starts with an IP addy but has unfiltered data behind it, example:
170.215.88.150]) 0 {980} retrieved, 44187 bytes
But also it appears to pick up other weird info from the log, which is not what I need, example:
18595] SMTP(hotmail.com)hz220fnco@hotmail.com failed
It would seem to me that at the begin of the script, we need to some how filter for data pertaining to 'POP-' and 'IMAP-' first. Otherwise I get lists of ip addy's for rejected messages/etc.