On 4/30/2015 9:15 PM, Sam Varshavchik wrote: > Alexei Yu. Batyr' writes: > >> Bowie Bailey wrote on 30.04.2015 19:48: >> > No, main check is the mtime of Maildir/cur folder. It's exactly the >> time >> > when user last checked mail by IMAP or POP. Check for >> > sqwebmail-timestamp - only for those who use Sqwebmail and not use >> IMAP >> > or POP. >> > Didn't notice that. That actually works better than what I suggested >> > since you only get a single result per mailbox. >> > >> > Why do the check for sqwebmail-timestamp? Doesn't a login to >> sqwebmail >> > also result in new messages being moved to the cur folder and updating >> > the mtime? >> > >> Good question. I wrote this script more then 10 years ago and remember >> only that added sqwebmail-timestamp check later for some reason. > > If you have maildrop filtering enabled, you could have a mail filter > that delivers all or most of the mail to some folder. So the main > maildir's cur and new directories may not actually be touched for a > while. > > However, sqwebmail-timestamp will always get updated with every login.
That makes sense. However, since few of my users use sqwebmail, I think I would rather look for the cur files in the subfolders rather than the sqwebmail-timestamp file. while (main cur mtime > 180) if (not subfolder cur mtime < 180) print username -- Bowie ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users