11 Oct
2004
11 Oct
'04
8:19 p.m.
On 11.10.2004, at 16:39, Ben Beuchler wrote:
I'm looking for a way to figure out which accounts have not been logged in to in over n days. It occurs to me that, perhaps, the way to do this would be to look at the mtime on one of the dovecot-maintained files, like 'dovecot-uidlist'. Is there a particular file that would be modified on (almost) every login, whether it be via POP or IMAP?
Probably best would be to check atime of .INBOX/.imap.index file. dovecot-uidlist isn't necessarily accessed every time. And if nothing has changed in mailboxes, mtime isn't changed from any file.