Unexpected output of "notmuch new --quiet"
david at tethera.net
Wed Apr 17 16:29:16 PDT 2019
Ralph Seichter <abbot at monksofcool.net> writes:
> Hi folks,
> I can't help but wonder why text like
> Note: Ignoring non-mail file: /home/foo/.maildir/.private/dovecot-uidlist
> Note: Ignoring non-mail file: /home/foo/.maildir/.work/dovecot.index.log
> is written when I run "notmuch new --quiet"?
> Only error conditions should be reported to stderr, so why are lines 1
> and 2 written to stderr? Notes are not errors.
They could quite reasonably be retitled 'Warning' since they sometimes
indicate a disagreement between notmuch and the MDA as to how mail files
should be formatted on disk). Your case just happens to be on the
harmless end. I could imagine more levels of quiet, but I don't know if
it is worth the trouble.
> Also, why is line #3, which represents the current umask value,
> written to stdout?
I can duplicate that here. Could it maybe a wrapper script or hook
invoked by notmuch new?
More information about the notmuch