Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to find out mailboxes which are not accessed since for say 2 months

1 view
Skip to first unread message

vijay gharge

unread,
Feb 15, 2005, 12:23:01 AM2/15/05
to
Hi all,
I am using RHL 7.2 with imapd 2.1. I want to know how to find
out mailboxes, which are not accessed since last, for say 2 months. I
am using sendmail 8.11 and imapd 2.1. So please suggest me, how to find
it out or please tell me, whether there is any script, using which I
can find out the same.

Thanks in advance.
Vijay G.

Jochen Bern

unread,
Feb 16, 2005, 4:15:25 PM2/16/05
to

Does the old-fashioned way (difference mtime vs. atime) work for you?

[After sending test email]
% ls -l /var/spool/mail/bern
-rw------- 1 bern root 518 2005-02-16 22:00 /var/spool/mail/bern
% ls -lu /var/spool/mail/bern
-rw------- 1 bern root 518 2005-02-16 20:00 /var/spool/mail/bern
[Note differing timestamps]

[After opening INBOX (not the test email!) with uw-imapd & Mozilla]
% ls -l /var/spool/mail/bern
-rw------- 1 bern root 0 2005-02-16 22:10 /var/spool/mail/bern
% ls -lu /var/spool/mail/bern
-rw------- 1 bern root 0 2005-02-16 22:10 /var/spool/mail/bern

Regards,
J. Bern

0 new messages