
Lei is a command-line tool for importing and searching email, regardless of whether it is from a personal mailbox or a public-inbox. lei supports a local, writable store built on top of public-inbox formats.
Warning: lei is still in its early stages and may destroy mail. Be sure to have backups of destinations lei writes to.