Online Shopping : Computers : Programming : Languages : PHP : Function Libraries : IMAP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 14 people (43%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can I get the size of an IMAP message?

Jan 25th, 2000 18:16
Nathan Wallace, npguy, Chuck Hagenbuch


Here, $mbox is a pointer to the inbox and $x is the message number:

    $mailsize = imap_fetchstructure($mbox, $x);

You can retrieve the total size of the message with:

    $size = $mailsize->bytes;