better implementation of extracting quoted names from addresses (remove backlashes and ignore quotes after them)
+2001-11-04 [christoph] 0.6.4claws25
+
+ * src/summaryview.c
+ replace Xalloca + strdup with Xstrdup_a
+ * src/utils.c
+ better implementation of extracting quoted names
+ from addresses (remove backlashes and ignore
+ quotes after them)
+
2001-11-04 [alfons] 0.6.4claws24
* src/utils.[ch]
MICRO_VERSION=4
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws24
+EXTRA_VERSION=claws25
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl
!MSG_IS_NEWS(msginfo->flags)) {
gchar *from;
- Xalloca(from, strlen(msginfo->from) + 1, return);
- strcpy(from, msginfo->from);
+ Xstrdup_a(from, msginfo->from, return);
extract_address(from);
if (account_find_from_address(from)) {
g_free(to);
gint count;
gchar *from;
- Xalloca(from, strlen(msginfo->from) + 1, return);
- strcpy(from, msginfo->from);
+ Xstrdup_a(from, msginfo->from, return);
extract_address(from);
if (*from) {
count = complete_address(from);
void extract_quote(gchar *str, gchar quote_chr)
{
- register gchar *p;
+ register gchar *p, *p2;
if ((str = strchr(str, quote_chr))) {
- if ((p = strchr(str + 1, quote_chr))) {
+ p2 = str;
+ while ((p = strchr(p2 + 1, quote_chr)) && (p[-1] == '\\')) {
+ memmove(p - 1, p, strlen(p) + 1);
+ p2 = p - 1;
+ }
+ if(p) {
*p = '\0';
memmove(str, str + 1, p - str);
}