exchange like database?
If they are actual files, then it should be easy using cfdirectory
alone, the windows file system as Brook suggested or even with java
(java.io.File).
You'll just need to done a little recursion inside the mail store
folder, not hard at all.
This custom tag recurses through an entire dir tree and returns a query
which you could then use QoQ on easily.
Calling Page
------------------
<cfset basedir = "c:\mailroot\">
<cf_dir basedir = "#basedir#">
<cfdump var="#request.filelist#">
TAG (save as dir.cfm)
-----
<cfparam name="request.filelist"
default="#QueryNew('Filename,FileDate,Size')#">
<cfdirectory action="" directory="#attributes.basedir#" name="list">
<cfloop query="list">
<cfif type is "File">
<cfscript>
QueryAddRow(request.filelist);
QuerySetCell(request.filelist,"FileName","#attributes.basedir##name#");
QuerySetCell(request.filelist,"FileDate","#DateLastModified#");
QuerySetCell(request.filelist,"Size","#Size#");
</cfscript>
<cfelse>
<cfif NOT (name is "." or name is "..")>
<cf_dir basedir = "#attributes.basedir##name#\">
</cfif>
</cfif>
</cfloop>
-----Original Message-----
From: Gerry Pauline [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 22:26
To: CF-Talk
Subject: Counting Mail Messages In A Folder
CF-Pros:
We have several report utilities written in CF to report on our
system, Ipswitches iMail.
We've been asked to look into a utility (acquire/build) to count
the
number of messages in each folder.
Questions:
* What is the delimiter for messages in a folder (is it the same
for all
mail servers, or unique to a particular mailer, again, we use
Ipswitches's iMail, latest version)
* I believe some of you are iMail users, anyone aware of utility
similar
to what we are interested in ?
Thank you.
-Gerry
Gerard T. Pauline
Computer Systems, DoIT
Pace University
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

