Outlook Polling or Some type of pulling

T

tshad

I have a program that is reading one of my mailboxes.

It is polling the mailboxes ever 5 minutes to see if there is a message or
not.

Is this how Outlook does it (using Exchange as the server)? It doesn't seem
to. When a message gets to Exchange, it seems to do some type of Push to
Outlook as Outlook has it immediately.

If so, ss there a way to make my program do that in VS. We are getting
notifications in our mailbox of actions happening in various areas and would
like to know immediatly when these email show up. At the momen, since we
poll, it could take 5 minutes to find out if a message is there.

Thanks,

Tom
 
B

Branco Medeiros

tshad said:
I have a program that is reading one of my mailboxes.
It is polling the mailboxes ever 5 minutes to see if there is a message or
not.
Is this how Outlook does it (using Exchange as the server)? It doesn't seem
to. When a message gets to Exchange, it seems to do some type of Push to
Outlook as Outlook has it immediately.
<snip>

I have no experience with Exchange, but this does seem to be an
Outlook/Exchange issue. BTW, You'l find some information in the
Microsoft web site related to Exchange 2003/2007, don't know if that
applies to you:

Notification Sample Application
http://msdn2.microsoft.com/en-us/library/ms878016.aspx

Exchange Server 2007 Subscribe Operation
http://msdn2.microsoft.com/en-us/library/aa566188.aspx

<quote>
Pull Subscription
The following code example demonstrates how to subscribe to a
pull event notification subscription. The subscription informs the
client application if new mail is placed in the inbox and if an
item
is deleted from the inbox. (...)
</quote>


Hope this puts you in the right track.

Regards,

Branco.
 
J

Jay B. Harlow [MVP - Outlook]

Tom,
I have a program that is reading one of my mailboxes.
What are you using to read a mailbox?
Is this how Outlook does it (using Exchange as the server)? It doesn't
seem to. When a message gets to Exchange, it seems to do some type of
Push to Outlook as Outlook has it immediately.
No, Outlook doesn't do that, in simple terms Outlook opens a 2 way RPC
(Remote Procedure Call) channel with Exchange.

(Assuming you are using Outlook to read your mailbox) Rather then poll the
inbox for messages I would recommend you handle the Outlook
Application.NewMailEx event. As the NewMailEx event is raised when new mail
arrives, plus it gives you a list of EntryIDs of what those items are.
 
T

tshad

Jay B. Harlow said:
Tom,
What are you using to read a mailbox?

No, Outlook doesn't do that, in simple terms Outlook opens a 2 way RPC
(Remote Procedure Call) channel with Exchange.

(Assuming you are using Outlook to read your mailbox) Rather then poll the
inbox for messages I would recommend you handle the Outlook
Application.NewMailEx event. As the NewMailEx event is raised when new
mail arrives, plus it gives you a list of EntryIDs of what those items
are.

That sounds like what I am looking for. How would I do that in my
application?

Also, would that confict with my Outlook application?

Thanks,

Tom
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


tshad said:
I have a program that is reading one of my mailboxes.

It is polling the mailboxes ever 5 minutes to see if there is a message
or not.

Is this how Outlook does it (using Exchange as the server)? It doesn't
seem to. When a message gets to Exchange, it seems to do some type of
Push to Outlook as Outlook has it immediately.

If so, ss there a way to make my program do that in VS. We are getting
notifications in our mailbox of actions happening in various areas and
would like to know immediatly when these email show up. At the momen,
since we poll, it could take 5 minutes to find out if a message is there.

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top