Persist all recipients on Item forward event

  • Thread starter Thread starter paresh
  • Start date Start date
P

paresh

Hi,

Could any one please let me know if it is possible to persist all recipients
(To, and CC list) while I forward some item(might be mail item).

Thanks,
Paresh
 
What do you mean by persist them? Do you mean to keep them all as recipients
for the forward?

You would need to get the recipients of the original message and put them
into the forward item. Why I don't know, since all the original recipients
already received that message.
 
You would need to get the recipients of the original message and put them
into the forward item.

Exactly Ken, I want to do this. When we forward the mail by default all
recipient won't be added automatically. I have to add it one by one manually.
Basically I want to make Reply All works like Forward which keep all
attachments and images of original message.

Thanks,
Paresh
 
If the item is being forwarded using code just pick up the Recipients
collection of the original email and add them one by one to the newly
forwarded message.

If you are handling the Forward event on an item you would do the same
thing.

If you are just getting the item using NewInspector() then you would have to
find the original once you determined the item was a forward (about the only
way to do that is to use the Subject line and look for a forward prefix).
You do that by taking the ConversationTopic of the new forward item and
finding other items with that ConversationTopic value. Each new item in a
conversation has a ConversationIndex value one date/time struct longer than
the preceding item. That's how you find the item immediately preceding the
item of interest in the conversation.

After you get the original item you pull the recipients and add them one at
a time to the forward item.
 
I told you to use the ConversationTopic property to locate all related items
and to check ConversationIndex to get the item order, which also usually
follows a date/time progression. You can google to see if you can find any
samples for that.

Dmitry explained about how to use those properties from Redemption, or you
can do what I said originally, get the Recipients and iterate them.
 
Back
Top