Francis P. Ling writes:
> Hi Sam,
>
>
> Just want to know how and when the .current_size file is being updated by
> sqwebmail.
>
>
> I'm using this file to generate mailbox info and push it to the cron to
> notify users about the mailbox status.
There is no .current_size file generated by sqwebmail. There is a
sqwebmail-curcnt. sqwebmail creates it by reading the cur directory and
counting the total number of files there, and the total number of unread
files.
The decision to read the cur directory is made whenever sqwebmail thinks
that the contents of sqwebmail-curcnt are no longer current. This is
derived by comparing the timestamp of sqwebmail-curcnt and the cur
directory.
--
Sam