NewMail Event

Hi,

Im looking to read information from emails as they come into the inbox using
the itemadd event, however if the user has to click yes on the security
prompt emails are missed.

To try to combat this, i want to store the entry ID, and then when the send
and receive is finished i can then use that entryid (unique) to access the
email, where it doesnt matter if the prompt is not clicked immediately.

However what im struggling to do is capture when the send and receive event
has finished.  The newmail event seemed perfect as it is supposed to be
called only once, however testing shows that the newmail event is in fact
called every time a new email is received.

Any ideas anyone ?

Thanks,

Leon Pinkney



0
8/11/2004 3:29:49 PM
outlook 87535 articles. 10 followers. Follow

3 Replies
312 Views

Similar Articles

[PageSpeed] 13

There is no event for ending a send/receive unless it's initiated by code.
Then you can use the SyncEnd event of the SyncObject. That doesn't work if
the send/receive is initiated manually or automatically by the user.

NewMail fires only at intervals, not for every new mail that comes in.

There should be no reason for the security prompts to appear unless your
code is accessing secure properties or methods. In that case you can use the
Exchange security form to permit those accesses if you are using Exchange or
you might want to code those accesses using Redemption
(www.dimastr.com/redemption) to avoid them.

-- 
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"demon" <leon.pinkney@workgroup-nospam-software.co.uk> wrote in message
news:cfdduh$7iu$2$8302bc10@news.demon.co.uk...
> Hi,
>
> Im looking to read information from emails as they come into the inbox
using
> the itemadd event, however if the user has to click yes on the security
> prompt emails are missed.
>
> To try to combat this, i want to store the entry ID, and then when the
send
> and receive is finished i can then use that entryid (unique) to access the
> email, where it doesnt matter if the prompt is not clicked immediately.
>
> However what im struggling to do is capture when the send and receive
event
> has finished.  The newmail event seemed perfect as it is supposed to be
> called only once, however testing shows that the newmail event is in fact
> called every time a new email is received.
>
> Any ideas anyone ?
>
> Thanks,
>
> Leon Pinkney
>
>
>


0
kenslovak (742)
8/12/2004 1:26:23 PM
Thanks for the advice.

I dont think I really explained things very well - and the end result has in 
fact now changed also!

To simplify things, what im looking to do is capture the entryID of each 
email that comes in, and once all emails are in, fire another function which 
will evaluate the emails just received, and creates an XML file of details 
and attachments binary data so that it can be uploaded.  At the moment the 
creation of the XML file is a problem due to time, on large files (250KB+) 
the binary data isnt being fully created whilst being used on the AddItem 
event.

Make sense ?

Thanks for your help,

Leon Pinkney
"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message 
news:OTDFKBHgEHA.2984@tk2msftngp13.phx.gbl...
> There is no event for ending a send/receive unless it's initiated by code.
> Then you can use the SyncEnd event of the SyncObject. That doesn't work if
> the send/receive is initiated manually or automatically by the user.
>
> NewMail fires only at intervals, not for every new mail that comes in.
>
> There should be no reason for the security prompts to appear unless your
> code is accessing secure properties or methods. In that case you can use 
> the
> Exchange security form to permit those accesses if you are using Exchange 
> or
> you might want to code those accesses using Redemption
> (www.dimastr.com/redemption) to avoid them.
>
> -- 
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "demon" <leon.pinkney@workgroup-nospam-software.co.uk> wrote in message
> news:cfdduh$7iu$2$8302bc10@news.demon.co.uk...
>> Hi,
>>
>> Im looking to read information from emails as they come into the inbox
> using
>> the itemadd event, however if the user has to click yes on the security
>> prompt emails are missed.
>>
>> To try to combat this, i want to store the entry ID, and then when the
> send
>> and receive is finished i can then use that entryid (unique) to access 
>> the
>> email, where it doesnt matter if the prompt is not clicked immediately.
>>
>> However what im struggling to do is capture when the send and receive
> event
>> has finished.  The newmail event seemed perfect as it is supposed to be
>> called only once, however testing shows that the newmail event is in fact
>> called every time a new email is received.
>>
>> Any ideas anyone ?
>>
>> Thanks,
>>
>> Leon Pinkney
>>
>>
>>
>
> 


0
8/16/2004 11:21:55 AM
Sorry for the delay in answering, I lost power in the recent hurricane.

