473,320 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Outlook Polling or Some type of pulling

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
Feb 1 '07 #1
3 1669
tshad wrote:
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.

Feb 1 '07 #2
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.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"tshad" <t@home.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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
Feb 2 '07 #3
"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ez**************@TK2MSFTNGP06.phx.gbl...
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.
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" <t@home.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>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

Feb 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
3
by: Matt | last post by:
I'm trying to do the following, pulling from Outlook with an independent project: 1. The day's Outlook appointments, with person that the appointment was scheduled with 2. Add a list of...
62
by: Ecohouse | last post by:
I was just wondering if there was any way to use a toolbar in Outlook 2002 in Access 2002? I want to create a custom toolbar in Access similar to the Calendar toolbar in Outlook. Any ideas?
11
by: rayala | last post by:
Hi all, I am having very weird problem in my Outlook I am running my web application from with in Outlook.I found a strange problem that it is creating different sessionId if i open a new...
5
by: Mike | last post by:
Hi everyone, I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling...
13
by: LordHog | last post by:
Hello all, I have a little application that needs to poll a device (CAN communications) every 10 to 15 ms otherwise the hardware buffer might overflow when there are message burst on the bus. I...
3
by: Chris Mullins [MVP - C#] | last post by:
I'm sitting on the fence on this one, and wanted to get some other people's input. If you're a big B2B person, I would love to hear your feedback... I've got a SOA system. It's based on a...
2
by: jrworsham | last post by:
Please help! I have an Outlook module opening a connection to Access, writing in some data, and then pulling out some data. But for some reason the code only works the first time and after that you...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.