X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fserv_imap.c;h=b6ec6e5c5b4b051d312c233294cc03affc59ea26;hb=95d5f5081fd65e416127be410ff7240b19abf002;hp=31b3e5c96fb9cad2f3c677e48a3892064c2c7902;hpb=4fa448643e1d7894fb84638de94129c13840446a;p=citadel.git diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index 31b3e5c96..b6ec6e5c5 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -1370,19 +1370,24 @@ void imap_command_loop(void) return; } - /* Ok, at this point we're in normal command mode. The first thing - * we do is print any incoming pages (yeah! we really do!) - */ - imap_print_instant_messages(); - /* - * Before processing the command that was just entered... if we happen - * to have a folder selected, we'd like to rescan that folder for new - * messages, and for deletions/changes of existing messages. This - * could probably be optimized somehow, but IMAP sucks... + /* Ok, at this point we're in normal command mode. + * If the command just submitted does not contain a literal, we + * might think about delivering some untagged stuff... */ - if (IMAP->selected) { - imap_rescan_msgids(); + if (cmdbuf[strlen(cmdbuf)-1] != '}') { + + imap_print_instant_messages(); + + /* + * Before processing the command that was just entered... if we happen + * to have a folder selected, we'd like to rescan that folder for new + * messages, and for deletions/changes of existing messages. This + * could probably be optimized somehow, but IMAP sucks... + */ + if (IMAP->selected) { + imap_rescan_msgids(); + } } /* Now for the command set. */