Re: Perl Analyzing Maillog

2005-03-22 Thread Nick Chettle
Wagner, David --- Senior Programmer Analyst --- WGO wrote: I took a quick look at some of the earlier emails and Charles Clarkson's email is what you are after. Using the push on your hash to create the array. You're quite right, it does. I was testing it and was getting the same result as with

Re: Perl Analyzing Maillog

2005-03-21 Thread Nick Chettle
Wagner, David --- Senior Programmer Analyst --- WGO wrote: Then concatenate in something like: $msgids{"$1"} .= $msgarray[$_]; Wags ;) Thanks for the speedy response. Sorry, but I don't understand how to use that. Surely that would be trying to index an array but a great l

Re: Perl Analyzing Maillog

2005-03-21 Thread Nick Chettle
Charles K. Clarkson wrote: : I've been thinking about it an wondering if it needs to be this : complex. Can't I just create a hash (With the message ID as the key) : and the line as data? I tried: Only if the message ids are unique. I have no idea what a mail log looks like, so I don't know if

[Fwd: Re: Perl Analyzing Maillog]

2005-03-19 Thread Nick Chettle
se of a variable in void context at ./id line 20. Could you advise what I am doing wrong here? I'd just like to say thank you for yours (And mgoland, and Zeus) help with this. Each a very helpfull and informative reply (Even if I don't quite fully understand yet!). Charles K. Clarkson wr

Re: Perl Analyzing Maillog

2005-03-16 Thread Nick Chettle
ould simply do: for (sort keys %msgids) { print $msgids{$_}; } To print each line found. For some reason this returns nothing. Thanks for your help. Hope my questions aren't too simple! Nick [EMAIL PROTECTED] wrote: - Original Message - From: Nick Chettle <[EMAIL PROTECTED]> Da

Perl Analyzing Maillog

2005-03-16 Thread Nick Chettle
Hi All, I am trying to write a simple script that will analyze a Postfix maillog. The basic idea is that you give it an e-mail address and it will print all the relevant lines. In order to achieve this, you first need a message ID, you can then search for the id and bring all the relevant infor