From: Alfons Hoogervorst Date: Fri, 31 Jan 2003 13:56:19 +0000 (+0000) Subject: * src/textview.c X-Git-Tag: rel_0_8_10~36 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=765723167246ebb9d35f6b4a3f1a2689d3c999a6;ds=sidebyside * src/textview.c tune URI parser to accept mailto URLs with a '?' (patch from Ruslan Balkin) --- diff --git a/ChangeLog.claws b/ChangeLog.claws index a58ad6a03..0401d9c2b 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2003-01-31 [alfons] 0.8.9claws27 + + * src/textview.c + tune URI parser to accept mailto URLs with a '?' + (patch from Ruslan Balkin) + 2003-01-31 [colin] 0.8.9claws26 * src/summaryview.c diff --git a/configure.ac b/configure.ac index 3c99c72cf..32d149f75 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=8 MICRO_VERSION=9 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws26 +EXTRA_VERSION=claws27 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/textview.c b/src/textview.c index c50a87a08..5489d231b 100644 --- a/src/textview.c +++ b/src/textview.c @@ -850,6 +850,7 @@ static gboolean get_email_part(const gchar *start, const gchar *scanpos, static GHashTable *dom_tab; const gchar *last_dot = NULL; const gchar *prelast_dot = NULL; + const gchar *last_tld_char = NULL; /* the informative part of the email address (describing the name * of the email address owner) may contain quoted parts. the @@ -901,8 +902,12 @@ static gboolean get_email_part(const gchar *start, const gchar *scanpos, if (last_dot == NULL || (scanpos + 1 >= last_dot)) return FALSE; last_dot++; - - if (is_toplvl_domain(dom_tab, last_dot, ep_)) + + for (last_tld_char = last_dot; last_tld_char < ep_; last_tld_char++) + if (*last_tld_char == '?') + break; + + if (is_toplvl_domain(dom_tab, last_dot, last_tld_char)) result = TRUE; *ep = ep_;