Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IMAP: fix SORT-ing on multiple criteria

  • Loading branch information...
commit 9e2f272541621d898d9485bfbf43818d7dce708c 1 parent 64cedfa
@pjstevns authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/dbmail-mailbox.c
View
2  src/dbmail-mailbox.c
@@ -1064,7 +1064,7 @@ static gboolean _do_sort(GNode *node, DbmailMailbox *self)
if (s->searched) return FALSE;
q = g_string_new("");
- g_string_printf(q, "SELECT message_idnr FROM %smessages m "
+ g_string_printf(q, "SELECT DISTINCT(message_idnr) FROM %smessages m "
"LEFT JOIN %sphysmessage p ON m.physmessage_id=p.id "
"%s"
"WHERE m.mailbox_idnr = %llu AND m.status IN (%d,%d) "
Please sign in to comment.
Something went wrong with that request. Please try again.