[imp] simple one for the wishlist

Joseph Brennan brennan@columbia.edu
Wed, 14 Feb 2001 09:08:51 -0500



--On Tuesday, February 13, 2001 5:02 PM -0800 bill parducci 
<bill@parducci.net> wrote:

> it would nice if the size (diskspace) of the INBOX file were reported
> in the imp  header ('folders' would not be accessible without dorking
> with filesytem access  <yuck>)
>
> for example:
>
> Message Composition  |  108 new, 0 recent  | INBOX size: 17005K
>
> something simple like:
>
> $userName="jsmith";
> $inboxDir="/var/spool/mail/";
>
> echo "INBOX size: " . ceil((filesize($inboxDir . $userName)/1000)) .
> "K";



This assumes (a) inbox is a single file and (b) the IMP server has
read access to the filesystem where inbox is.  Neither can be
assumed by an imap client.

IMP could get the message sizes in a FETCH command and total them.
That would work for any IMAP server.

Joseph Brennan                           postmaster@columbia.edu
Academic Technologies Group, Academic Information Systems (AcIS)