bug: some table header(?) output goes to stderr instead of stdout
Marc
Marc at f1-outsourcing.eu
Thu Mar 18 23:21:51 EET 2021
> On 2021-03-18, Marc <Marc at f1-outsourcing.eu> wrote:
> >
> > [@ sbin]# doveadm -f table -o
> mail_location=mdbox_deleted:/home/popusers/testtest/mdbox:INDEX=/home/po
> pindex/testtest/index fetch -u testtest 'guid' mailbox INBOX 2>
> /dev/null
> > 3c967f33b8aea671f3551db1ea8e33e9
> > 6fa01ccc103a7009c7b940657dbcd72c
> > ba955a6d6218950f42e5b0ee0a33a916
> >
> > [@ sbin]# doveadm -f table -o
> mail_location=mdbox_deleted:/home/popusers/testtest/mdbox:INDEX=/home/po
> pindex/testtest/index fetch -u testtest 'guid' mailbox INBOX
> > guid
> > 3c967f33b8aea671f3551db1ea8e33e9
> > 6fa01ccc103a7009c7b940657dbcd72c
> > ba955a6d6218950f42e5b0ee0a33a916
> >
> >
> >
>
> That's a useful feature, saves messing about to exclude the headers when
> you
> want to use the results to fetch messages as shown in doveadm-search(1).
>
Using stderr/stdout like this is not according to standards. But I do get that, I was tryig to do that with tail -n +1, and thought wtf is it not working!!! ;)
There could be a nasty side effect, if someone starts redirecting 2>/dev/null because of this table header. He will not get a real error.
More information about the dovecot
mailing list