Commit 2fd25dff 2fd25dff1a13b48877292d506daf61d3b844096a by Alain Magloire

* util.c (util_msglist_command): Check for interruption here

	also and that will permit interruption on long commands like
	"from *"
1 parent df7feaf9
...@@ -349,8 +349,12 @@ util_msglist_command (function_t *func, int argc, char **argv, int set_cursor) ...@@ -349,8 +349,12 @@ util_msglist_command (function_t *func, int argc, char **argv, int set_cursor)
349 for (i = 0; i < number; i++) 349 for (i = 0; i < number; i++)
350 { 350 {
351 cursor = list[i]; 351 cursor = list[i];
352 /* NOTE: Should we bail on error also? */
352 if (func (1, argv) != 0) 353 if (func (1, argv) != 0)
353 status = 1; 354 status = 1;
355 /* Bail out if we receive an interrupt. */
356 if (ml_got_interrupt () != 0)
357 break;
354 } 358 }
355 free (list); 359 free (list);
356 360
......