Attached is a little perl script which parses /var/log/maillog and lists
the last time users logged in.

It can be easily adapted to do an in depth scan any/all log file.

On Thu, 2013-04-11 at 10:15 +0200, Marc Patermann wrote:
> Dale J Chatham schrieb (10.04.2013 21:49 Uhr):
> 
> > Assuming Linux?UNIX,
> > log onto the machine, run the command: last
> This does only work, if IMAP users are system users - which most of
the 
> time is not the case.
> 
> > Perl is your friend.
> Pass your imap log for "User logged in". Extract username and
timestamp. 
>   Update the users entry in your data store with the timestamp.
> 
> Maybe your syslog daemon can do something like that for you.
> 
> 
> Marc
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Attachment: last-login.pl
Description: Perl program

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Reply via email to