

Message flags and importance are not transferred.īefore I even got to writing the code, I had to get my project to reference the Outlook 12 object model and the OneNote 12 API.Limited to IPM.Note items in Outlook, so custom forms, meetings, etc.Attachments, images, OLE objects support.Plain text, rich text or html mail formats will be supported (since the user can't control the email client at the kiosk in this scenario).After the page is created the mail item gets moved to deleted items in Outlook."Power users" can change the filter text via a reg key- hkcu/sw/ms/office/outlook/nnect/filter string.The body text of the mail will be made into a new page in the unfiled notes section.Send yourself an email with the filter text "onon" in the subject (not case sensitive).Here are my goals for this addin, driven almost entirely from the scenario I describe above:

The OneNote 2007 XML API is documented here. This addin uses both the Outlook 2007 Object Model to work with the Outlook item and the OneNote 2007 XML API to add the page to OneNote. If you just want to install and use the addin, the Setup zip file is all you need. I also included the setup project since it is needed to create the registry key when executed. It provides no UI for the user: "it just works." It also allows power users to set the filter used for incoming mail items to trigger the code. This addin adds the capability of sending yourself email with a certain keyword in the subject and having Outlook automatically create a new page in OneNote's Unfiled Notes section when that mail item arrives.

There is a step or two here which can be eliminated with this addin. They could rely on new functionality in Outlook 2007 which gives a ribbon button to send the contents of email to OneNote. Their only access may be to email, such as with a mobile phone or airport kiosk. They then experience the problem of being away from OneNote and having information they want to add to it. Once people start using OneNote, many of them tend to move all their data into it. This Addin is designed to solve a problem some users of OneNote face.
