Hello all


        I am trying to pull data from 7 files (Message tracking logs) I
need to get ALL messages from or to 5 users and put it in a text file.


The information to be extracted is Date, time, To, From, Subject. (Maybe if
there was an attachment)
Can anyone help me.


Thanks in advance.





      I am not familiar with exchange, but if these are plain text files,
and have a specific delimiter this is pretty simple to do using split. For
instance, if you read the file into an array and ran the following code it
would print out what you need. Of course this code would only work if a tab
was the delimiter and the fields you want were the only ones but, this is a
good start.


foreach $line (@file){


($Date, $Time, $To, $From, $Subject, $Attachment) = split (/\t/, $line);


if($line =~ /myusername/){


print "$Date\n$Time\n$To\n$From\n$Subject\n$Attachment\n\n";


}

_______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to