----- Original Message ----- 
From: "Colbeck, Andrew" <[EMAIL PROTECTED]>

> Hey, Bill.  You've got your thinking cap on too tight!
>
> > Find "@aol.com" \*\forward.ima >found.txt
> >
> > The idea is to search all subdirectories of the current director for
> > forward.ima and look to see if @aol.com is in there.
>
> fgrep -r -i -l "@aol.com" forward.ima *.

Been playing with these scripts a bit more and running them against one of
my production servers, and this script is screaming fast and will give you a
nice text file output like:

m:\imail\domain.com\users\joeblow\forward.ima:[EMAIL PROTECTED]

(note the file path with the actual "forward to" e-mail address at the end
of the line)

Here is the revised script for you UNIX tool lovers:
=====
dir /S m:\imail\forward.ima | grep Directory | gawk "{print $1,$3,$2}" | sed
"s/Directory/egrep \-iaH "\"\.com|\.net|\.org"\"/g" | sed "s/
of/\\forward\.ima/g" > forward.bat
forward.bat > forward.txt
=====

This is a two line script, with the second line starting with "forward.bat",
and as it's shown above, will give you an output of all forward.ima files on
the server that have a forwarding address that ends in "net", "com", or
"org".  Easy to modify to search for a specific e-mail address or domain by
changing the search string from "com|net|org" to something like
"[EMAIL PROTECTED]" or simply "@domain\.com".  Be sure to adjust the path
to your IMail directory.

Have fun...

Bill

---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to