]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3c: "TOP msgnum 0" was missing the 0 parameter.
authorTimo Sirainen <tss@iki.fi>
Tue, 10 Apr 2012 06:52:35 +0000 (09:52 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 10 Apr 2012 06:52:35 +0000 (09:52 +0300)
src/lib-storage/index/pop3c/pop3c-mail.c

index a7d0729fbe80470c00b23aefa19726ee634302ef..90e7de797460d6b8145cdd6156d01b6ac5757281 100644 (file)
@@ -113,7 +113,7 @@ pop3c_mail_get_stream(struct mail *_mail, bool get_body,
                if (get_body || (capa & POP3C_CAPABILITY_TOP) == 0)
                        cmd = t_strdup_printf("RETR %u\r\n", _mail->seq);
                else
-                       cmd = t_strdup_printf("TOP %u\r\n", _mail->seq);
+                       cmd = t_strdup_printf("TOP %u 0\r\n", _mail->seq);
                if (pop3c_client_cmd_stream(mbox->client, cmd,
                                            &input, &error) < 0) {
                        mail_storage_set_error(mbox->box.storage,