I'd use the ItemAdd method for the Items collection of the Inbox. That fires
for each item that comes in and has an Item argument you can use to get the
EntryID of each item. Add that to a collection and when you handle the
collection at a later time remove the now used reference from the collection
so you don't handle it more than once.

One thing to be aware of is that EntryID can change if the item is moved to
another folder or deleted. So any rules that might move an item would screw
up this system.

-- 
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"demon" <leon.pinkney@workgroupsoftwarenospam.co.uk> wrote in message
news:cfq59p$jli$1$8302bc10@news.demon.co.uk...
> Thanks for the advice.
>
> I dont think I really explained things very well - and the end result has
in
> fact now changed also!
>
> To simplify things, what im looking to do is capture the entryID of each
> email that comes in, and once all emails are in, fire another function
which
> will evaluate the emails just received, and creates an XML file of details
> and attachments binary data so that it can be uploaded.  At the moment the
> creation of the XML file is a problem due to time, on large files (250KB+)
> the binary data isnt being fully created whilst being used on the AddItem
> event.
>
> Make sense ?
>
> Thanks for your help,
>
> Leon Pinkney


0
kenslovak (742)
8/18/2004 3:56:47 PM
Reply:

Similar Artilces:

event viewer logs Event ID 1016
We've been getting the following in our Exchange server's event viewer. Not sure why since no one the users have access or rights to others mailboxes. We're on Exchange 5.5 SP4 with all the latest patches, NT 4 SP6a. Thanks Event Type: Success Audit Event Source: MSExchangeIS Private Event Category: Logons Event ID: 1016 Date: 1/11/2005 Time: 11:16:33 AM User: N/A Computer: EXCHANGE Description: NT User EXCHANGE \Pete logged on to John mailbox, and is not the primary Windows NT account on this mailbox. For more information, see Help and Support Center a...

Recurring Events Missing
Outlook 2007 (12.06514.5), Win Xp Some annual events appear to have disappeared from my calendar, however they remain visible when viewing a list of events. They also appear on my WinMobile cellphone which syncs with ActiveSync. I've done the following, to no avail: 1. checked that autoarchive is not running. 2. edited and saved the annual event. 3. re-synchronised. 4. reset the calendar view various ways. 5. and obviously checked that the annual event is correctly set up. explain #4. How exactly did you reset it? -- Regards Judy Gleeson MVP Outlook www....

Exchange 2003
Hello I have a newly setup production exchange server (sp2). It is only serving a small subset of my organisation, about 15 users, using mydomain1.com. My active directory contains around 100 user accounts that do not have exchange mailboxes and they use our old pop3 based system and have a seperate email domain name, mydomain2.com. It would appear that whenever someone with an exchange mailbox (mydomain1.com) sends mail to people with an email address listed elsewhere in the active directory (mydomain2.com) it gets stuck in the local exchnage delivery queue rather than forwarding i...

Help with Event formatting?
Hello, I have a form with a drop down combolist. When Verification is chosen from it, I want to do an Event, AfterUpdate. I want it to first see that "Verification" has been chosen, then for it to check the current SSN against the SSNs in a 2nd AddressTable. If there is no SSN match in the 2nd table I'll need a Subform to pop up and take the address information, and then a Generate Letter/Report button can be used, with all the extra info being saved to the 2nd table. If there is a SSN match, that means the address is already in the 2nd table, and a Report/Letter is...

Schedule and Event
Can anyone help me? We will be working on Migrating PCs to Windows XP and need to have a schedule that someone can go to and enter their name and pick a date to have their PC migrated. We have a set number of PC that can be done on each of those days. Ex. 9 PCs can be migrated on Wednesday and only 5 on Thursday. They will be done on a first come first serve basis. I was hoping that I could use Outlook to make this easy. We send them an e-mail and they put their date on the schedule. When they enter their date no one else can use their slot and when it reaches 9 then that day can hold no...

Event ID: 1147 (HELP )
PLEASE HELP... I KEEPING SEEING THIS IN THE EVENT VIEWER. I cannot find any info in Technet or on Microsoft support website. Error--- While disabling rule on public folder with rule ID 48. The folder ID of the public folder is in the data section of the event. Dennis Check your public folders for rules such as forwarding or copying to other mailboxes or folders. If one of these forward destinations has been removed or cannot accept new messages due to a size limitation, you would get this error. -- hth, SusanV "Dennis C" <dcomar@verizon.net> wrote in message news:...

