Date: Wed, 26 Mar 2003 02:19:51 -0800 (PST) From: Foxfair Hu <foxfair@FreeBSD.org> To: olive@oban.frmug.org, foxfair@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/45711: mail/gbuffy update to 0.2.4 Message-ID: <200303261019.h2QAJpuh098384@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: mail/gbuffy update to 0.2.4 State-Changed-From-To: open->feedback State-Changed-By: foxfair State-Changed-When: Wed Mar 26 02:18:41 PST 2003 State-Changed-Why: According to your suggesiton, I have made a patch. Please review it and let me know if you have further idea. diff -ruN /usr/ports/mail/gbuffy/Makefile ./Makefile --- /usr/ports/mail/gbuffy/Makefile Fri Mar 21 01:20:48 2003 +++ ./Makefile Tue Mar 25 17:28:50 2003 @@ -6,11 +6,11 @@ # PORTNAME= gbuffy -PORTVERSION= 0.2.2 +PORTVERSION= 0.2.4 CATEGORIES= mail MASTER_SITES= http://www.fiction.net/blong/programs/gbuffy/ -MAINTAINER= rasmus@kaj.se +MAINTAINER= olive@oban.frmug.org COMMENT= A GTK+ multiple mailbox "biff" program LIB_DEPENDS= PropList.2:${PORTSDIR}/devel/libPropList \ diff -ruN /usr/ports/mail/gbuffy/distinfo ./distinfo --- /usr/ports/mail/gbuffy/distinfo Mon Oct 4 05:48:47 1999 +++ ./distinfo Tue Mar 25 17:28:08 2003 @@ -1 +1 @@ -MD5 (gbuffy-0.2.2.tar.gz) = eaad334173654185ef9560f47ba54d74 +MD5 (gbuffy-0.2.4.tar.gz) = aae7b2b88edb6e1a0969346b355fce68 diff -ruN /usr/ports/mail/gbuffy/files/patch-imap ./files/patch-imap --- /usr/ports/mail/gbuffy/files/patch-imap Sun Jul 16 21:28:54 2000 +++ ./files/patch-imap Thu Jan 1 08:00:00 1970 @@ -1,64 +0,0 @@ ---- imap.c.orig Mon Aug 2 09:41:38 1999 -+++ imap.c Sat Jul 15 19:49:45 2000 -@@ -318,12 +318,12 @@ - static int parse_fetch (BOX_INFO *ibox, CONNECTION *conn, GList *headers, - int unseen) - { -- char from[STRING] = ""; -- char subject[STRING] = ""; -- char xface[STRING] = ""; -+ char from[LONG_STRING] = ""; -+ char subject[LONG_STRING] = ""; -+ char xface[LONG_STRING] = ""; - char buf[LONG_STRING]; - char seq[8]; -- char *s; -+ char *s, *last_head; - int recent = 0; - - -@@ -339,8 +339,7 @@ - return (-1); - } - -- if (buf[0] == '*') -- { -+ if (buf[0] == '*') { - s = imap_next_word (buf); - if (!isdigit (*s)) - continue; -@@ -377,10 +376,12 @@ - if (!strncasecmp (buf, "From:", 5)) - { - rfc2047_decode (from, buf, sizeof (from)); -+ last_head = from; - } - else if (!strncasecmp (buf, "Subject:", 8)) - { - rfc2047_decode (subject, buf, sizeof (subject)); -+ last_head = subject; - } - else if (!strncasecmp (buf, "X-Face:", 7)) - { -@@ -389,6 +390,21 @@ - strfcpy (xface, s, sizeof (xface)); - if (strlen (s) > sizeof (xface)) - g_print ("-E- xface header is larger than buffer\n"); -+ last_head = xface; -+ } -+ else if (ISSPACE(buf[0])) { -+ s = buf; -+ while (*s && ISSPACE (*s)) s++; -+ if(strlen(s) + strlen(last_head) + 1 > LONG_STRING) -+ g_print ("-E- a continuing header is larger than buffer\n"); -+ else { -+ /* If this is an X-Face line the space don't matter, but if this -+ * is any other header the space is required. */ -+ strcat(last_head, " "); -+ strncat(last_head, s, LONG_STRING - strlen(last_head)); -+ } -+ } else { -+ last_head = NULL; - } - } - } http://www.freebsd.org/cgi/query-pr.cgi?pr=45711 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303261019.h2QAJpuh098384>