08-22-2013 09:46 AM
02-28-2018 06:17 AM
This project parses inbound email - GitHub - malariagen/alfresco-discussions: Customizations to Alfresco Site Discussions so you should be able to get some clues from there.
You'll want to look at discussions-platform-jar - this uses a behaviour rather than a rule
Hope that helps.