I gave up on trying to figure out how to do the auth.  But I got a script up
that returns the size in bites of the main.mbx file.  in ASP.

This assumes that you foldernames are in somedomain_com format.  And you are
submitting it the domain name as somedomain.com and a username to check.

it needs to reside in the default web folder as an asp.  Which can be called
by a form.

But it still doesn't tell me how many messages ... just that there is
something in it.
----------------------------------------------------------------------------
-------------
option explicit

dim MServ, UName, objFSO, objItem, modmserver, atdot, mservlen, dotsign

MServ = Request("mserver")
UName = request("uname")

dotsign = "."
atdot = instr(MServ,dotsign)

mservlen = len(MServ)
modmserver = mid(MServ,1,atdot-1) &"_"& mid(MServ,(atdot + 1),(mservlen -
atdot))
  Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

  if objFSO.fileexists("D:\IMail\"&modmserver&"\users\"&UName&"\main.mbx")
then
     Set objItem =
objFSO.GetFile("D:\IMail\"&modmserver&"\users\"&UName&"\main.mbx")
    response.write objItem.Size
 else
     response.write "NULL"
end if
----------------------------------------------------------------------------
--------------------------

Corey

----- Original Message -----
From: "Sanford Whiteman" <[EMAIL PROTECTED]>
To: "Corey Mahoney" <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 11:59 PM
Subject: Re: [IMail Forum] ASP or cgi account checker??


> >I'm getting hung up on the password authing.
>
> Um,  are you using a POP3 control? That's the only way you're going to
> hit the mailboxes other than locking the disk files (NOT recommended),
> and  it's  dirt  easy  using  any  such control to send a username and
> password.
>
> I  don't  understand  how  you're going about this that you could have
> gotten  to  the  point  of  authentication,  but  are  unable to get a
> password in there.
>
> Once you're in, STAT is the command you want to pass to get number and
> size of messages.
>
> Sandy
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to