Patch for bug in search function
Andreas Kinzler <[email protected]> Wed, 16 Dec 2015 22:57:53 +0100
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Hello, maildrop 2.7.x and 2.8.x has a bug the causes that the last line of a text is not searched. While that alone is a bug, there are cases where a whole HTML body only consists of one huge (over 50 kb) line. In that case the whole body is not searched. A simple patch fixes the bug. Regards Andreas ------------------------------------------------------------------------------ _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
maildrop-search.patch
(text/plain, 331 B)
--- a/libs/maildrop/search.C 2014-01-16 01:50:53.000000000 +0100
+++ b/libs/maildrop/search.C 2014-11-08 03:31:22.332009388 +0100
@@ -215,6 +215,8 @@
foreachp_arg=foreachp;
rfc2045_decodemsgtoutf8(&msg.rfc2045src_parser,
msg.rfc2045p, &decode_cb);
+ if (current_line.Length() >= 1)
+ search_cb("\n", 1);
return 0;
}