Does Google Apps have something like a trigger on mail send/receive for Gmail like in spreadsheets? Something like a pre-send filter? I suppose nothing like this exists, right? What I'm interested in doing is to parse emails exchanged between members of an organization. Google has an Email Audit API (https://developers.google.com/admin-sdk/email-audit/) but it needs the 3rd-party app to opt-in per sender/user.
The only way to do this according to me is to make every user authorize the app and then make the app poll or push (IMAP-IDLE) to parse all the emails in each user's inbox.
Let me put it this way, is it possible (in Google Apps Mail) to create a mailing list like system without a common email address for the whole group? For example, can an organization post every email conversation between it's members to a common bulletin board?
To be more specific, the app will parse all the emails, look for some signals using some NLP and then take some action if necessary.