From b14240f37dd7ca0ce775f887040086bf9027769c Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 21 Feb 2005 11:49:57 +0000 Subject: update to 1.9.3 add a patch which fixes non-7-bit-clean header handling --- mail/sylpheed3/Makefile | 2 +- mail/sylpheed3/distinfo | 4 ++-- mail/sylpheed3/files/patch-src::codeconv.c | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 mail/sylpheed3/files/patch-src::codeconv.c (limited to 'mail/sylpheed3') diff --git a/mail/sylpheed3/Makefile b/mail/sylpheed3/Makefile index 582a153ce3c2..b775faf6d3f3 100644 --- a/mail/sylpheed3/Makefile +++ b/mail/sylpheed3/Makefile @@ -6,7 +6,7 @@ # PORTNAME= sylpheed -PORTVERSION= 1.9.1 +PORTVERSION= 1.9.3 PORTREVISION= 0 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_LOCAL:S/$/:mime/} \ diff --git a/mail/sylpheed3/distinfo b/mail/sylpheed3/distinfo index 754a8cadd84b..85a95928124a 100644 --- a/mail/sylpheed3/distinfo +++ b/mail/sylpheed3/distinfo @@ -1,4 +1,4 @@ -MD5 (sylpheed/sylpheed-1.9.1.tar.bz2) = 3164a9db5a7a50902083fb3b05c486ae -SIZE(sylpheed/sylpheed-1.9.1.tar.bz2) = 2303268 +MD5 (sylpheed/sylpheed-1.9.3.tar.bz2) = 975a6282ddbd5fe8e2d0ec7081631808 +SIZE(sylpheed/sylpheed-1.9.3.tar.bz2) = 2221199 MD5 (sylpheed/mime.types) = 7c0563d85e2e830c0266d54517ad62e8 SIZE(sylpheed/mime.types) = 14979 diff --git a/mail/sylpheed3/files/patch-src::codeconv.c b/mail/sylpheed3/files/patch-src::codeconv.c new file mode 100644 index 000000000000..5946301287bf --- /dev/null +++ b/mail/sylpheed3/files/patch-src::codeconv.c @@ -0,0 +1,24 @@ +--- src/codeconv.c.orig Mon Feb 21 12:46:21 2005 ++++ src/codeconv.c Mon Feb 21 12:46:30 2005 +@@ -1577,8 +1577,20 @@ + Xalloca(buf, buflen, return); + conv_anytodisp(buf, buflen, str); + unmime_header(outbuf, buf); +- } else ++ } else { ++ gchar *tmp; + unmime_header(outbuf, str); ++ if (outbuf && !g_utf8_validate(outbuf, -1, NULL)) { ++ tmp = conv_codeset_strdup(outbuf, ++ conv_get_locale_charset_str(), ++ CS_UTF_8); ++ if (tmp) { ++ strncpy(outbuf, tmp, outlen-1); ++ g_free(tmp); ++ } ++ } ++ } ++ + } + + #define MAX_LINELEN 76 -- cgit