I am trying to design a simple email management system for my application.
I get a problem managing the “Reply to” feature .
Declaring a mail message object and its to, cc, bcc list is simple , but when replying to the message , I need away to handle the relationship with all the messages which were replied on the original message .
id there any free system or datamodel doing this .
Thanks in advance
There is the Composite Pattern that perhaps you can use. Every message has a collection of child messages (replies).
Check examples here and here