Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 03 SEP 2011 06:25:16AM Anders Lindholt wrote:

Hi,

How can I move an email item in my inbox to the delete email folder ?

..

..

$INSERT MAPI_EQUATES

Declare Function MAPISaveMail

Declare Subroutine Msg, Get_Status

flags = MAPI_LOGON_UI$

id = ""

message = ""

message<POS_SUBJECT$> = "MAPI Demo" :

message<POS_FROM$ > = "Donald Duck"

message<POS_TO$ > = "Alice Smith"

message<POS_TEXT$ > = "This is a test of the emergency…"

message<POS_TYPE$ > = "IPM.Deletebox"

message<POS_FLAGS$ > = MAPI_RECEIPT_REQUESTED$

session = Get_Property('CHILD_DOC.SESSION','TEXT')

ACTIVECHILD = 'CHILD_DOC'

if MAPISaveMail(session, ACTIVECHILD, id, flags, message) then

Msg(@window, "Message successfully saved")

end else

Get_Status(display)
Msg(@window, display)

end

not working just leave an new email at my inbox.

/anders

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/fd45e6c70004b2b40b2b1cc00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1