ignore css tags in html mail
authorPaul Mangan <paul@claws-mail.org>
Thu, 25 Oct 2001 06:31:55 +0000 (06:31 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 25 Oct 2001 06:31:55 +0000 (06:31 +0000)
ChangeLog.claws
configure.in
src/html.c

index b989e5afe1d7932c0b155180cf40b3cb7ff546f1..d2ebd7e0cc4282d9737620814f4ddd216161b10a 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-25 [paul]      0.6.4claws5
+
+       * src/html.c
+               ignore css tags in html mail
+
 2001-10-25 [darko]     0.6.4claws4
 
        * src/compose.c
index 1d4937c8266a04270367c6b66ebab6b64e7e2a48..bce3197d0768a94b93f07792729d8bbc2515cf7b 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws4
+EXTRA_VERSION=claws5
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 5ce4f08438c7d43a3a00464f6e1df8fb036deddc..9124c1be0ec90ef292937071757c9c9a67a009bf 100644 (file)
@@ -651,6 +651,14 @@ static void html_get_parenthesis(HTMLParser *parser, gchar *buf, gint len)
                parser->bufp = p + 3;
                return;
        }
+       /* ignore css stuff */
+       if (!strncmp(parser->bufp, "<STYLE type=text/css>", 21)) {
+               parser->bufp += 21;
+               while ((p = strstr(parser->bufp, "</STYLE>")) == NULL)
+                       if (html_read_line(parser) == HTML_EOF) return;
+               parser->bufp = p + 8;
+               return;
+       }
 
        parser->bufp++;
        while ((p = strchr(parser->bufp, '>')) == NULL)