summaryrefslogtreecommitdiff
path: root/src/conn-mail-notif.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-06mail notification: ensure google notification setting is correctJussi Kukkonen1-0/+58
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
2011-03-17use wocky_c2s_porter_register_handler_from_server() where applicableSenko Rasic1-2/+4
2011-03-15Remove never-read variables.Will Thompson1-4/+1
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>
2011-03-10Update Wocky snapshot for wocky_porter_register_handler changesWill Thompson1-2/+3
2010-11-03Require telepathy-glib 0.13.4 and use it for MailNotificationSimon McVittie1-20/+19
2010-11-03conn_mail_notif_init: remove temporary #define and just have over-long linesSimon McVittie1-3/+4
2010-11-03MailNotification: remove unnecessary debug messagesSimon McVittie1-12/+3
2010-10-29MailNotification: use client interests instead of implementing SubscribeSimon McVittie1-158/+60
2010-10-13Merge branch 'speedup-mail-notification'Nicolas Dufresne1-0/+49
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2010-10-13Some English fixesNicolas Dufresne1-3/+5
2010-10-13Mail status polling to workaround server lazinessNicolas Dufresne1-0/+47
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.
2010-09-21various: use tp_clear_object, tp_clear_pointer moreSimon McVittie1-19/+8
2010-05-04mail-notif: handle iq errors when querying unread mailsWill Thompson1-11/+7
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.
2010-04-29Fix bug 27167 about RequestInboxURL empty stringNicolas Dufresne1-37/+107
Delay RequestInboxURL() calls until the mail data has been received.
2010-04-29Removed broken dirty check before sending signalNicolas Dufresne1-4/+3
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.
2010-04-29Merge MailNotification members into private structureNicolas Dufresne1-49/+76
This will allow changing conn-mail-notification.c without having to edit connection.c all the time.
2010-04-20Rename to WockyStanza, WockyNode and related changesSjoerd Simons1-28/+29
2010-04-13Update Gabble for _stanza_build() changes.Will Thompson1-8/+8
2010-03-25Clean unread mails count when last subscriber calls Unsubscribe()Nicolas Dufresne1-0/+1
This will fix mail-notification.py that fails since patch: e817d77310d94c5e1aec42a848eacededd82f01c.
2010-03-17Fix unread mail count maxed to 30Nicolas Dufresne1-4/+11
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>
2010-02-25Made TpDBusDaemon globally accessible by all Connection extensionNicolas Dufresne1-15/+4
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25conn-mail-notif.c: Use tp_value_array_build to simplify the codeNicolas Dufresne1-19/+6
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Renamed structure MailsHelperData into MailThreadCollectorNicolas Dufresne1-27/+28
Also removed useless member unread_mails witch can already be accessed inside conn member. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Fixed copyright year to include 2010Nicolas Dufresne1-1/+1
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Use SelfHandle instead of username@stream_server MailAddressNicolas Dufresne1-10/+9
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25User subscriber instead of sender for var name in conn-mail-notif.cNicolas Dufresne1-21/+21
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>
2010-02-25Don't use GNU extension operator ?: in conn-mail-notif.cNicolas Dufresne1-4/+16
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Use g_error if we cannot allocate TpDBusDaemonNicolas Dufresne1-2/+1
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Explain why we convert Mail id from decimal to hexadecimalNicolas Dufresne1-0/+1
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Just use g_assert_not_reached() in conn-mail-notif.c property getterNicolas Dufresne1-1/+1
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Use return value instead of in/out param in conn-mail-notif.cNicolas Dufresne1-15/+26
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Use g_hash_table_steal () in conn-mail-notif.cNicolas Dufresne1-6/+4
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Removed unneeded debug output in conn-mail-notif.cNicolas Dufresne1-7/+0
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Remove static empty_array in conn-mail-notif.cNicolas Dufresne1-6/+10
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Removed intl/fr from link to Google Mail extension docNicolas Dufresne1-1/+1
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Add blank lines around each if/while in conn-mail-notif.cNicolas Dufresne1-0/+12
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25conn-mail-notif.c: Add curly braces to "else", following coding styleNicolas Dufresne1-5/+11
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Add explicit comparison in conn-mail-notif.cNicolas Dufresne1-20/+20
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Fixed missing space before parenthesis in conn-mail-notif.cNicolas Dufresne1-14/+14
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Fix conn-mail-notif.c headers orderingNicolas Dufresne1-6/+6
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Removed trailing white space introduce by mail notificationNicolas Dufresne1-6/+6
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-25Update MailNotification Spec 0.19.1Nicolas Dufresne1-2/+2
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>
2010-02-22Added MailAddress to MailNotification interfaceNicolas Dufresne1-3/+22
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-22Ported to latest version MailNotification SpecNicolas Dufresne1-7/+7
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>
2010-02-22MailNotification.Unsubscribe now returns NotAvailable errorNicolas Dufresne1-2/+6
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-22MailNotification.Subscribe/Unsubscribe can now return Disconnected errorNicolas Dufresne1-0/+8
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-18Bumped to latest MailNotification.DRAFTNicolas Dufresne1-39/+52
- 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>
2010-02-18Ported Gabble Google Mail notification to new specNicolas Dufresne1-63/+98
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>
2010-02-18Don't crash when attribute unread_mails HashTable is NULLNicolas Dufresne1-4/+7
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2010-02-18Disable all caps if server does not support mail notificationNicolas Dufresne1-3/+8
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>