]> code.citadel.org Git - citadel.git/blobdiff - citadel/imap_misc.c
* Added flush_output() calls to IMAP modules. (Do we need them? Are we
[citadel.git] / citadel / imap_misc.c
index 505f40950a96525cd44638ab4b2dade04cebe793..36ae353f89d41eaf188089c5b67c48e0d4af550f 100644 (file)
@@ -259,6 +259,7 @@ void imap_append(int num_parms, char *parms[]) {
                blksize = literal_length - bytes_transferred;
                if (blksize > SIZ) blksize = SIZ;
 
+               flush_output();
                ret = client_read(&IMAP->transmitted_message[bytes_transferred], blksize);
                if (ret < 1) {
                        bytes_transferred = literal_length;     /* bail out */
@@ -284,6 +285,7 @@ void imap_append(int num_parms, char *parms[]) {
         * literal (the message text) is received.  This call to
         * client_gets() absorbs it.
         */
+       flush_output();
        client_gets(buf);
        lprintf(CTDL_DEBUG, "Trailing CRLF: %s\n", buf);