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

Bug#964847: reportbug/mailer.py: xdg-email MUA encodes mailto URL instead of using xdg-email command-line parameters



On Sat, 11 Jul 2020 09:54:48 +0800 Paul Wise <pabs@debian.org> wrote:
> Package: python3-reportbug
> Version: 7.7.0
> Severity: normal
> File: /usr/lib/python3/dist-packages/reportbug/mailer.py
> 
> The xdg-email MUA maps to the Mailto class, but the Mailto class fully
> encodes the Mailto URL, while xdg-email takes command-line parameters
> for the CC, BCC, Subject, mail body and attachments. I suggest that
> the xdg-email MUA option should use the command-line parameters
> instead, since xdg-email could do things differently for MUAs that have
> better mechanisms than mailto: for passing items to their composers.
> For example some MUAs could support long mail bodies via xdg-email but
> not via mailto: URLs.

To be honest I don't see any point in doing this. xdg-email basically
works by constructing a mailto URI from its command-line parameters and
passing that to whatever else it invokes. Are you aware of anyone
planning to rewrite xdg-email?

Only for thunderbird xdg-email deconstructs the mailto URI again because
passing attachments to thunderbird is only supported by a different
command line interface. Which happens to be broken/limited anyway, see
https://bugzilla.mozilla.org/show_bug.cgi?id=900117 .


Reply to: