Getting the size of an entity (was Re: [Mimedefang] Update to MIMEDefang Filter KAM)

David F. Skoll dfs at roaringpenguin.com
Mon Apr 19 11:47:36 EDT 2004


On Mon, 19 Apr 2004, Joseph Brennan wrote:

> a) Correct, this assumes html text has a natural limit, and it would
> be better to actually test it.  Now how do you test the size of an
> entity?

You can get the name of the file holding the data as
$entity->bodyhandle->path and then test its size with the Perl "-s"
operator.

Regards,

David.



More information about the MIMEDefang mailing list