[sip-comm-dev] History search - problems with multiline messages


#1

Hello Damencho,

I've
just updated to the latest Fedora build and the issue is fixed.

Many thanx! :slight_smile:
--Pavel Tankov

路路路

----- Original Message ----

From: Damian Minkov <damencho@damencho.com>

To: dev@sip-communicator.dev.java.net

Sent: Wednesday, February 28, 2007 4:24:11 PM

Subject: Re: [sip-comm-dev] History search - problems with multiline messages

Hi,

I've located the problem - its some regular expression issue. Will be

fixed.

Thanks.

damencho

Pavel Tankov wrote:

Hello Devs,

Recently I had to search my message history and noticed strange

behavior with multiline messages. I then tried to reproduce it and

came up with the following case:

I initiate a chat with someone and type the following on two lines,

just as it shows here (by using <Ctrl> + <Enter> to insert a newline):

-------------

test1

test2

-------------

and send it.

Then I type a single line:

-------------

test3

-------------

and send it.

After that, I open the history and want to search for the string

"test1", but it gives me no result. The same for "test2". Now I try

"test3" and voila - the string is found. Then I try the sub-string

"test" and I get all 3 of them. All these without the quotes, of course.

Here is the part of the log file that keeps the history:

-----------------------------------------

<?xml version="1.0" encoding="UTF-8" ?>

<history>

...

...

...

聽聽<record timestamp="1172667441884">

聽聽聽聽<dir>out</dir>

聽聽聽聽<msg><![CDATA[test1

test2]]></msg>

聽聽聽聽<msgTyp>text/plain</msgTyp>

聽聽聽聽<enc>UTF-8</enc>

聽聽聽聽<uid>11726674418832754428</uid>

聽聽聽聽<receivedTimestamp>1172667441884</receivedTimestamp>

聽聽</record>

聽聽<record timestamp="1172667443547">

聽聽聽聽<dir>out</dir>

聽聽聽聽<msg><![CDATA[test3]]></msg>

聽聽聽聽<msgTyp>text/plain</msgTyp>

聽聽聽聽<enc>UTF-8</enc>

聽聽聽聽<uid>117266744354733004951</uid>

聽聽聽聽<receivedTimestamp>1172667443547</receivedTimestamp>

聽聽</record>

</history>

-----------------------------------------

Note that it reproduces both for ICQ and YM, probably because the

format of the history file is the same.

Thanks,

--Pavel Tankov

------------------------------------------------------------------------

Now that's room service! Choose from over 150,000 hotels

in 45,000 destinations on Yahoo! Travel

<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-->

to find your fit.

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net