Hello Everyone,
I found a great utility that works with only a few lines of code if you want
an asp application to access your IMail server and check for new mail.  This
Set of Objects can be installed on the web server.  It's sweet.

You can check out EasyMail Objects at http://www.easymailobjects.com/

THANK YOU FOR CHOOSING EVERYONES INTERNET
SHAY LUEDEKE
PROGRAMMER/ANALYST
EVERYONE'S INTERNET
[EMAIL PROTECTED]
www.ev1.net

 -----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]  On Behalf Of Shay
Sent:   Wednesday, November 01, 2000 6:27 PM
To:     [EMAIL PROTECTED]
Subject:        RE: [IMail Forum] Check for New Mail

Thanks Chris, I'll give this a shot.  This is exactly what I'm looking for.

Would you happen to know where I can get a socket control that can do this.
My brains a little fried right now and I'm not too sure where I can find
this control.

Thanks,
THANK YOU FOR CHOOSING EVERYONES INTERNET
SHAY LUEDEKE
PROGRAMMER/ANALYST
EVERYONE'S INTERNET
[EMAIL PROTECTED]
www.ev1.net

 -----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]  On Behalf Of Chris Terrebonne
Sent:   Wednesday, November 01, 2000 5:12 PM
To:     [EMAIL PROTECTED]
Subject:        RE: [IMail Forum] Check for New Mail

A couple of quick ways to do this is to use the IMAP4 protocol and retrieve
the RECENT message count (number of messages that have arrived in the
account since last login). This can be accomplished easily by finding a
socket control for asp and using either of the following commands (client
commands denoted with "C:" and server responses denoted with "S:":
C:  100 LOGIN username password
S:  100 OK LOGIN completed
C:  200 STATUS inbox (RECENT MESSAGES)
S:  * STATUS inbox (RECENT 0 MESSAGES 46)
C: 999 LOGOUT

Or to provide a more detailed look at the current state of the mailbox, you
can use the following:
C:  100 LOGIN username password
S:  100 OK LOGIN completed
C:  200 examine inbox
S:  * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
      * 46 EXISTS
      * 0 RECENT
      * OK [UNSEEN 11] 5 Messages unseen
      * OK [PERMANENTFLAGS ()]
      * OK [UIDVALIDITY 2340432167] UIDs valid
      300 OK [READ-ONLY] EXAMINE completed
C: 999 LOGOUT

Either one will suit your needs and both are quite fast even on large
mailboxes.  Of course, you will need to parse out the relevant information
yourself, but that in itself is a painless process.

Hope that helps,
Chris
----------------------------------------------
Original Message
From: "Dave Parfrey"<[EMAIL PROTECTED]>
Subject: RE: [IMail Forum] Check for New Mail
Date: Wed, 1 Nov 2000 17:12:31 -0500

>You can do this by purchasing a COM control that implements the POP3 or
IMAP
>interface. There are a number to chose from (check 15seconds.com or other
>sites).
>
>If I remember right, the control will read the message headers and give you
>some counts. One problem is if a user keeps gobs of messages in their main
>mailbox, the control will take a substantial amount of time to read the
>headers, since global counts aren't stored. We finally gave up trying to do
>this, since we had several users with 6-10,000 old messages sitting in
their
>inbox. It would take 2-3 minutes to count the messages.
>
>If you get something working, though, I'd love to get the code.
>
>Dave
>
>>  -----Original Message-----
>> From:        [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]
>> Sent:        Wednesday, November 01, 2000 3:06 PM
>> To:  IMail_Forum
>> Subject:     [IMail Forum] Check for New Mail
>>
>> Hello,
>> I am designing a site where a user can enter his/her login/password one
>> time and every time the user comes to the page again, the page searches
>> for the cookie, finds the login/password for the users e-mail and
displays
>> whether the user has new mail.
>>
>> I'm using ASP for the page.  I was wondering if there is a way to do
this.
>> I can write the cookies and check them all day long, but how can I check
>> for new mail without going to the web based mail pages.  I want to stay
on
>> the main page of the site.
>>
>> Thanks for your help.
>> Shay Luedeke
>> Programmer/Analyst
>> Everyone's Internet
>> Phone  713.400.5400 x234
>> Mobile 713.851.0793
>> Fax    713.942.9332
>> [EMAIL PROTECTED]
>> www.ev1.net
>>
>
>

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.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/

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