Let's have a team with members. Their email addresses are:
The team has a main contact address: contact@team.com and people are contacting the team on this contact address.
The app is running as a background task on a server. It has imap credentials to the contact@team.com email address and it's checking everyminute if an email is received.
- An email is received from icanhazquestions@external.com
- mailhub reads the mail
- it adds a custom header, let's say "X-Mailhub-Orig-Sender" with value icanhazquestions@external.com
- it changes the Reply-to to contact@team.com
- it resends the mail to every members of the team.
So everymember of the team is notified that icanhazquestions@external.com has sent an email to contact@team.com
Member 1 wants to reply to the email sent by icanhazquestions@external.com.
- member1@team.com replies to the email he's just received.
- the email is sent to contact@team.com
- mailhub reads the mail
- it sees it comes from a member of the team so it edits the mail
- it sets Sender to contact@team.com
- it takes recipient email address (icanhazquestions@external.com) from X-Mailhub-Orig-Sender and uses it.
- it sends the mail.
- it changes Sender to member1@team and Recipients to member2@team.com and member3@team.com and sends them the mail too.
So icanhazquestions@external.com see an answer from contact@team.com and every other members of the team know member1 has given an answer.