+ context_replace(curfolder, folder);
+ context_save();
+ fflush(stdout);
+
+ /* remove by refiling. */
+ /* Unset the EXISTS flag for each message to be removed */
+ for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
+ if (is_selected(mp, msgnum)) {
+ unset_exists(mp, msgnum);
+ }
+ }
+
+ /* Mark that the sequence information has changed */
+ mp->msgflags |= SEQMOD;
+
+ if (mp->numsel+4 > MAXARGS) {
+ adios(NULL, "more than %d messages for refile exec",
+ MAXARGS - 4);