- ** If this is not the highest SELECTED message, then
- ** increment mp->hghsel by numburst, since the highest
- ** SELECTED is about to be slid down by that amount.
- */
- if (msgnum < mp->hghsel)
- mp->hghsel += numburst;
-
- /*
- ** If -inplace is given, renumber the messages after the
- ** source message, to make room for each of the messages
- ** contained within the digest.
- **
- ** This is equivalent to refiling a message from the point
- ** of view of the external hooks.
- */
- if (inplace) {
- for (i = mp->hghmsg; j > msgnum; i--, j--) {
- strncpy(f1, m_name(i), sizeof(f1));
- strncpy(f2, m_name(j), sizeof(f2));
- if (does_exist(mp, j)) {
- if (verbosw)
- printf("message %d becomes message %d\n", j, i);
-
- if (rename(f2, f1) == NOTOK)
- admonish(f1, "unable to rename %s to", f2);
-
- snprintf(f1, sizeof (f1), "%s/%d", maildir, i);
- snprintf(f2, sizeof (f2), "%s/%d", maildir, j);
- ext_hook("ref-hook", f1, f2);
-
- copy_msg_flags(mp, i, j);
- clear_msg_flags(mp, j);
- mp->msgflags |= SEQMOD;
- }
- }
- }
-
- unset_selected(mp, msgnum);
-
- /* new hghmsg is hghmsg + numburst
- **