Email post processing
Hello. I am writing JRuby bindings for Mireka. I successfully implemented essential functionality. But now I need to add some email post-processing and I don't know how to approach it right way.
Post-processing Functionaluty
Right after email is delivered to maildrop directory the post-processing hook should receive email data and apply specified methods to it.
Issue
First thing I was looking into is Mireka's filters. Last filter in the chain is DestinationProcessorFilter, but it doesn't seem to work with mail drops directly. I need at least path to file to make it work. Maybe I was looking the wrong way.
I can work with filesystem directly, but hooking data from Mireka would be more effective. Is there a proper way to get email data right after it was saved?