aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-21 03:46:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-21 03:46:58 +0800
commitfcc41958450dc8bd450284ebb3f899e552b4c562 (patch)
tree936fb47adb14d4cc12401d79356b118aab714100
parent6533962cf5d1d19e1e253833eb57bfe244d73f05 (diff)
downloadgsoc2013-evolution-fcc41958450dc8bd450284ebb3f899e552b4c562.tar.gz
gsoc2013-evolution-fcc41958450dc8bd450284ebb3f899e552b4c562.tar.zst
gsoc2013-evolution-fcc41958450dc8bd450284ebb3f899e552b4c562.zip
If the first char of the mailing-list name is '<', chop it off to make
2001-06-20 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_raw_check_mailing_list): If the first char of the mailing-list name is '<', chop it off to make Ettore happy. Fixes bug #2153. svn path=/trunk/; revision=10347
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-utils.c19
2 files changed, 19 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c253d5d03b..285727f5fe 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-20 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c (header_raw_check_mailing_list): If the first
+ char of the mailing-list name is '<', chop it off to make Ettore
+ happy. Fixes bug #2153.
+
2001-06-19 Not Zed <NotZed@Ximian.com>
* camel-lock-helper.c (unlock_id): Fixed a bug when not running
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index bba18017d9..d787559710 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3421,13 +3421,20 @@ header_raw_check_mailing_list(struct _header_raw **list)
continue;
}
-
- v = header_raw_find(list, mail_list_magic[i].name, NULL);
- if (v != NULL && regexec(&pattern, v, 2, match, 0) == 0 && match[1].rm_so != -1) {
- regfree(&pattern);
- return g_strndup(v+match[1].rm_so, match[1].rm_eo-match[1].rm_so);
+
+ v = header_raw_find (list, mail_list_magic[i].name, NULL);
+ if (v != NULL && regexec (&pattern, v, 2, match, 0) == 0 && match[1].rm_so != -1) {
+ const char *mlist, *mlend;
+
+ regfree (&pattern);
+ mlist = v + match[1].rm_so;
+ mlend = v + match[1].rm_eo;
+ if (*mlist == '<')
+ mlist++;
+
+ return g_strndup (mlist, mlend - mlist);
}
- regfree(&pattern);
+ regfree (&pattern);
}
return NULL;
n style="color:#a52a35">prefix=${PREFIX} \ --enable-ansi \ --enable-machine=FreeBSD \ --infodir=${PREFIX}/info \ --enable-info=${PREFIX}/info \ --enable-tkconfig=${LOCALBASE}/lib/tk8.4 \ --enable-tclconfig=${LOCALBASE}/lib/tcl8.4 \ --with-x \ --x-includes=${X11BASE}/include \ --x-libraries=${X11BASE}/lib \ --disable-dlopen \ --disable-dynsysbfd \ --disable-statsysbfd \ --disable-locbfd \ --enable-custreloc CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" C_INCLUDE_PATH=${PREFIX}/include LIBRARY_PATH=${PREFIX}/lib MAKEFILE= makefile INFO= gcl-si gcl-tk PLIST_SUB= GCL_VER=${PORTVERSION} pre-configure: ${RM} -f ${WRKSRC}/configure ${SED} -i '' \ -e 's|@@CFLAGS@@|${CFLAGS} -I${LOCALBASE}/include|' \ -e 's|@@LOCALLIBS@@|-L${LOCALBASE}/lib -lgmp -lm -lreadline|' \ ${WRKSRC}/h/FreeBSD.defs .include <bsd.port.mk>