[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#954125: querybts: Add option to directly read mbox using MUA/mutt



On 17 Mar 2020 Josh Triplett wrote:
> 
> https://salsa.debian.org/reportbug-team/reportbug/-/merge_requests/55
> 
> querybts supports a -m/--mbox option to dump an mbox directly to stdout,
> and an --mbox-reader-cmd option to specify a MUA to read an mbox when
> using the option from the query UI to open the mbox via a mail reader,
> but does not have any option to directly open the mbox without going
> through the query UI first.
> 
> Add a new option -M/--mua/--mutt, which directly opens the mbox in an
> MUA (default mutt), exiting when done.
> 
> Refactor utils.launch_mbox_reader to separate out URL downloading from
> reader launching, putting the latter in a new
> utils.launch_mbox_reader_str.

Thank you for this bug and patch. However, I'm unsure about this. Is it
really worth improving querybts? What does it provide that reportbug
does not? Shouldn't we better drop querybts?

Not only is reportbug designed to be able to send followup information
to bugs, it also does a better job querying the BTS than querybts does.
In the default query for bugs on a package, querybts retrieves the bug
list only for the binary package, while reportbug retrieves the much
more comprehensive bug list for the corresponding source package. I
intend to merge a patch soon that will make reportbug also consider
"submit-as" information for the query, which cannot be done easily with
querybts.

If you already know the bug number and want to open a bug mbox in your
MUA, you can use `bts show --mbox $bugno` (from the devscripts package)
and don't need yet another tool/option to just do the same thing?


Reply to: