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 » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Is there a full list of messageclasses for Outlook items?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 4th 06, 02:32 AM posted to microsoft.public.outlook
chris
external usenet poster
 
Posts: 9
Default Is there a full list of messageclasses for Outlook items?

I am writing a peice of code in c# which loads a msg file and depending
on its messageclass I load it into the appropriate Outlook item and
perform some operations (like SaveAs) on it.

Is there a full list of message classes that I can refer to?

This is what I have at the moment and I would like to get a full List
of messageclasses for completeness:


switch (messageClass)
{
case "IPM.Appointment": //AppointmentItem
{
AppointmentItem myAppointment = (AppointmentItem)oMailItem;
myAppointment.SaveAs(strTxtFilename, MailFileType);
myAppointment = null;
break;
}
case "IPM.Contact": //ContactItem
{
ContactItem myContactItem = (ContactItem)oMailItem;
myContactItem.SaveAs(strTxtFilename, MailFileType);
myContactItem = null;
break;
}
case "IPM.Contact.DSIContact": //ContactItem
{
ContactItem myContactItem = (ContactItem)oMailItem;
myContactItem.SaveAs(strTxtFilename, MailFileType);
myContactItem = null;
break;
}
case "IPM.Activity": //JournalItem
{
JournalItem myJournalItem = (JournalItem)oMailItem;
myJournalItem.SaveAs(strTxtFilename, MailFileType);
myJournalItem = null;
break;
}
case "IPM.Outlook.Recall": //MailItem
{
MailItem myMailItem = (MailItem)oMailItem;
myMailItem.SaveAs(strTxtFilename, MailFileType);
myMailItem = null;
break;
}
case "IPM.Note": //MailItem
{
MailItem myMailItem = (MailItem)oMailItem;
myMailItem.SaveAs(strTxtFilename, MailFileType);
myMailItem = null;
break;
}
case "IPM.Schedule.Meeting.Canceled": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Request": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Resp.Pos": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Resp.Neg": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.StickyNote": //NoteItem
{
NoteItem myNoteItem = (NoteItem)oMailItem;
myNoteItem.SaveAs(strTxtFilename, MailFileType);
myNoteItem = null;
break;
}
case "IPM.Document.[ClassID]": //OfficeDocumentItem
{
DocumentItem myDocumentItem = (DocumentItem)oMailItem;
myDocumentItem.SaveAs(strTxtFilename, MailFileType);
myDocumentItem = null;
break;
}
case "IPM.Post": //PostItem
{
PostItem myPostItem = (PostItem)oMailItem;
myPostItem.SaveAs(strTxtFilename, MailFileType);
myPostItem = null;
break;
}
case "IPM.Remote": //RemoteItem
{
RemoteItem myRemoteItem = (RemoteItem)oMailItem;
myRemoteItem.SaveAs(strTxtFilename, MailFileType);
myRemoteItem = null;
break;
}
case "IPM.Report": //ReportItem
{
ReportItem myReportItem = (ReportItem)oMailItem;
myReportItem.SaveAs(strTxtFilename, MailFileType);
myReportItem = null;
break;
}
case "REPORT.IPM.Note.IPNRN": //ReportItem
{
ReportItem myReportItem = (ReportItem)oMailItem;
myReportItem.SaveAs(strTxtFilename, MailFileType);
myReportItem = null;
break;
}
case "IPM.Task": //TaskItem
{
TaskItem myTaskItem = (TaskItem)oMailItem;
myTaskItem.SaveAs(strTxtFilename, MailFileType);
myTaskItem = null;
break;
}
case "IPM.TaskRequest": //TaskRequestItem
{
TaskRequestItem myTaskRequestItem = (TaskRequestItem)oMailItem;
myTaskRequestItem.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItem = null;
break;
}
case "IPM.TaskRequest.Accept": //TaskRequestItem
{
TaskRequestItem myTaskRequestItemAcc = (TaskRequestItem)oMailItem;
myTaskRequestItemAcc.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItemAcc = null;
break;
}
case "IPM.TaskRequest.Decline": //TaskRequestItem
{
TaskRequestItem myTaskRequestItemDec = (TaskRequestItem)oMailItem;
myTaskRequestItemDec.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItemDec = null;
break;
}
default:
{
break;
}
}

Thanks in advance,

Chris

  #2  
Old July 4th 06, 02:50 AM posted to microsoft.public.outlook
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Is there a full list of messageclasses for Outlook items?

Use the Class property, which has an enumeration (look in the object browser), not MessageClass, which is a text property and can have a nearly infinite list of possible values.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/comm....program_v ba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"chris" wrote in message ups.com...
I am writing a peice of code in c# which loads a msg file and depending
on its messageclass I load it into the appropriate Outlook item and
perform some operations (like SaveAs) on it.

Is there a full list of message classes that I can refer to?

