• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Change message class

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> Public Folders >> Change message class Page: [1]
Login
Message << Older Topic   Newer Topic >>
Change message class - 8.Jul.2005 4:17:00 AM   
vladano

 

Posts: 1
Joined: 8.Jul.2005
From: Novi Sad
Status: offline
I create Event Script on Exchange Server 2003 to change message class from IMP.Post to IMP.Post.MyForm. This is piece of code:

Public Sub Folder_OnMessageCreated
Dim CDOSession, CurItem
Set CDOSession = EventDetails.Session
Set CurItem = CDOSession.GetMessageEventDetails.MessageID,Null)
If CurItem.Type = "IPM.Note" Then
CurItem.Type = "IPM.Note.MyForm"
CurItem.Update
End If
End Sub

On Exchange server in Event Viewer Log I got next error:

A fatal error (0x86664004) occurred in an IExchangeEventSink while processing message [Subject = "mytest"].
07/06/05 12:41:32 Run time error at line 8. Source: Collaboration Data Objects Error: 3ed. Description: You do not have sufficient permission to perform this operation on this object. See the folder contact or your system administrator. [Microsoft Exchange Server Information Store - [E_ACCESSDENIED(80070005)]]

Problem is command 'CurItem.Update'.

Anyone know why it's not work ?

Thanks.
Post #: 1
RE: Change message class - 12.Jul.2005 2:22:00 AM   
Victor Ivanidze

 

Posts: 382
Joined: 27.Nov.2001
Status: offline
It seems your account permissions are insufficient. Please check it.

By the way, as you're running Exchange 2003, try to use event sink instead of old-Exchange 5.5-style event script.

Also, there exists a commercial product:
http://www.ivasoft.biz/cmclass.shtml

Regards,
Victor

(in reply to vladano)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> Public Folders >> Change message class Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter