PDA

View Full Version : Mail notifications through Qt on Linux



TheIndependentAquarius
22nd September 2016, 07:34
I want to write a program which would show a pop up if a new mail arrives through Gmail.

What library/api am I supposed to use get notifications from Gmail programmatically?

wysota
22nd September 2016, 16:36
Most likely Google exposes some REST API. If not, you'll need an IMAP/POP3 client library to connect to Gmail servers directly (provided that the mailbox you want to connect to has IMAP/POP3 activated in its settings).

Edit: https://developers.google.com/gmail/api/

anda_skoa
23rd September 2016, 14:32
libkgapi might help http://www.dvratil.cz/2012/05/libkgoogle-libkgapi/

Cheers,
_