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
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
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
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
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
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