I noticed today, while trying to develop an application for Ubuntu, that Online Accounts does not provide access to Gmail (I mean access to messages, like IMAP and SMTP), even though it clearly says in the description of the Gmail provider that it does.
Bug reported, but does anyone know of some way I can do that myself? A way to extend the Google provider to also allow access to Gmail?
If there's no way to extend it like that, can someone point me to clear directions on how to add my own service provider for that, because the official documentation looks different from the real thing (no such thing as .service-type files, for example).
Thanks.
Online accounts simply provides account details for various accounts. You have to actually implement your own IMAP pull and SMTP send or use a library. Specifying the application you are trying to develop may help here.
UPDATE: APIs
Python API: http://developer.ubuntu.com/api/ubuntu-12.10/python/Accounts-1.0.html
C API: http://developer.ubuntu.com/api/ubuntu-12.10/c/accounts/
Online Accounts Source Code: https://code.launchpad.net/libaccounts-glib