This is what I have at the moment and I would like to get a full List
of messageclasses for completeness:


switch (messageClass)
{
case "IPM.Appointment": //AppointmentItem
{
AppointmentItem myAppointment = (AppointmentItem)oMailItem;
myAppointment.SaveAs(strTxtFilename, MailFileType);
myAppointment = null;
break;
}
case "IPM.Contact": //ContactItem
{
ContactItem myContactItem = (ContactItem)oMailItem;
myContactItem.SaveAs(strTxtFilename, MailFileType);
myContactItem = null;
break;
}
case "IPM.Contact.DSIContact": //ContactItem
{
ContactItem myContactItem = (ContactItem)oMailItem;
myContactItem.SaveAs(strTxtFilename, MailFileType);
myContactItem = null;
break;
}
case "IPM.Activity": //JournalItem
{
JournalItem myJournalItem = (JournalItem)oMailItem;
myJournalItem.SaveAs(strTxtFilename, MailFileType);
myJournalItem = null;
break;
}
case "IPM.Outlook.Recall": //MailItem
{
MailItem myMailItem = (MailItem)oMailItem;
myMailItem.SaveAs(strTxtFilename, MailFileType);
myMailItem = null;
break;
}
case "IPM.Note": //MailItem
{
MailItem myMailItem = (MailItem)oMailItem;
myMailItem.SaveAs(strTxtFilename, MailFileType);
myMailItem = null;
break;
}
case "IPM.Schedule.Meeting.Canceled": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Request": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Resp.Pos": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.Schedule.Meeting.Resp.Neg": //MeetingRequestItem
{
MeetingItem myMeetingRequestItem = (MeetingItem)oMailItem;
myMeetingRequestItem.SaveAs(strTxtFilename, MailFileType);
myMeetingRequestItem = null;
break;
}
case "IPM.StickyNote": //NoteItem
{
NoteItem myNoteItem = (NoteItem)oMailItem;
myNoteItem.SaveAs(strTxtFilename, MailFileType);
myNoteItem = null;
break;
}
case "IPM.Document.[ClassID]": //OfficeDocumentItem
{
DocumentItem myDocumentItem = (DocumentItem)oMailItem;
myDocumentItem.SaveAs(strTxtFilename, MailFileType);
myDocumentItem = null;
break;
}
case "IPM.Post": //PostItem
{
PostItem myPostItem = (PostItem)oMailItem;
myPostItem.SaveAs(strTxtFilename, MailFileType);
myPostItem = null;
break;
}
case "IPM.Remote": //RemoteItem
{
RemoteItem myRemoteItem = (RemoteItem)oMailItem;
myRemoteItem.SaveAs(strTxtFilename, MailFileType);
myRemoteItem = null;
break;
}
case "IPM.Report": //ReportItem
{
ReportItem myReportItem = (ReportItem)oMailItem;
myReportItem.SaveAs(strTxtFilename, MailFileType);
myReportItem = null;
break;
}
case "REPORT.IPM.Note.IPNRN": //ReportItem
{
ReportItem myReportItem = (ReportItem)oMailItem;
myReportItem.SaveAs(strTxtFilename, MailFileType);
myReportItem = null;
break;
}
case "IPM.Task": //TaskItem
{
TaskItem myTaskItem = (TaskItem)oMailItem;
myTaskItem.SaveAs(strTxtFilename, MailFileType);
myTaskItem = null;
break;
}
case "IPM.TaskRequest": //TaskRequestItem
{
TaskRequestItem myTaskRequestItem = (TaskRequestItem)oMailItem;
myTaskRequestItem.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItem = null;
break;
}
case "IPM.TaskRequest.Accept": //TaskRequestItem
{
TaskRequestItem myTaskRequestItemAcc = (TaskRequestItem)oMailItem;
myTaskRequestItemAcc.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItemAcc = null;
break;
}
case "IPM.TaskRequest.Decline": //TaskRequestItem
{
TaskRequestItem myTaskRequestItemDec = (TaskRequestItem)oMailItem;
myTaskRequestItemDec.SaveAs(strTxtFilename, MailFileType);
myTaskRequestItemDec = null;
break;
}
default:
{
break;
}
}

Thanks in advance,

Chris

 




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
Outlook should have a Profession Field under Full Name Jason Dove Outlook - Using Contacts 0 June 8th 06 03:59 PM
My contact list is full. Can it be expanded? foghorn blues Outlook - General Queries 2 March 21st 06 08:38 PM
How change Outlook calendar default view from list items to calend Thaelia Outlook - Calandaring 1 March 3rd 06 07:34 PM
Junk mail should autodelete items on the block senders list daronu Outlook - Installation 0 January 25th 06 05:59 PM
How to add to the default title list in the full name input box? Snowman Outlook - Using Contacts 1 January 20th 06 06:40 PM


All times are GMT +1. The time now is 01:32 PM.


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.