Tool to trace sessions in hmailserver log files

This section contains scripts that hMailServer has contributed with. hMailServer 4 is needed to use these.
Post Reply
rodolfor
Senior user
Senior user
Posts: 282
Joined: 2005-06-30 09:05
Location: Gubbio - Italy

Tool to trace sessions in hmailserver log files

Post by rodolfor » 2008-07-16 09:02

Hi all.
This tool does the following:
- scan an hmailserver log file for some filters (time stamp and from/to address)
- identify the list of smtp/pop3/imap sessions (conversations) matching criteria
- selecting one conversation from the list, the tool show the single conversation log

This help me to trace a single conversation and identify problems similar to: "...I cannot receive/send a mail form x@y.z".
It is very fast especially when log files are very big.
This exe must be saved in Log folder and have no configuration parameters and no installation steps.
It is realized in delphi 7 using only standard components.
Is very important to use the correct interval of timestamp filter, allow to load in memory only necessary log rows.
This is a very very beta version: suggestions, bugs are welcome.
Attachments
rokfilthmail.7z
(Simple exe. Not need to install.)
(197.21 KiB) Downloaded 1090 times
Hmailserver [lastversion] + MSSQL

User avatar
mattg
Moderator
Moderator
Posts: 21266
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Tool to trace sessions in hmailserver log files

Post by mattg » 2008-07-16 09:47

looks like a good start.

I get an error saying that 00:00 isn't a valid time when I start up the application.

The e-mail address is that receiver's or sender's e-mail address? (on checking, it is actually either...)
Doesn't seem to support 24 hour time periods, or am I doing something wrong? - hang on it does, just doesn't display the 24 hour time periods.
Picking a message in the middle of the list seems to make many messages load and then unload.

Very good - I can see a use for it even in it's current state.

Matt
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

rodolfor
Senior user
Senior user
Posts: 282
Joined: 2005-06-30 09:05
Location: Gubbio - Italy

Re: Tool to trace sessions in hmailserver log files

Post by rodolfor » 2008-07-16 11:32

> I get an error saying that 00:00 isn't a valid time when I start up the application.

I take a look

> The e-mail address is that receiver's or sender's e-mail address? (on checking, it is actually either...)

Actually it check both

> Doesn't seem to support 24 hour time periods, or am I doing something wrong?
> - hang on it does, just doesn't display the 24 hour time periods.

I use it in 24hours. Which timezone you use ?

Thanks!
Hmailserver [lastversion] + MSSQL

User avatar
mattg
Moderator
Moderator
Posts: 21266
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Tool to trace sessions in hmailserver log files

Post by mattg » 2008-07-16 15:32

rodolfor wrote:> Doesn't seem to support 24 hour time periods, or am I doing something wrong?
> - hang on it does, just doesn't display the 24 hour time periods.

I use it in 24hours. Which timezone you use ?
Timezone = GMT +10:00

Times in the GUI only show 00:00 through 11:59, not 00:00 through 23:59 as I'd expect, or even an AM or PM indication.

Matt
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

bladerunner
Normal user
Normal user
Posts: 102
Joined: 2008-05-25 11:15

Something similar...

Post by bladerunner » 2009-03-24 15:03

I did something similar, just a beta..

gets a log file and allows to browse, filter, search, group etc by data in the log itself...

so is easy to find an email, get the id and filter the logfile per id basis, to analyze flow....

works on hmailserver 5 logs. Written in delphi - no runtime or other needed.

feedbacks are welcome !

some fixes dated 5 apr 09
more fixes 14 apr 09
more fixes 18 apr 09

part#4 is on another message..
Attachments
HmailLogTool.part03.rar
(256 KiB) Downloaded 877 times
HmailLogTool.part02.rar
(256 KiB) Downloaded 893 times
HmailLogTool.part01.rar
(256 KiB) Downloaded 925 times
Last edited by bladerunner on 2009-04-15 09:18, edited 1 time in total.

bladerunner
Normal user
Normal user
Posts: 102
Joined: 2008-05-25 11:15

Re: Tool to trace sessions in hmailserver log files

Post by bladerunner » 2009-04-19 08:50

part #4
Attachments
HmailLogTool.part04.rar
(137.96 KiB) Downloaded 907 times

Post Reply