Jochen, Thanks for catching this one. Your patch is not valid since it will break the THREAD and SORT commands, but I'll fix this asap.
Jochen Schroer wrote: > Sorry, I repost this because the previous mail was to hard to read as a > result of automatically linebreaks in my mailclient. :-( > > Hi, > > I installed 2.2 SVN 2354 under debian with PostgreSQL as backend. > > If I try to search with my Thunderbird 1.5.0.7 (latest version) > mailclient I get no result. > I'm not so familiar with the imap-commands, but I think the problem is > the word "uid" instead of "SEARCH" in the result. > > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Info:[imap] > imap4.c,IMAPClientHandler(+201): COMMAND: [6 uid SEARCH UNDELETED BODY > "big"] > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,build_args_array_ext(+2125): arg[0]: 'SEARCH' > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,build_args_array_ext(+2125): arg[1]: 'UNDELETED' > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,build_args_array_ext(+2125): arg[2]: 'BODY' > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,build_args_array_ext(+2125): arg[3]: 'big' > Nov 5 07:17:08 mailserver dbmail/imap4d[17906]: Info:[imap] > imap4.c,IMAPClientHandler(+314): Executing command uid... > [...] > Nov 5 07:17:12 mailserver dbmail/imap4d[17906]: Debug:[mailbox] > dbmail-mailbox.c,dbmail_mailbox_search(+1479): found [234] ids > Nov 5 07:17:12 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,dbmail_imap_session_printf(+1303): RESPONSE: [* uid > 6 186 196 228 262 270 272 276 280 290 312...] > Nov 5 07:17:12 mailserver dbmail/imap4d[17906]: Debug:[imapsession] > dbmail-imapsession.c,dbmail_imap_session_printf(+1301): RESPONSE: [6 OK > uid completed^M ] > Nov 5 07:17:12 mailserver dbmail/imap4d[17906]: Info:[imap] > imap4.c,IMAPClientHandler(+342): Finished command uid [0] > > I try it with the following changes and it works fine for me. > ----------------------------------- snip > -------------------------------------------------------- > =================================================================== > --- imapcommands.c (Revision 2354) > +++ imapcommands.c (Arbeitskopie) > @@ -1344,12 +1344,12 @@ > break; > } > > - dbmail_imap_session_printf(self, "* %s %s\r\n", > self->command, s?s:""); > - if (s) > + dbmail_imap_session_printf(self, "* SEARCH %s\r\n", > s?s:""); > + if (s) > g_free(s); > } > > - dbmail_imap_session_printf(self, "%s OK %s completed\r\n", > self->tag, self->command); > + dbmail_imap_session_printf(self, "%s OK %sSEARCH completed\r\n", > self->tag, self->use_uid ? "UID " : ""); > > dbmail_mailbox_free(mb); > > -------------------------------------- snap > ---------------------------------------------------- > > Please check if my changes makes new problems or is they are okay. the > log is now: > Nov 5 08:02:32 mailserver dbmail/imap4d[30869]: Debug:[imapsession] > dbmail-imapsession.c,dbmail_imap_session_printf(+1303): RESPONSE: [* > SEARCH 12 266 268 292 296 298 308 318 346 362 378...] > Nov 5 08:02:32 mailserver dbmail/imap4d[30869]: Debug:[imapsession] > dbmail-imapsession.c,dbmail_imap_session_printf(+1301): RESPONSE: [6 OK > UID SEARCH completed^M ] > > Kind regards, > > Jochen > > -- > ECS-Solution GmbH > Raiffeisenstr. 26 > 67817 Imsbach > Germany > > Web: http://www.ecs-solution.de > Tel: +49 (6302) 609 71-0 > Fax: +49 (6302) 609 71-1 > > > ------------------------------------------------------------------------ > > _______________________________________________ > DBmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
