summaryrefslogtreecommitdiff
path: root/mail/sqwebmail/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-10-20 20:26:32 +0000
committerjlam <jlam@pkgsrc.org>2005-10-20 20:26:32 +0000
commit5bed16af6c8d2c49743c3180a2842d49b33de111 (patch)
treece4651ac40fe8f90cf8e62a07d651de7d9a94a1f /mail/sqwebmail/patches
parentdbb4566cfee44b25ed814420b59eea48a4407ae4 (diff)
downloadpkgsrc-5bed16af6c8d2c49743c3180a2842d49b33de111.tar.gz
Update mail/sqwebmail to 5.0.6. Changes from version 5.0.4 include:
* Use PCRE for pattern-matching * When autopurging messages from a folder based on their timestamp, scan 'new' in addition to 'cur', otherwise mail delivered to the folder directly never gets purged, unless the folder is open. * Filter out <!-- > constructs, they are parsed by MSIE. * Remove attributes with imbalanced quotes, to prevent cross-side scripting vulnerabilities with some browsers. * Show each attachment's MIME content type.
Diffstat (limited to 'mail/sqwebmail/patches')
-rw-r--r--mail/sqwebmail/patches/patch-aj6
-rw-r--r--mail/sqwebmail/patches/patch-ak25
-rw-r--r--mail/sqwebmail/patches/patch-al131
3 files changed, 3 insertions, 159 deletions
diff --git a/mail/sqwebmail/patches/patch-aj b/mail/sqwebmail/patches/patch-aj
index 8a628a0e687..b28df0ddf69 100644
--- a/mail/sqwebmail/patches/patch-aj
+++ b/mail/sqwebmail/patches/patch-aj
@@ -1,8 +1,8 @@
-$NetBSD: patch-aj,v 1.2 2005/08/11 00:03:51 jlam Exp $
+$NetBSD: patch-aj,v 1.3 2005/10/20 20:26:32 jlam Exp $
---- INSTALL.html.orig 2005-04-03 12:15:07.000000000 -0400
+--- INSTALL.html.orig 2005-08-31 21:37:02.000000000 -0400
+++ INSTALL.html
-@@ -685,7 +685,7 @@ Qmail, and it implements DSNs.</p>
+@@ -701,7 +701,7 @@ Qmail, and it implements DSNs.</p>
installation. The following presumes that SqWebMail's configuration files are
installed in <code>/usr/lib/sqwebmail</code> (the default).</p>
diff --git a/mail/sqwebmail/patches/patch-ak b/mail/sqwebmail/patches/patch-ak
deleted file mode 100644
index bb37259f4b8..00000000000
--- a/mail/sqwebmail/patches/patch-ak
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-ak,v 1.1 2005/08/29 15:53:24 adrianp Exp $
-
---- sqwebmail/folder.c.orig 2005-07-16 23:20:28.000000000 +0100
-+++ sqwebmail/folder.c
-@@ -2238,13 +2238,19 @@ const struct unicode_info *uiptr=unicode
- if (strcmp(cgi("form"), "print") == 0)
- {
- showattname(getarg("ATTSTUB"), dummy, content_type);
-+
-+ printf("&nbsp;(");
-+ output_attrencoded(content_type);
-+ printf(")");
- }
- else
- {
- printf("<div align=\"center\"><span class=\"message-attachment-header\">");
- showattname(getarg("ATTACHMENT"), dummy, content_type);
-
-- printf("&nbsp;(%s)</span></div>",
-+ printf("&nbsp;(");
-+ output_attrencoded(content_type);
-+ printf("; %s)</span></div>",
- showsize(end_pos - start_body));
- printf("<br /><div align=\"center\">");
-
diff --git a/mail/sqwebmail/patches/patch-al b/mail/sqwebmail/patches/patch-al
deleted file mode 100644
index 8d258b31c48..00000000000
--- a/mail/sqwebmail/patches/patch-al
+++ /dev/null
@@ -1,131 +0,0 @@
-$NetBSD: patch-al,v 1.3 2005/09/30 13:02:28 salo Exp $
-
---- sqwebmail/html.c.orig 2003-10-06 01:16:13.000000000 +0100
-+++ sqwebmail/html.c 2005-09-05 18:05:59.000000000 +0100
-@@ -187,9 +187,16 @@
- if (tai) ++tai->tagvaluelen;
- }
- if (*p) p++;
-+ else
-+ {
-+ memset(tagbuf, ' ', strlen(tagbuf));
-+ }
- }
- else
- {
-+ if (c == 0)
-+ memset(tagbuf, ' ', strlen(tagbuf));
-+
- if (tai)
- {
- tai->tagvalue=p;
-@@ -222,6 +229,31 @@
- while ((p=strchr(tagbuf, '<')) != NULL)
- *p=' ';
-
-+ for (p=tagbuf; *p; p++)
-+ {
-+ char *q;
-+
-+ if (*p != '&')
-+ continue;
-+
-+ q=p;
-+
-+ ++p;
-+
-+ while (*p)
-+ {
-+ if (strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", *p) == NULL)
-+ break;
-+ ++p;
-+ }
-+
-+ if (*p != ';')
-+ {
-+ *q=0;
-+ }
-+ --p;
-+ }
-+
- tagattrlen=parseattr(0);
- if ( tagattrlen > tagattrsize)
- {
-@@ -285,7 +317,9 @@
- incomment, /* <!--, in a comment, have not seen any
- dashes */
- incommentseendash, /* In a comment, seen - */
-- incommentseendashdash /* In a comment, seen -- */
-+ incommentseendashdash, /* In a comment, seen -- */
-+
-+ skiptag /* Ignore <!tag> */
- } ;
-
- static enum htmlstate cur_state;
-@@ -385,7 +419,7 @@
- case intag:
- /* We're in a tag (not a <!-- comment)
- collect the contents in tagbuf, until > is seen */
--do_intag:
-+
- cur_state=intag;
- if (p[l] == '>')
- {
-@@ -397,9 +431,21 @@
- addtagbuf(p[l]);
- continue;
-
-+ case skiptag:
-+ if (p[l] == '>')
-+ {
-+ start=l+1;
-+ cur_state=intext;
-+ }
-+ continue;
- case seenltbang:
- /* We have <!. If - is not here, this is a SGML tag */
-- if (p[l] != '-') goto do_intag;
-+ if (p[l] != '-')
-+ {
-+ cur_state=skiptag;
-+ continue;
-+ }
-+
- addtagbuf(p[l]);
- cur_state=seenltbangdash;
- continue;
-@@ -410,9 +456,12 @@
- otherweise we're in a comment, which we can pass
- along */
-
-- if (p[l] != '-') goto do_intag;
-- if (!skipping())
-- (*htmlfiltered_func)("<!--", 4);
-+ if (p[l] != '-')
-+ {
-+ cur_state=skiptag;
-+ continue;
-+ }
-+
- start=l+1;
- cur_state=incomment;
- continue;
-@@ -433,8 +482,6 @@
- cur_state=incomment;
- continue;
- }
-- if (!skipping())
-- (*htmlfiltered_func)(p+start, l+1-start);
- cur_state=intext;
- start=l+1;
- continue;
-@@ -446,9 +493,6 @@
-
- switch (cur_state) {
- case intext:
-- case incomment:
-- case incommentseendash:
-- case incommentseendashdash:
- if (!skipping())
- (*htmlfiltered_func)(p+start, l-start);
- default: