mairix icon indicating copy to clipboard operation
mairix copied to clipboard

SIGPIPE handling

Open leahneukirchen opened this issue 8 years ago • 0 comments

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.

leahneukirchen avatar Jul 20 '16 12:07 leahneukirchen