Re: dbmail-3.2.3: empty fetch response on noop command

Sergej Pupykin <[email protected]> Wed, 22 Jul 2015 14:16:28 +0300
Newsgroups gmane.mail.imap.dbmail,gmane.mail.imap.dbmail.devel
Message-ID <[email protected]>
On Mon, 20 Jul 2015 20:51:07 +0300,
Sergej Pupykin <[email protected]> wrote:
> I've made workaround by forcing UID sending:
> 

Probably this is better fix:

diff -wbBur dbmail-3.2.3/src/dm_imapsession.c dbmail-3.2.3.q/src/dm_imapsession.c
--- dbmail-3.2.3/src/dm_imapsession.c	2015-01-25 13:20:50.000000000 +0300
+++ dbmail-3.2.3.q/src/dm_imapsession.c	2015-07-22 14:10:36.473334443 +0300
@@ -1413,7 +1413,7 @@
 	if (oldflags && (! MATCH(oldflags, newflags)))
 		flagschanged = true;
 
-	if (modseqchanged || flagschanged) {
+	if ((modseqchanged && self->mailbox->condstore) || self->use_uid || flagschanged) {
 		GList *plist = NULL;
 		char *response = NULL;
 		if (self->use_uid) {