Age | Commit message (Collapse) | Author | Files | Lines |
|
Google XMPP server has an (extension) setting that can be used to
enable mail notifications, see
https://code.google.com/apis/talk/jep_extensions/usersettings.html
https://bugs.freedesktop.org/show_bug.cgi?id=40565
|
|
|
|
GCC 4.6 has a warning for variables which are assigned to but never
read. I've verified that none of these variables—most of which are
'priv' pointers—are intended to be used but in practice are not.
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
The Google server stops pushing <new-mail> updates for the period of
POLL_DURATION seconds. To ensure that MailNotification remains accurate,
we manually update every POLL_DELAY seconds the mail information.
|
|
|
|
The previous code checked if sending the IQ failed, but didn't check if
the reply it got was actually a response rather than an error. This
fixes that.
Also, checking error != NULL rather than reply == NULL tricked Coverity
into thinking reply might be NULL in the second block.
|
|
Delay RequestInboxURL() calls until the mail data has been received.
|
|
The dirty check was broken because the mails_removed array is NULL
terminated so it's size is always bigger then one. Fixing this bug would
bring another one since when 30 emails is reached the count may changed
while the list of e-mails stays the same. For sake of simplicity, we simply
remove the check.
|
|
This will allow changing conn-mail-notification.c without having to edit
connection.c all the time.
|
|
|
|
|
|
This will fix mail-notification.py that fails since patch:
e817d77310d94c5e1aec42a848eacededd82f01c.
|
|
Now using the total-match mailbox XML node attribute to display the number
of unread count. Previous, the size of the unread_mails list was used but
this list is limited to 30 elements by the server.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Also removed useless member unread_mails witch can already be accessed
inside conn member.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
sender was confusing variable name since it is used has one of the mail
attributes in mail hash table.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
The TP-Spec has been updated and uploaded upstream. The 'type' key of a
Mail along with Mail_Type enumeration was replaced by a global
MailNotificationFlag. Also, _request_mail_url() now receive a GValue
instead of a string for url_data.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Major change is the property Capabilities renamed to MailNotificationFlags
and the prefix for MailNotificationFlags now being MAIL_NOTIFICATION_FLAG.
Other change are editorial changes.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
- Subscribe/Unsubscribe is now refcounted
- Name or flags has been changed and flags exist for URL request
- Mail "snippet" is now stored in "content" with "truncated set to TRUE
- Mail "url_data" is now "url-data"
- Timestamps are now 64 bit signed integer
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
A modification was made to the Mail Notification spec to better support
URL with authentication token. Also, mail id has been retyped to string for
flexibility.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|