I'm trying to generate an email notification when a question is answered. I've worked my way through all the listeners and notification code to see generally how other actions' email notifications are handled, which appears to be by retrieving batches of ActivityUpdates back from the activity engine, then checking whether they should be emailed or not, which appears to be a flag associated with the activity that is passed to the eae.
The problem is that the activity generated when the question is answered appears to never come back from the eae server in the batch.
I suppose an alternative would be to generate an email more "synchronously" without relying on the round trip to eae, but that sounds hacky and probably would be painful to determine the list of users to notify.
Has anyone else looked into this issue before and come back alive?