A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

mail receiving event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 4th 08, 08:22 AM posted to microsoft.public.outlook.program_addins
mad
external usenet poster
 
Posts: 12
Default mail receiving event

Hello!

How can my add-in know that Outlook 2007 is starting and finishing
mail receiving?

Thanks.
Ads
  #2  
Old August 4th 08, 02:01 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default mail receiving event

You can't on an automatic send/receive, there are no events for that. For a
synch started by code you can handle the SyncObject.SyncStart and .SyncEnd
events.

You can tell when items are being added to the Inbox using the ItemAdd event
of the Inbox's Items collection, but that event will fire even if someone
drops an item there, so it's not foolproof.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"mad" wrote in message
...
Hello!

How can my add-in know that Outlook 2007 is starting and finishing
mail receiving?

Thanks.


  #3  
Old August 5th 08, 01:00 PM posted to microsoft.public.outlook.program_addins
mad
external usenet poster
 
Posts: 12
Default mail receiving event

Ok, thanks!

And how about synchronization or transport state. Can I get their
state?

On 4 ΑΧΗ, 16:01, "Ken Slovak - [MVP - Outlook]"
wrote:
You can't on an automatic send/receive, there are no events for that. For a
synch started by code you can handle the SyncObject.SyncStart and .SyncEnd
events.

You can tell when items are being added to the Inbox using the ItemAdd event
of the Inbox's Items collection, but that event will fire even if someone
drops an item there, so it's not foolproof.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"mad" wrote in message

...

Hello!


How can my add-in know that Outlook 2007 is starting and finishing
mail receiving?


Thanks.


  #4  
Old August 5th 08, 02:11 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default mail receiving event

There are no SyncObject events that fire when a default send/receive is
initiated as a timed event or when started by the user unfortunately.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"mad" wrote in message
...
Ok, thanks!

And how about synchronization or transport state. Can I get their
state?

  #5  
Old August 6th 08, 03:55 PM posted to microsoft.public.outlook.program_addins
mad
external usenet poster
 
Posts: 12
Default mail receiving event

But OnSyncStart and OnSyncEnd events fires fine. Outlook 2007.

On Aug 5, 4:11*pm, "Ken Slovak - [MVP - Outlook]"
wrote:
There are no SyncObject events that fire when a default send/receive is
initiated as a timed event or when started by the user unfortunately.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"mad" wrote in message

...
Ok, thanks!

And how about synchronization or transport state. Can I get their
state?


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving Mail bobbymac Outlook Express 1 November 13th 07 04:56 PM
how does outlook detect end of mail while receiving a mail using pop3? [email protected] Outlook - General Queries 1 May 11th 06 03:26 PM
Receiving Mail Andy Petro Outlook Express 1 April 19th 06 12:58 AM
Any event when Receiving tasks complet? iammark Outlook and VBA 10 March 9th 06 10:01 PM
Not receiving e-mail Dove Outlook - Installation 1 January 14th 06 10:34 AM


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.