IMAP voicemail stored in Gmail

I am working my way through the latest O’Reilly Asterisk book and see that v1.4 now supports voicemail stored via IMAP (unified messaging!). My thought is that it would be great if I could get my VM stored in my gmail account via IMAP.

I have tried to do this, but receive errors of all sorts. Before I go any further, I wanted to see if anyone else has tried this? Should this be possible?