summaryrefslogtreecommitdiffstats
path: root/maildrop
diff options
context:
space:
mode:
authorSam Varshavchik2015-12-16 21:06:59 -0500
committerSam Varshavchik2015-12-16 21:06:59 -0500
commit08727afd05a6a6f5daa7f1fb293be038d43c4ef8 (patch)
tree05d30bb7e570c800c30664447d8f419b74d622ce /maildrop
parentc1a6c526f515c1d7e24cfa03762b840882076210 (diff)
downloadcourier-libs-08727afd05a6a6f5daa7f1fb293be038d43c4ef8.tar.bz2
Fix last line not being searched.
Diffstat (limited to 'maildrop')
-rw-r--r--maildrop/search.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/maildrop/search.C b/maildrop/search.C
index c50f8e9..c7fa007 100644
--- a/maildrop/search.C
+++ b/maildrop/search.C
@@ -215,6 +215,8 @@ int Search::findinline(Message &msg, const char *expr, Buffer *foreachp)
foreachp_arg=foreachp;
rfc2045_decodemsgtoutf8(&msg.rfc2045src_parser,
msg.rfc2045p, &decode_cb);
+ if (current_line.Length() >= 1)
+ search_cb("\n", 1);
return 0;
}