[Dovecot] squat not working in 2.1

Christoph Bußenius busseniu at in.tum.de
Wed Feb 29 12:03:35 EET 2012


On 21.02.2012 01:18, Timo Sirainen wrote:
> On 20.2.2012, at 19.30, Metro Domain Admin wrote:
>
>> Squat is apparently deprecated:  http://dovecot.org/list/dovecot/2011-December/062630.html
>
> Yes, but it should still work..

As far as I can tell from my tests, squat has stopped working in 2.1.

Let's take a user who does not have any mails yet, and deliver a first 
mail to him:

echo -e 'From: <test at example.org>\nSubject: test\n\ntest\ntest' | 
/usr/local/dovecot/libexec/dovecot/dovecot-lda -d testuser

Now create an IMAP session, select INBOX, and do a search:

* 1 EXISTS
* 1 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1330509552] UIDs valid
* OK [UIDNEXT 2] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
. OK [READ-WRITE] Select completed.
 >>> . search text test
* SEARCH
. OK Search completed (0.006 secs).

(Should have returned 1 message.)

Deliver the same message again:
echo -e 'From: <test at example.org>\nSubject: test\n\ntest\ntest' | 
/usr/local/dovecot/libexec/dovecot/dovecot-lda -d testuser

Now in the existing session, run the search command three more times:

 >>> . search text test
* SEARCH
* 2 EXISTS
* 2 RECENT
. OK Search completed (0.000 secs).
 >>> . search text test
* SEARCH 2
. OK Search completed (0.002 secs).
 >>> . search text test
* SEARCH
. OK Search completed (0.000 secs).

It found the message once, but the next time it didn't.  So the squat 
search does not actually seem to work any more.  I know it's deprecated, 
I just wanted to note this.

Cheers,
Christoph

-- 
Christoph Bußenius
Rechnerbetriebsgruppe der Fakultäten Informatik und Mathematik
Technische Universität München
+49 89-289-18519 <> Raum 00.05.055 <> Boltzmannstr. 3 <> Garching


More information about the dovecot mailing list