A device for measuring the width L of a mail item on the fly in a mail handling machine in which mail items are caused to move parallel to a reference wall, the device comprising: a detector device rendered active when the presence of a mail item passing over a plurality of levers is detected, said levers being disposed at a determined set pitch perpendicularly to said reference wall; an emitter device for emitting a light ray, which emitter device is disposed facing a first lever of said plurality; a receiver device for receiving said light ray; a measurement device for measuring the light intensity of the light ray received at said receiver device; and a processor device for computing a determined number y of levers activated by said mail item going past, on the basis of a comparison between said measurement of the received light intensity and an initial measurement of the light intensity of the light ray received at said receiver device when no mail items pass over said plurality of levers, the width L of a mail item being determined on the basis of the number y of levers activated by the mail item going past.
A mechanical device for measuring the width L of a mail item on the fly in a mail handling machine in which mail items are caused to move along a mail item conveyor path, parallel to a reference wall; said mechanical device comprising a device for detecting a leading edge of a mail item, a downstream lever disposed across the mail item conveyor path and forming a determined angle relative to said reference wall, a device for detecting said downstream lever moving as the leading edge of the mail item goes past, a device for determining a movement distance over which the leading edge of the mail item moves between the device for detecting a leading edge of a mail item and a point of activation at which said leading edge activates said downstream lever, which point of activation is determined by the device for detecting the downstream lever moving, and a computation device for computing the width L of the mail item on the basis of said movement distance.