TaskScheduler Event ID 101/311.
Hi Everyone, I get the following errors everyday from my SBS 2008 (64bit) box: TaskScheduler Event ID 101 - Event Details: Task Scheduler failed to start "\Microsoft\Windows\CertificateServicesClient\UserTask" task for user "DOMAIN\Userxxxx". Additional Data: Error Value: 2147942402. TaskScheduler Event ID 311 - Event Details: Task Scheduler failed to start Task Engine "" process due to an error occurring in "LUAIsElevatedToken" . Command="taskeng.exe" . Additional Data: Error Value: 2147942402. Any ideas? Thanks, ...

On Current Event
Hi, Which takes precedence on a form? The VBA OnCurrent event or a macro attached to the OnCurrent Event. Can two separate events be run in this manner? How would you assign both? AFAIK, the properties window only allows you to specify that one of the two will fire when the event is triggered. I suppose you could have a macro call the Event code or have the event code call a macro (but can't think of a reason why you'd want to). If you went that route the "precedence" would be entirely up to you. HTH, "Karen" <Karen@discussions.microsoft.com> w...

Replacement of Event Scripts going from 5.5 to 2003
What is the best replacement for 5.5 Event Scripts when moving to Exchange 2k3 ...

How to fire NewMail&NewMailEx Event?
we can import or create a mail item as sent message using a way like http://www.dimastr.com/redemption/faq.htm#8 now, my question is how to notify Outlook that a new message was received, and let outlook and its plugins to do somthing like spam/virus check? any help is welcome. Best Regards Baryon ...

On Load Event
Hi I have an entity called device related to the customer and the service activity. However on the service activity i want to add an onload event which puts the device of the customer in a field on the form, based on the customer value that is selected. Can anyone please advice me how to go about this. I am really new to Java so not quiet sure as to how to go about this. Kind Regards Ridhima Ridhima, You will need to write a callout in VB.NET or C# to get the device details on selection of a Customer. You can refer to the SDK Callout sample for help on writing one. HTH, Niths &quo...

event id 4118
Windows 2003 R2 Standard SP2 Member server This server was a DC and was demoted to a Member server Now I get Event ID 4118 A Content Scan Could not be completed on Directory I get this every time we restart the server. This server was running SQL 2000 and Sharepoint 3.0 Both have been removed. I have manually tried to do a full rescan but I get the same error Any way to reset this and do a clean scan I believe it might be looking for other information from when it was a DC server Any ideas or thoughts Thanks Tom Thomas R Grassi Jr wrote: > Windows 2...

NewMail Event
Hi, Im looking to read information from emails as they come into the inbox using the itemadd event, however if the user has to click yes on the security prompt emails are missed. To try to combat this, i want to store the entry ID, and then when the send and receive is finished i can then use that entryid (unique) to access the email, where it doesnt matter if the prompt is not clicked immediately. However what im struggling to do is capture when the send and receive event has finished. The newmail event seemed perfect as it is supposed to be called only once, however testing shows that th...

2003
Encountered the subjected event in a newly upgraded Exchange 2003. The resolution based on KB Article - 271410 suggested: >>In Exchange System Manager, locate the administrative group, and then reset the service >>account password to encrypt it for the Exchange 2000 server. Can someone give more details on how to check the service account password encription in Exchange System Manager ? ---------------------------------------------------------------------------- - - Microsoft Knowledge Base Article - 271410 SYMPTOMS The following error message may be logged in the Application eve...

Anniversary/Event vs. Appointment
I don't see how to create anniversaries and holidays and such, as opposed to, appointments and making them last all day. Doing the latter displays as a two day appointment on some calendars. ...

Information Store doesn't start with events 1121, 5000 and 9098
hi, I accidently removed the inheritance permissions from one of the accounts in the Exchange organization group and now the IS won't start. There are ways to repair using ADSIEDIT. When I browse to Configuration - Services - microsoft exchange - First Organization, there is nothing under it. No objects at all. Any ideas? Thanks Follow this article to get the permissions back in. XADM: How to Recover When Only Full Exchange Administrator Account Is Deleted http://support.microsoft.com/?id=296487 James Chong (MVP) On Mar 16, 7:09 pm, Roy <R...@discussions.microsoft.com> wrot...

