This is what I do in my own odd 'round-the-world way:

I run a batch file, then a VB6 program.  (The "=" below are only to separate
the contents from comments. Asterisks are to protect the innocent.)

Forward.bat contains
==================================================
rem create text file for VB6 program "forwarding"
cd\users
dir forward.ima /s >e:\forwardreport.txt
====================================================

>From Forward.bat I get a text file (forwardreport.txt) with this
=========================================================

 Directory of E:\users\abuse
12/08/2004  10:01a                  21 forward.ima
               1 File(s)             21 bytes

 Directory of E:\users\admissions
09/13/2004  12:57p                  47 forward.ima
               1 File(s)             47 bytes

 Directory of E:\users\ahill****
09/15/2003  07:30a                  24 forward.ima
               1 File(s)             24 bytes

And so forth for each directory with a forward.ima in it .....
======================================================

This VB6 program gives the final report

======================================================
Private Sub Form_Load()
Open "i:\forwardreport.txt" For Input As #1
Open "i:\forwarding.txt" For Output As #2
While Not EOF(1)
Line Input #1, dataline
If InStr(dataline, "Directory of ") Then
    dirname = Right(dataline, Len(dataline) - 16)
    Open "i:" + dirname + "\forward.ima" For Input As #3
    Line Input #3, forwardaddress
    Close 3
    user = Right(dirname, Len(dirname) - 7)
    Print #2, user; Tab(40); forwardaddress
    End If
Wend
Close
End
End Sub
=============================================================

The final report is two colums - username and forward-to-address

=============================================================

abuse           [EMAIL PROTECTED]
admissions      [EMAIL PROTECTED], [EMAIL PROTECTED]
ahill****       [EMAIL PROTECTED]


Like I said maybe odd, but works. 
John 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ernesto
Sent: Thursday, January 20, 2005 2:21 PM
To: [email protected]
Subject: Re: [IMail Forum] Searching for a Forward address

The thing that I forgot to add is that, we don't know the users account.
We'll get lots of emails saying:
"Please remove me from your list"
but they aren't on a list, they are in a users forwarding address.
And, as it usually happens, it's not the user who wants off, it's the parent
of the user (this is a high school setting).

I hope I'm making sense.


----- Original Message -----
From: "Matrosity Tech Support" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 20, 2005 2:08 PM
Subject: Re: [IMail Forum] Searching for a Forward address


> use windows explorer to search for 'forward.ima'
>
> Ernesto wrote:
>
> >What's the easiest way to search for a users forwarding address within
> >a domain?
> >I'm not a computer programmer in any way, so I don't know how
> >to write a script that would search for this.  If there is one out there,
> >where can I find it?
> >Thanks
> >Ernesto
> >
> >
> >
> >
> >
> >To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> >List Archive:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> >Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
> >
> >
> >
> >
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
>
>
>
>
>






To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to