PC Review


Reply
Thread Tools Rate Thread

mail receiving event

 
 
mad
Guest
Posts: n/a
 
      4th Aug 2008
Hello!

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

Thanks.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      4th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:17d8bc20-7beb-4c4e-88b2-(E-Mail Removed)...
> Hello!
>
> How can my add-in know that Outlook 2007 is starting and finishing
> mail receiving?
>
> Thanks.


 
Reply With Quote
 
mad
Guest
Posts: n/a
 
      5th Aug 2008
Ok, thanks!

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

On 4 ΑΧΗ, 16:01, "Ken Slovak - [MVP - Outlook]" <kenslo...@mvps.org>
wrote:
> You can't on an automatic send/receive, there are no events for that. Fora
> 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" <andreyk....@gmail.com> wrote in message
>
> news:17d8bc20-7beb-4c4e-88b2-(E-Mail Removed)...
>
> > Hello!

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

>
> > Thanks.


 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      5th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:afd7c17a-5edd-4c63-ad69-(E-Mail Removed)...
Ok, thanks!

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

 
Reply With Quote
 
mad
Guest
Posts: n/a
 
      6th Aug 2008
But OnSyncStart and OnSyncEnd events fires fine. Outlook 2007.

On Aug 5, 4:11*pm, "Ken Slovak - [MVP - Outlook]" <kenslo...@mvps.org>
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" <andreyk....@gmail.com> wrote in message
>
> news:afd7c17a-5edd-4c63-ad69-(E-Mail Removed)...
> Ok, thanks!
>
> And how about synchronization or transport state. Can I get their
> state?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not receiving mail from one party but receiving mail from me =?Utf-8?B?cml2ZXJzaWRlc2NvdA==?= Microsoft Outlook Discussion 2 4th Jun 2007 05:41 PM
Windows Mail - Multiple accounts - receiving mail & POP3 problem =?Utf-8?B?SmFkZWNvdWdhcg==?= Windows Vista Mail 7 12th Apr 2007 04:29 PM
E-mail receiving junk mail (McAfee anit virus) =?Utf-8?B?Q2hhbnRlbA==?= Microsoft Outlook Discussion 1 30th Jul 2006 04:13 AM
Outlook receiving e-mail from ACT 2005 in outbox as inbox mail =?Utf-8?B?U2N1cmRvZw==?= Microsoft Outlook Discussion 13 14th Jun 2006 08:16 PM
Can I stop other event handlers from receiving an event? =?Utf-8?B?TXJOb2JvZHk=?= Microsoft C# .NET 3 13th Nov 2004 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:55 PM.