Event
Hi all, Exist an event that indicate the my view in my program is completly create ? Thanks stefano If you are asking to know when a view is fully created etc., you should look at OnInitialUpdate of your view. Thats the place where you can add controls etc to it. For drawing on the view, you will typically do it in OnDraw/OnPaint. --- Ajay ...

No data event function
Hello. I have many reports and am trying to use a function to display a message when there is no data in the report: "Report has no data." The function seems to work in that if there is data, a report runs with the data. However, if there is no data, the report does not run but "Report has no data" does not appear to the user. I'd appreciate suggestions. Public gfReportHasNoData As Boolean Public Function PrintPreviewReport(pstrReport As String, pfPreview As Boolean, pstrWhere As String) As String 'Comments: Print or preview a report and handle errors 'ps...

Event 9318 and Error 1722
Background Server1 = Exchange 55 SP4 - First Exchange Server in Site Server2 = Exchange 55 SP4 both running on NT4 sp6a. I receive the following error: An RPC communications error occurred. Unable to bind over RPC. Locality Table (LTAB) index: 36, NT/MTA error code: 1722. Comms error 1722, Bind error 0, Remote Server Name Server1 [MAIN BASE 1 500 %10] (14) I have read that is a connectivity error but Server1 has crashed due to a hardware failure. Before the crash I used the move mailbox method to move all mails to Server2. Server1 is now offline but Server2 is still trying to connect. I...

Purging Events
I there a way to purge events in Event Viewer? James Yes Right click on the event and select "Clear log..." Russ -- Russell Grover - SBITS.Biz [SBS-MVP] Microsoft Gold Certified Partner Microsoft Certified Small Business Specialist 24hr SBS Remote Support - www.SBITS.Biz $30 Second Opinion - www.PersonalITConsultant.com Free Trial Microsoft Online Services - www.Microsoft-Online-Services.com "JamesJ" <jjy@darwin_roadrunner.com> wrote in message news:O7gXwpppKHA.5696@TK2MSFTNGP04.phx.gbl... > I there a way to purge events in Event Viewer? ...

Timer form event
I would like to trigger this event once a day at the same time. Any suggestions. Thanks, Stanley ...

Event 1022 & 9548 in the application log/event viewer
I am getting these to errors in the event viewer, I've read and found that normally this points to a specific user and the fix is to grant associated external account rights to the 'self' user in advanced properties but if look at my errors they aren't pointint to a specific user, they are pointing to the system mailbox see below: Event ID 1022: Logon Failure on database "First Storage Group\Mailbox Store (EXCHMN)" - Windows 2000 account NT AUTHORITY\SYSTEM; mailbox /O=PMC/OU=PMC/cn=Recipients/cn=SystemMailbox{1BB37B17-F026-40C5-9F92-908BEBF38795}. Error: -2147...

newmail alert duration
The max duration for this notice box is 30 seconds. Is there a way to extend past 30sec, say indefinate? No - but you can create a rule to show a desktop alert that is persistent and will not go away (read, annoying). --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert latest virus name here) virus, all mail sent to my personal account will be deleted without reading. After searching google.groups.com and finding no answer, stevekl asked: | The max duration for this notice box is 30 seconds. Is | there a way to extend past 3...

Events, dear boy, events
Hi I seem to be having problems with worksheet-level events. I'm pasting: Private Sub Worksheet_Deactivate() MsgBox "Hi!" End Sub Into the sheet-level code sheet. The code isn't triggering when I leav the sheet. Any setting I might be missing? Cheers, Gromi -- Gromi ----------------------------------------------------------------------- Gromit's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=92 View this thread: http://www.excelforum.com/showthread.php?threadid=27721 Did you put it in the correct sheet module? Application.EnableEvents ...

cancel event if data change
Hi there, I have a main form with a sub-form and code at the before update event on the date field under the main form, I would like to bypass/cancel the before update event if the user change the date after entry. I mean that when the user enter the date (new record), the before update event wil be executed. If the user change the date (immediately or after record saved), I would lite to bypass/cancel the before update event. Hope this clear for you. Appreciate for your expert comments. Thanks in advance! On Nov 29, 8:06 am, Andy <A...@discussions.microsoft.com> wrote: > Hi th...