Fix deprecated hook

imap_connect is deprecated and replaced with storage_connect.

This was causing warnings on 0.9.0