summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-filter/bogofilter/files/bogofilter-1.1.1-queue-id.patch')
-rw-r--r--mail-filter/bogofilter/files/bogofilter-1.1.1-queue-id.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail-filter/bogofilter/files/bogofilter-1.1.1-queue-id.patch b/mail-filter/bogofilter/files/bogofilter-1.1.1-queue-id.patch
new file mode 100644
index 0000000..e25b75e
--- /dev/null
+++ b/mail-filter/bogofilter/files/bogofilter-1.1.1-queue-id.patch
@@ -0,0 +1,22 @@
+diff --exclude-from=/home/dang/.diffrc -up -ruN bogofilter-1.1.1.orig/src/lexer_v3.l bogofilter-1.1.1/src/lexer_v3.l
+--- bogofilter-1.1.1.orig/src/lexer_v3.l 2006-07-03 23:47:37.000000000 -0400
++++ bogofilter-1.1.1/src/lexer_v3.l 2006-11-04 18:17:19.000000000 -0500
+@@ -137,7 +137,7 @@ BCHARSNOSPC [[:alnum:]()+_,-./:=?#\']
+ BCHARS [[:alnum:]()+_,-./:=?#\' ]
+ MIME_BOUNDARY {BCHARS}*{BCHARSNOSPC}
+
+-ID <?[[:alnum:]\-\.]*>?
++ID <?[[:alnum:]\-\.]+>?
+ CHARSET [[:alnum:]-]+
+ VERPID [[:alnum:]#-]+[[:digit:]]+[[:alnum:]#-]+
+ MTYPE [[:blank:]]*[[:alnum:]/-]*
+@@ -252,7 +252,7 @@ VERP {TOKEN}-{VERPID}-{TOKEN}={TOKEN}@{
+ <INITIAL>charset=\"?{CHARSET}\"? { got_charset(yytext); skip_to('='); return TOKEN; }
+
+ <INITIAL>(file)?name=\"? /* ignore */
+-<INITIAL>\n?[[:blank:]]id\ {ID} { return QUEUE_ID; }
++<INITIAL>\n?[[:blank:]]id{WHITESPACE}+{ID} { return QUEUE_ID; }
+
+ <INITIAL>\n[[:blank:]] { lineno += 1; }
+ <INITIAL>\n\n { enum mimetype type = get_content_type();
+Files bogofilter-1.1.1.orig/src/.token.c.swp and bogofilter-1.1.1/src/.token.c.swp differ