Hi,

In continuation to the issue I had posted about long back:

http://www.dovecot.org/list/dovecot/2014-August/097362.html

I did further testing today on a fresh new Debian & latest Dovecot and observed a undesired behavior. I am using fts_lucene & following sequence of commands on a empty test account m...@myself.com:

doveadm expunge -u 'm...@myself.com' mailbox 'INBOX' all
cat test.eml | /usr/lib/dovecot/dovecot-lda -e -f y...@yourself.com -d m...@myself.com
doveadm search -u 'ak...@mailjol.in' mailbox 'INBOX' text ABCD

Search command does or doesn't find the email with slight variation in the content of test.eml. Here are the results:

test.eml content:
-----------------------------
From: y...@yourself.com
To: m...@myself.com
Subject: Test Message
Content-Type: text/html

<div id="mydiv">ABCD 1234</div>
-----------------------------
RESULT: OK. The email is found.


test.eml content (double quotes inside div tag replaced with single):
-----------------------------
From: y...@yourself.com
To: m...@myself.com
Subject: Test Message
Content-Type: text/html

<div id='mydiv'>ABCD 1234</div>
-----------------------------
RESULT: None. The email isn't found.


test.eml content (single quotes in div but content/type header removed):
-----------------------------
From: y...@yourself.com
To: m...@myself.com
Subject: Test Message

<div id='mydiv'>ABCD 1234</div>
-----------------------------
RESULT: OK. The email is found.

What could be the reason for this?

-Akash

Reply via email to