Integrating Asterisk with atMail(Email server in Perl)


I am working on the design of a unified messaging solution where i have atMail as my email server handling my clients coming through pc/web, while for my voice handling I am considering Asterisk based IVR.
I need to workout a working strategy to integrate atMail with Asterisk(IVR).
Any ideas on this from you gurus?