Test 1: Owner of Emails
After configuring your email listener, setup an email address like "firstname.lastname@example.org", assign it to one of your users with the purpose "Owner of Received Emails" and another user as an "Other Email Address". Set up a contact with your email address. Now send an email to email@example.com from your email address.
The email should be created in the system and associated with your contact as a Pending Activity. The user who is the "Owner of Received Emails" should be the Owner of the email (you can see this from the Pending Emails Screen or from the Activity Links screenlet on the View Email Screen.) The other users who are associated with firstname.lastname@example.org should also be associated with this email but not as the owner.
Test 2: Order ID Processed Correctly
Create a sales order. Let's say the order id is WS10000. Send an email to the email address you just set up with Order: WS10000
The email should be tagged with order WS10000 and should show up as one of the "Related Emails" in the order view page.
Test 3: Case ID Processed Correctly
Now send an email with Case: DemoCase1
This email should be associated with DemoCase1.
Test 4: Email order can be reassigned
View the email. Change the order Id. Click [Update].
Your email is now associated with a different order and can be seen on its "Related Emails" section.
Test 5: Email case can be reassigned
View the email again. Change the case id. Click [Update].
Your email is now associated with a different case.
Test 6: Reply email associates orders/case successfully
Send a reply email to one of the above.
The reply email should be associated with the case/order of the original email. If it is an order-related email, the reply email should also show up on the list in the "Related Emails" section of the order view.