aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-09-14 05:36:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-09-14 05:36:28 +0800
commite1aea06269544e81edbcc617dc00f672a7dc4deb (patch)
tree8ee667daa91004df1545659470d1f0dcf31d7919 /camel
parent584b87ddf1534d91a72e85e831d9559bbb4d26a2 (diff)
downloadgsoc2013-evolution-e1aea06269544e81edbcc617dc00f672a7dc4deb.tar.gz
gsoc2013-evolution-e1aea06269544e81edbcc617dc00f672a7dc4deb.tar.zst
gsoc2013-evolution-e1aea06269544e81edbcc617dc00f672a7dc4deb.zip
If header_msgid_decode fails for the content-id field, just grab whatever
2002-09-13 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-part.c (process_header): If header_msgid_decode fails for the content-id field, just grab whatever is between the <>'s (yes, this means that the content-id is invalid - but what can ya do?). Addresses bug #21027. svn path=/trunk/; revision=18070
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-part.c17
2 files changed, 22 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b029bbcb0f..d421ac2c8c 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2002-09-13 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-part.c (process_header): If header_msgid_decode fails
+ for the content-id field, just grab whatever is between the <>'s
+ (yes, this means that the content-id is invalid - but what can ya
+ do?). Addresses bug #21027.
+
2002-09-11 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_encode_string): Revert a patch that I
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 3ebd45e6aa..c7545a6a9c 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -212,7 +212,7 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_
{
CamelMimePart *mime_part = CAMEL_MIME_PART (medium);
CamelHeaderType header_type;
- const char *charset;
+ const char *charset, *p;
char *text;
/* Try to parse the header pair. If it corresponds to something */
@@ -234,7 +234,20 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_
break;
case HEADER_CONTENT_ID:
g_free (mime_part->content_id);
- mime_part->content_id = header_msgid_decode (header_value);
+ if (!(mime_part->content_id = header_msgid_decode (header_value))) {
+ header_decode_lwsp (&header_value);
+ if (*header_value == '<') {
+ p = header_value;
+ while (*p && *p != '>')
+ p++;
+ mime_part->content_id = g_strndup (header_value, p - header_value);
+ } else if (*header_value) {
+ mime_part->content_id = g_strdup (header_value);
+ }
+
+ if (mime_part->header_value)
+ g_strstrip (mime_part->header_value);
+ }
break;
case HEADER_ENCODING:
text = header_token_decode (header_value);
e>
3 files changed, 43 insertions, 25 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index e97fbac0eb7d..2f7c395b0830 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -5,16 +5,12 @@
# $FreeBSD$
PORTNAME= python
-PORTVERSION= 2.5.a0.20050129
-PORTREVISION= 1
+PORTVERSION= 2.5.a0.20050728
CATEGORIES= lang python ipv6
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
DISTFILES= ${PYTHON_DISTFILE}
-PATCH_SITES= http://www.python.org/security/PSF-2005-001/
-PATCHFILES= patch.txt
-
MAINTAINER= perky@FreeBSD.org
COMMENT?= An interpreted object-oriented programming language
@@ -22,7 +18,6 @@ DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
INSTALLS_SHLIB= yes
@@ -44,7 +39,8 @@ OPTIONS= THREADS "Enable thread support" on \
HUGE_STACK_SIZE "Use a larger thread stack" off \
UCS4 "Use UCS4 for unicode support" on \
PYMALLOC "Use python's internal malloc" on \
- IPV6 "Enable IPv6 support" on
+ IPV6 "Enable IPv6 support" on \
+ FPECTL "Enable floating point exception handling" off
.include <bsd.port.pre.mk>
@@ -98,14 +94,18 @@ CONFIGURE_ARGS+= --enable-ipv6
CONFIGURE_ARGS+= --disable-ipv6
.endif
-.if ${OSVERSION} >= 600000
-PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
+.if defined(WITH_FPECTL)
+CONFIGURE_ARGS+= --with-fpectl
+.endif
+
+.if ${OSVERSION} >= 700000
+PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
+.elif ${OSVERSION} >= 600000
+PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
-PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd6
-.elif ${OSVERSION} >= 400000
-PLATFORMS=plat-freebsd3 plat-freebsd5 plat-freebsd6
+PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
-PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
+PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
.endif
post-extract:
@@ -123,8 +123,6 @@ pre-patch:
${REINPLACE_CMD} -e \
's|^\( *prefixes = .*\)\]$$|\1, "${X11BASE}"]|g' \
${WRKSRC}/Lib/site.py
- ${MKDIR} ${WRKSRC}/Lib/plat-freebsd6
- ${CP} ${WRKSRC}/Lib/plat-freebsd5/regen ${WRKSRC}/Lib/plat-freebsd6/
post-configure:
@# prepare a subdir for shared build
diff --git a/lang/python31/distinfo b/lang/python31/distinfo
index 03e493904480..3ae73b7d56d2 100644
--- a/lang/python31/distinfo
+++ b/lang/python31/distinfo
@@ -1,4 +1,2 @@
-MD5 (python/Python-2.5.a0.20050129.tgz) = bdf571f3e28c4793bedbd180611c28e6
-SIZE (python/Python-2.5.a0.20050129.tgz) = 9227299
-MD5 (python/patch.txt) = bdebb9c747dea1eada73ee7dbb6ac838
-SIZE (python/patch.txt) = 4427
+MD5 (python/Python-2.5.a0.20050728.tgz) = 423c9ac2dbe3a754195e26652495aac3
+SIZE (python/Python-2.5.a0.20050728.tgz) = 9280478
diff --git a/lang/python31/pkg-plist b/lang/python31/pkg-plist
index f687ce816284..e021d97679a8 100644
--- a/lang/python31/pkg-plist
+++ b/lang/python31/pkg-plist
@@ -210,6 +210,9 @@ lib/%%PYTHON_VERSION%%/bsddb/test/test_associate.pyo
lib/%%PYTHON_VERSION%%/bsddb/test/test_basics.py
lib/%%PYTHON_VERSION%%/bsddb/test/test_basics.pyc
lib/%%PYTHON_VERSION%%/bsddb/test/test_basics.pyo
+lib/%%PYTHON_VERSION%%/bsddb/test/test_compare.py
+lib/%%PYTHON_VERSION%%/bsddb/test/test_compare.pyc
+lib/%%PYTHON_VERSION%%/bsddb/test/test_compare.pyo
lib/%%PYTHON_VERSION%%/bsddb/test/test_compat.py
lib/%%PYTHON_VERSION%%/bsddb/test/test_compat.pyc
lib/%%PYTHON_VERSION%%/bsddb/test/test_compat.pyo
@@ -442,6 +445,9 @@ lib/%%PYTHON_VERSION%%/distutils/command/register.pyo
lib/%%PYTHON_VERSION%%/distutils/command/sdist.py
lib/%%PYTHON_VERSION%%/distutils/command/sdist.pyc
lib/%%PYTHON_VERSION%%/distutils/command/sdist.pyo
+lib/%%PYTHON_VERSION%%/distutils/command/upload.py
+lib/%%PYTHON_VERSION%%/distutils/command/upload.pyc
+lib/%%PYTHON_VERSION%%/distutils/command/upload.pyo
lib/%%PYTHON_VERSION%%/distutils/command/wininst-6.exe
lib/%%PYTHON_VERSION%%/distutils/command/wininst-7.1.exe
lib/%%PYTHON_VERSION%%/distutils/core.py
@@ -516,6 +522,9 @@ lib/%%PYTHON_VERSION%%/distutils/tests/test_install.pyo
lib/%%PYTHON_VERSION%%/distutils/tests/test_install_scripts.py
lib/%%PYTHON_VERSION%%/distutils/tests/test_install_scripts.pyc
lib/%%PYTHON_VERSION%%/distutils/tests/test_install_scripts.pyo
+lib/%%PYTHON_VERSION%%/distutils/tests/test_versionpredicate.py
+lib/%%PYTHON_VERSION%%/distutils/tests/test_versionpredicate.pyc
+lib/%%PYTHON_VERSION%%/distutils/tests/test_versionpredicate.pyo
lib/%%PYTHON_VERSION%%/distutils/text_file.py
lib/%%PYTHON_VERSION%%/distutils/text_file.pyc
lib/%%PYTHON_VERSION%%/distutils/text_file.pyo
@@ -528,6 +537,9 @@ lib/%%PYTHON_VERSION%%/distutils/util.pyo
lib/%%PYTHON_VERSION%%/distutils/version.py
lib/%%PYTHON_VERSION%%/distutils/version.pyc
lib/%%PYTHON_VERSION%%/distutils/version.pyo
+lib/%%PYTHON_VERSION%%/distutils/versionpredicate.py
+lib/%%PYTHON_VERSION%%/distutils/versionpredicate.pyc
+lib/%%PYTHON_VERSION%%/distutils/versionpredicate.pyo
lib/%%PYTHON_VERSION%%/doctest.py
lib/%%PYTHON_VERSION%%/doctest.pyc
lib/%%PYTHON_VERSION%%/doctest.pyo
@@ -1285,6 +1297,7 @@ lib/%%PYTHON_VERSION%%/lib-dynload/datetime.so
lib/%%PYTHON_VERSION%%/lib-dynload/dbm.so
%%32BIT_ONLY%%lib/%%PYTHON_VERSION%%/lib-dynload/dl.so
lib/%%PYTHON_VERSION%%/lib-dynload/fcntl.so
+lib/%%PYTHON_VERSION%%/lib-dynload/functional.so
lib/%%PYTHON_VERSION%%/lib-dynload/grp.so
%%X86_ONLY%%lib/%%PYTHON_VERSION%%/lib-dynload/imageop.so
lib/%%PYTHON_VERSION%%/lib-dynload/itertools.so
@@ -1525,10 +1538,6 @@ lib/%%PYTHON_VERSION%%/pipes.pyo
lib/%%PYTHON_VERSION%%/pkgutil.py
lib/%%PYTHON_VERSION%%/pkgutil.pyc
lib/%%PYTHON_VERSION%%/pkgutil.pyo
-lib/%%PYTHON_VERSION%%/plat-freebsd3/IN.py
-lib/%%PYTHON_VERSION%%/plat-freebsd3/IN.pyc
-lib/%%PYTHON_VERSION%%/plat-freebsd3/IN.pyo
-lib/%%PYTHON_VERSION%%/plat-freebsd3/regen
lib/%%PYTHON_VERSION%%/plat-freebsd4/IN.py
lib/%%PYTHON_VERSION%%/plat-freebsd4/IN.pyc
lib/%%PYTHON_VERSION%%/plat-freebsd4/IN.pyo
@@ -1541,6 +1550,10 @@ lib/%%PYTHON_VERSION%%/plat-freebsd6/IN.py
lib/%%PYTHON_VERSION%%/plat-freebsd6/IN.pyc
lib/%%PYTHON_VERSION%%/plat-freebsd6/IN.pyo
lib/%%PYTHON_VERSION%%/plat-freebsd6/regen
+lib/%%PYTHON_VERSION%%/plat-freebsd7/IN.py
+lib/%%PYTHON_VERSION%%/plat-freebsd7/IN.pyc
+lib/%%PYTHON_VERSION%%/plat-freebsd7/IN.pyo
+lib/%%PYTHON_VERSION%%/plat-freebsd7/regen
lib/%%PYTHON_VERSION%%/platform.py
lib/%%PYTHON_VERSION%%/platform.pyc
lib/%%PYTHON_VERSION%%/platform.pyo
@@ -1769,7 +1782,6 @@ lib/%%PYTHON_VERSION%%/test/mapping_tests.py
lib/%%PYTHON_VERSION%%/test/mapping_tests.pyc
lib/%%PYTHON_VERSION%%/test/mapping_tests.pyo
lib/%%PYTHON_VERSION%%/test/output/test_MimeWriter
-lib/%%PYTHON_VERSION%%/test/output/test_asynchat
lib/%%PYTHON_VERSION%%/test/output/test_augassign
lib/%%PYTHON_VERSION%%/test/output/test_cgi
lib/%%PYTHON_VERSION%%/test/output/test_class
@@ -1810,6 +1822,7 @@ lib/%%PYTHON_VERSION%%/test/output/test_threadedtempfile
lib/%%PYTHON_VERSION%%/test/output/test_tokenize
lib/%%PYTHON_VERSION%%/test/output/test_types
lib/%%PYTHON_VERSION%%/test/output/test_winreg
+lib/%%PYTHON_VERSION%%/test/outp