Mairix currently dies on SIGPIPE, which results in locked mailboxes when used in a pipe ala `mairix -r foo | head -10`. Easy mitigation is using `signal(SIGPIPE, SIG_IGN);`, even better would be to check the printf calls and exit early then when they fail.