in reply to How to find the size of an attachment in a POP3 server
In general, that number will be higher than the attachment size, because it's the raw byte size of the complete message: it contains the message headers, any text body, the MIME headers for each attachment, and it's inflated due to the attachment(s) being encoded. You might want to account for that by taking a percentage off. In any case, you can be reasonably certain the attachment(s) will be smaller than $size, which I suppose will work for your purpose.my $size = $pop->list( $msgnum );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to find the size of an attachment in a POP3 server
by bart (Canon) on Sep 05, 2007 at 12:14 UTC | |
|
Re^2: How to find the size of an attachment in a POP3 server
by Satish@Stag (Novice) on Sep 07, 2007 at 07:46 UTC |