S22.Imap library modified by John Shahin for use by Boundlss.