mh-iterate-on-range

mh-iterate-on-range is an autoloaded Lisp macro in `mh-acros.el'.

(mh-iterate-on-range VAR RANGE &rest BODY)

Iterate an operation over a region or sequence.

VAR is bound to each message in turn in a loop over RANGE, which
can be a message number, a list of message numbers, a sequence, a
region in a cons cell, or a MH range (something like last:20) in
a string. In each iteration, BODY is executed.

The parameter RANGE is usually created with
`mh-interactive-range' in order to provide a uniform interface to
MH-E functions.