leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
444 stars 48 forks source link

mscan: don't write to stderr unless an error occurred #136

Closed nmeum closed 5 years ago

nmeum commented 5 years ago

Maybe I am just ignorant and stupid (or using mscan wrong) but the fact that the amount of messages scanned is always written to stderr confuses my pager and doesn't seem useful at all to me.

Opening a PR to figure out if there is a specific reason for this.

Valodim commented 5 years ago

I tend to agree. I'm currently running mscan with 2>/dev/null in my scripts, but that might mask actual errors. It was probably written to stderr as not to destroy the 1 to 1 mapping of stdin to stdout. I would also welcome another solution to this, either by simply omitting it or maybe a flag that requests a count to stdout explicitly.

leahneukirchen commented 5 years ago

This was debugging output at first, but I found it useful.

Needs -v now, ddd7e54.