<cfset msgsize = Len(Msg.header) + Len(Msg.body)>
<CFLOOP FROM="1" TO="#ListLen(Msg.Attachments,' ')#" INDEX="CurrItem">
<CFSET FileName = ListGetAt(Msg.AttachmentFiles, CurrItem, ' ')>
<CFDIRECTORY ACTION="list" DIRECTORY="#attachdir#" NAME="thisfile"
FILTER="#GetFileFromPath(Filename)#">
<cfset msgsize = msgsize + thisfile.size>
</CFLOOP>
<cfset msgsize = msgsize / 1024>
<cfif msgsize gte 1000>
<cfset msgsize = msgsize /1024>
<cfset decimalmarker = Find(".", msgsize) + 1>
<cfif Len(msgsize) gt decimalmarker>
<cfset msgsize = Left(msgsize, decimalmarker)>
</cfif>
<cfset msgsize = msgsize & " MB">
cfelse>
<cfset msgsize = Round(msgsize)>
<cfset msgsize = msgsize & " KB">
</cfif>
At 04:08 PM 2/27/2003 -0500, you wrote:
>How can you get the size of a specific email? I didn't see any options for
>the CFPOP tag.
>Do I need to use some java magic for this task or did I overlook the
>parameter?
>
>Regards,
>
>Dave Bosky
>Sr. Multimedia Web Designer
>Horry Telephone Cooperative, Inc.
>office: (843)369-8613
>[EMAIL PROTECTED]
>
>
>
>HTC Disclaimer: The information contained in this message may be
>privileged and confidential and protected from disclosure. If the reader
>of this message is not the intended recipient, or an employee or agent
>responsible for delivering this message to the intended recipient, you are
>hereby notified that any dissemination, distribution or copying of this
>communication is strictly prohibited. If you have received this
>communication in error, please notify us immediately by replying to the
>message and deleting it from your computer. Thank you.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4