It appears that doveadm output format changes every now and then,
without particular notice.
For example, the following command:
doveadm -f pager mailbox status 'messages recent' '*'
did output something like this until v2.2.24 :
mailbox: Mailbox1
messages: 58
recent: 12
^L
mailbox: Mailbox2
messages: 128
recent: 0
but switched to that in v2.2.26 :
Mailbox1
messages: 58
recent: 12
^L
Mailbox2
messages: 128
recent: 0
This seems related to the following changelog entry:
2016-10-25 20:51:36 +0300 Timo Sirainen <timo.sirainen at dovecot.fi>
(5baa99e)
doveadm: "pager" formatter supports now
DOVEADM_PRINT_HEADER_FLAG_HIDE_TITLE
M src/doveadm/doveadm-print-pager.c
Some other format changes did also occur in the past. For example,
"doveadm user" had a specific format in v2.0.19 (and ignored the
"-f
format" option), and obviously defaulted to the "-f tab" format
(which
has different rendering) somewhere in the v2.2.x or 2.1.x.
Such changes render maintenance of wrapping scripts particularly tedious.
Could it be possible to avoid such breaking changes in the future ?
--
Benoit BRANCIARD
Service InfraStructures (SIS)
Direction du Syst?me d'Information et des Usages Num?riques (DSIUN)
Universit? Paris 1 Panth?on-Sorbonne
Centre Pierre Mend?s France
90 rue de Tolbiac - 75634 Paris cedex 13 - France
Bur. B406 - T?l +33 1 44 07 89 68 - Fax +33 1 44 07 89 66
Accueil: +33 1 44 07 89 65 - Assistance-DSIUN at univ-paris1.fr
http://dsi.univ-paris1.fr