Re: Unexpected output of "notmuch new --quiet"

Subject:Re: Unexpected output of "notmuch new --quiet"

Date:Wed, 17 Apr 2019 20:29:16 -0300

To:Ralph Seichter ,notmuch@notmuchmail.org

Cc:

From:David Bremner


Ralph Seichter <abbot@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
>   0022
>
> 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?
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: