ports/mail/xfce4-mailwatch-plugin/files/patch-mailwatch-mailbox-gmail.c
Martin Wilke 335e212107 Mailwatch is a plugin for the Xfce 4 panel.
Features

    *   IMAP and Secure IMAP support
    *   POP3 and Secure POP3 support
    *   Local Mbox mailbox support
    *   Local Maildir mailbox support
    *   Local MH-Maildir mailbox support
    *   GMail support
    *   Fully multithreaded design: no panel lockups
    *   Informative new-message breakdown in tooltip
    *   Ability to run program on new messages or button click
    *   Informative logger to help track down mail connection problems

WWW:	http://spuriousinterrupt.org/projects/mailwatch
2007-01-28 00:10:45 +00:00

21 lines
800 B
C

--- panel-plugin/mailwatch-mailbox-gmail.c.orig Thu Apr 20 11:24:36 2006
+++ panel-plugin/mailwatch-mailbox-gmail.c Sat Jan 27 11:15:51 2007
@@ -159,10 +159,16 @@
gmail_get_sockaddr(XfceMailwatchGMailMailbox *gmailbox, const gchar *host,
const gchar *service, struct sockaddr_in *addr)
{
- struct addrinfo hints = { 0, PF_INET, SOCK_STREAM, IPPROTO_TCP,
- sizeof(struct sockaddr_in), NULL, NULL, NULL };
+ struct addrinfo hints;
GError *error = NULL;
+ memset(&hints, 0, sizeof(hints));
+
+ hints.ai_flags = 0;
+ hints.ai_family = PF_INET;
+ hints.ai_socktype = SOCK_STREAM;
+ hints.ai_protocol = IPPROTO_TCP;
+
TRACE("entering (%s, %s, %p)", host, service, addr);
g_return_val_if_fail(host && service && addr, FALSE);