[Reportbug-maint] Bug#789332: reportbug: Unclean exit when sending bug mail to non-BTS address
> The accompanying patch […] Or so ;). diff -Naupr reportbug-6.6.3.old/reportbug/submit.py reportbug-6.6.3/reportbug/submit.py --- reportbug-6.6.3.old/reportbug/submit.py 2015-01-04 11:41:45.0 +0100 +++ reportbug-6.6.3/reportbug/submit.py 2015-06-19 23:41:33.267323006 +0200 @@ -481,7 +481,7 @@ def send_report(body, attachments, mua, for address in cclist: ewrite(' %s\n', address) -if not (exinfo or kudos) and rtype == 'debbugs' and sysinfo and not failed \ +if not (exinfo or kudos) and rtype == 'debbugs' and sysinfo and "email" in sysinfo not failed \ and mailing: ewrite('\n') ui.long_message( signature.asc Description: OpenPGP digital signature ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint
[Reportbug-maint] Bug#789332: reportbug: Unclean exit when sending bug mail to non-BTS address
Package: reportbug Version: 6.6.3 Severity: minor Followup-For: Bug #789332 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 The issue occurs because reportbug unconditionally tries to build the follow-up info message, trying to replace a placeholder in the target bug tracker's e-mail address, which is defined hardcoded in reportbug/debbugs.py. The accompanying patch shouldsuppress the message if no e-mail address is specified. Please note that even though this suppresses the crash, it is probably still technically wrong to assume the same local-part for all debbugs systems, but maybe I am mistaken there. - -- Package-specific info: ** Environment settings: EDITOR="jupp" INTERFACE="text" ** /home/dgeorg/.reportbugrc: reportbug_version "6.6.3" mode advanced ui text email "n...@naturalnet.de" smtphost "shore.naturalnet.de:587" smtpuser "nik" smtptls - -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/lksh Init: systemd (via /run/systemd/system) Versions of packages reportbug depends on: ii apt 1.0.9.10 ii python2.7.9-1 ii python-reportbug 6.6.3 pn python:any reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail pn debconf-utils pn debsums pn dlocate ii emacs24-bin-common 24.4+1-5 ii exim4 4.85-3 ii exim4-daemon-light [mail-transport-agent] 4.85-3 ii file 1:5.22+15-2 ii gnupg 1.4.19-3 ii python-gtk22.24.0-4 ii python-gtkspell2.25.3-13 ii python-urwid 1.2.1-2+b1 ii python-vte 1:0.28.2-5 ii xdg-utils 1.1.0~rc1+git20111210-7.4 Versions of packages python-reportbug depends on: ii apt 1.0.9.10 ii python-debian 0.1.27 ii python-debianbts 1.12 pn python:any python-reportbug suggests no packages. - -- no debconf information -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQJOBAEBCAA4BQJVhI2QMRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n cGctcG9saWN5LnR4dC5hc2MACgkQt5o8FqDE8pYqiQ/+N0fKCuvGI6n+ZPybZYBv NofwHNNBInPXAXU5BaQKJCE8nQzYB85DBaliRfH0eFyRA97wRdYP0BzQtxS3cY5y dOmFl8g1N2nR47VMRqdNF30XkqAgf9A0v2ZkNJi9QkqwHyXUm8PWVpV+JilvBVQS phrL3XLUNPeMnJXm2D5Pw8jHt9VbzRFiQCSZZZEGhMkE24xDZEboOpxytnSFqDi1 OPksI5gdVqLcE37aSdDI37eiwll/7rg07sHUdHJeKHM6TsM4siRJ5vJjX6PdKhGx JHkrBxcgBTJi9yub8l5Ryp9WsJ4MpBl8Hblkywc5r1jqkNFK4Q+n+0wggrP7o6Re ExO9BkOSnqxllmEJlWKFd1SWACJlC62luQzfp5bsQXfigC0g5tuaZxuzC/vZNrSL H20safE5q63hnmG47b47mY1ON4jIuZ/Zx3PIkiBhlgM+Fnf+Meo4VtelcB+8h2ex fS6u//R0hJ6DYeYUHMepjM4tMMmOTUte+8Uh7wlWXIjRiCu6dQQ5xOT0Eptlk2lI uUG7h9DOKEP2qdgT0urtlUpDoFvjyWRuXl8NUqJKHAIAwYX+3tIIOjEwf84Isk61 HEBdvNMEfCg0pcYsFEX5oyqndfJAZiaTgtBf2y+AHeGnXH2sYJzPZrZ6aNnZPgMT 7MbdvEMjFqLlFcilkztMKtY= =f2GZ -END PGP SIGNATURE- ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint
[Reportbug-maint] Bug#789332: reportbug: Unclean exit when sending bug mail to non-BTS address
Package: reportbug Version: 6.6.3 Severity: normal -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 For some inobvious reason, reportbug chooses to crash after sending mail to an address that is not the BTS (for packages/repos that provide their own contact addres): Traceback (most recent call last): File "/usr/bin/reportbug", line 2211, in main() File "/usr/bin/reportbug", line 1081, in main return iface.user_interface() File "/usr/bin/reportbug", line 2203, in user_interface self.options.envelopefrom) File "/usr/lib/python2.7/dist-packages/reportbug/submit.py", line 493, in send_report (sysinfo['email'] % 'n'), (sysinfo['email'] % '99')) TypeError: not all arguments converted during string formatting Sending mail to the BTS does not produce this, so a config issue seems unlikely. - -- Package-specific info: ** Environment settings: EDITOR="jupp" INTERFACE="text" ** /home/dgeorg/.reportbugrc: reportbug_version "6.6.3" mode advanced ui text email "n...@naturalnet.de" smtphost "shore.naturalnet.de:587" smtpuser "nik" smtptls - -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/lksh Init: systemd (via /run/systemd/system) Versions of packages reportbug depends on: ii apt 1.0.9.10 ii python2.7.9-1 ii python-reportbug 6.6.3 pn python:any reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail pn debconf-utils pn debsums pn dlocate ii emacs24-bin-common 24.4+1-5 ii exim4 4.85-3 ii exim4-daemon-light [mail-transport-agent] 4.85-3 ii file 1:5.22+15-2 ii gnupg 1.4.19-3 ii python-gtk22.24.0-4 ii python-gtkspell2.25.3-13 ii python-urwid 1.2.1-2+b1 ii python-vte 1:0.28.2-5 ii xdg-utils 1.1.0~rc1+git20111210-7.4 Versions of packages python-reportbug depends on: ii apt 1.0.9.10 ii python-debian 0.1.27 ii python-debianbts 1.12 pn python:any python-reportbug suggests no packages. - -- no debconf information -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQJOBAEBCAA4BQJVhItYMRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n cGctcG9saWN5LnR4dC5hc2MACgkQt5o8FqDE8pZfag//Ua9dLdd/nWribE5+5b4F 88Wedh1TRd/AFCibyUcIzvHE5KsCp1cQ0c7/ga1Kv4n+x6OF6kCJd4GtkegdTZFl xAHBwLkKuixxInYuRLer0Ga7gr42ommjyvPv7yCvot9u0aNN0L8OBMXZhBN1QUeo D01uHv4I59tUd7J5xlWAbPHP4tFGz+TnXvSfQu8L8qXQ498VU7ANogwPBptfmg6n +lT7jx//BgNZoXRmVTBvK3A1LdCWv1FsO/xPCylfBAJSYq/Z8Tc9btTHxuWN8dcx 8Y3yft8tMVUOdm1Vl5w+Pkd6xyAGLgnm6QCykUYiHCBOqtpeb/NuoKJ6dY6HBKbA KfeXRf80rcNw5SFRlU2lyOwh2KqD9rizayxNYmnPL/hUp/jaOyrpjbH22TOOdtac n3dK+cYk5F+++PoxvbcSuoyJAhJL2fyR/YeekQ6yBfiiQN/JQKrcONekIBCbL32E oXl9wDWSbObS1ypbySosvGUZghk9kDhNKhAaOCI4+aqK6ADV9V7SiwPtyWkJq7QR NxklRTH6vhv7Q6LWOYHPfOSMHzVoYxw7O2rZQu7jz6JZ2GLbru5frAf/mZMXVpoP scGNJ0iME5w4yeQWai8yRKnYTRm9ZBGcpCO48+LVnyei+wmQIw7NMina1NytYFo2 uv+5zmcIW00hPO4USwhHKs0= =vS2K -END PGP SIGNATURE- ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint