Pregunta

I want to do the following (pseudo-code) with outlook API or outlook redemption

var sourceMessage = Folder.Item[count];
//Check if source is encryted
if(sourceMessage is EncryptedMessageType)
{
  //Created a new message on target destination, and copy encrypted bytes
  var targetItem = TargetFolder.Items.Add(EncrytedMessageType)
  targetItem.Body = sourceMessage.Body;
  targetItem.EncryptionType = sourceMessage.EncryptionType;
  targetItem.Save();
}

Is this possible?

I looked up the RDOEncryptedMessage object but all the proprieties looks read only.

¿Fue útil?

Solución

Why not copy the source message (sourceMessage)?

sourceMessage .CopyTo(TargetFolder) should do the job.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top