Moving messages between folders/accounts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, due to policy reasons I am trying to find out if it is possible to block
users moving mail between accounts. My users will have an IMAP and Exchange
account as part of their profile. I want to stop these people dragging an
item from their IMAP account to their Exchange account. I know that even if I
stop them from dragging the item that there will still be ways to get the
message into Exchange. But for now I would like to find out how feasible it
is to stop users dragging a piece of mail from an IMAP account to an Exchange
account.
I was initially thinking about onSave but then realized that the message may
already be in Exchange when this fires. Is there anyother way to watch for
and block a message being moved between folders? Any thought, suggestions are
welcomed. Fergal
 
This is a tricky one. For starters, I'm not sure if there is any available
API property that we can look at to determine if a copied item is coming from
a mail store that stores e-mails received via IMAP.

If we could, then your best bet is to write an Exchange Event Sink using the
OnSyncSave event that's registered to fire recursively on a given Exchange
mailbox. Every item that is being saved can be inspected for certain
information that could cancel the action if it meets the criteria specified.
One thing that you can also determine is if the item is being moved or
copied, so that might help.
 
As Eric said, you need to write a store event sink to implement this.
E-mail me directly to victori(at)ivasoft.biz if you are interested in custom
development.

--
Regards,

Victor Ivanidze,
software developer
www.ivasoft.biz
 
Back
Top