Thanks for the script, Ted. It will need some tweaking to fit our setup
but I think it will be OK.

El vie, 18-02-2005 a las 11:19 -0500, Ted Zlatanov escribi�:
> On 18 Feb 2005, [EMAIL PROTECTED] wrote:
> 
> > Is there a quick way (i.e., not scanning through the logs) to tell the
> > last time an account has been accessed by the user, either by POP or
> > IMAP?
> > 
> > We'd like to have a quick way to tell which accounts have been inactive
> > for the past week/month/year etc. I've noticed that the dates of the
> > dirs and files on the Maildir structure are modified when mails arrive
> > or are read/deleted, etc. but I can't tell if some of them are only
> > modified on reads... I think most of them are modified both on message
> > arrivals (writes) and access (read), like the maildirsize file.
> 
> This certainly depends on your IMAP/POP server.  We use Courier
> IMAP/POP and the logs go to the syslog; this is the script:
> 
> It basically looks for "user=xyz" and "username=xyz" in the logs and
> creates /var/qmail/maildirs/xyz/active for each such user.  I'm sure
> it's easy to adapt this to any other IMAP or POP server that logs to a
> file.
> 
> Ted
-- 
 Vicente Aguilar <[EMAIL PROTECTED]>
 Departamento de Sistemas
 Tlf.: 965 98 71 92

 Recursos en la Red, S.L.U.
 http://www.renr.es



Reply via email to