[Reportbug-maint] Bug#855172: Unable to select no suite (ie unstable) when filing binNMU bug against release.debian.org

2017-02-14 Thread James Clarke
Package: reportbug
Version: 7.1.5
Severity: important

Running reportbug release.debian.org with the GTK UI, when prompted to
choose a suite, the first suite in the list is already selected, and
there is no way to de-select it (at least as far as I can tell). This
means I can't use reportbug to file binNMUs for unstable.

Regards,
James



-- Package-specific info:
** Environment settings:
EDITOR="vim"
PAGER="less"
VISUAL="vim"
DEBEMAIL="jrt...@debian.org"
DEBFULLNAME="James Clarke"
INTERFACE="gtk2"

** /home/james/.reportbugrc:
reportbug_version "6.6.6"
mode expert
ui gtk2

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt1.4~beta4
ii  python3-reportbug  7.1.5
pn  python3:any

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail 
pn  debconf-utils  
ii  debsums2.2
pn  dlocate
pn  emacs23-bin-common | emacs24-bin-common
ii  exim4  4.88-5
ii  exim4-daemon-light [mail-transport-agent]  4.88-5
ii  file   1:5.29-3
ii  gir1.2-gtk-3.0 3.22.7-2
ii  gir1.2-vte-2.910.46.1-1
ii  gnupg  2.1.18-3
ii  python3-gi 3.22.0-2
ii  python3-gi-cairo   3.22.0-2
ii  python3-gtkspellcheck  4.0.5-1
pn  python3-urwid  
ii  xdg-utils  1.1.1-1

Versions of packages python3-reportbug depends on:
ii  apt1.4~beta4
ii  file   1:5.29-3
ii  python3-debian 0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1
pn  python3:any

python3-reportbug suggests no packages.

-- no debconf information

___
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint


[Reportbug-maint] Bug#848729: It is grave

2017-02-14 Thread Nis Martensen
Hi Ondřej,

Ondřej Surý wrote:
> As this bug is preventing me from filling any bugs at all and it fails
> only after I press "Y", so the content of the lengthy unblock bug is
> gone...  and this puts my laptop in danger of my rage :).
> 
> Traceback (most recent call last):
>   File "/usr/bin/reportbug", line 2234, in 
> main()
>   File "/usr/bin/reportbug", line 1107, in main
> return iface.user_interface()
>   File "/usr/bin/reportbug", line 2225, in user_interface
> self.options.envelopefrom)
>   File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 209,
>   in send_report
> (message, failed) = mime_attach(body, attachments, charset,
> body_charset)
>   File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 157,
>   in mime_attach
> part = MIMEText(fp.read())
>   File "/usr/lib/python3.5/codecs.py", line 321, in decode
> (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position
> 296505: invalid continuation byte
> 
> and my locale is:
> 
> $ locale
> LANG=en_DK.UTF-8

Your Traceback is different from the others. This bug is not fixed yet.

Did you try to attach a text(plain/html/etc) file in a different
encoding than UTF-8? As a workaround, you could gzip that file.

Attached a patch that should fix the problem.
>From 0566a9cec6c9bd561db0128a58c84b9db0a5d1c4 Mon Sep 17 00:00:00 2001
From: Nis Martensen 
Date: Tue, 14 Feb 2017 22:21:29 +0100
Subject: [PATCH] Handle text attachments in different encodings

---
 reportbug/submit.py | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/reportbug/submit.py b/reportbug/submit.py
index 5cc1231..b3025b3 100644
--- a/reportbug/submit.py
+++ b/reportbug/submit.py
@@ -153,9 +153,15 @@ def mime_attach(body, attachments, charset, body_charset=None):
 
 maintype, subtype = ctype.split('/', 1)
 if maintype == 'text':
-fp = open(attachment, 'rU')
-part = MIMEText(fp.read())
-fp.close()
+try:
+with open(attachment, 'rU') as fp:
+part = MIMEText(fp.read())
+except UnicodeDecodeError:
+fp = open(attachment, 'rb')
+part = MIMEBase(maintype, subtype)
+part.set_payload(fp.read())
+fp.close()
+email.encoders.encode_base64(part)
 elif maintype == 'message':
 fp = open(attachment, 'rb')
 part = MIMEMessage(email.message_from_file(fp),
-- 
2.1.4

___
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint

[Reportbug-maint] RE

2017-02-14 Thread Ms. Ella Golan
I am Ms.Ella Golan, I am the Executive Vice President Banking Division
with FIRST INTERNATIONAL BANK OF ISRAEL LTD (FIBI). I am getting in
touch with you regarding an extremely important and urgent matter. If
you would oblige me the opportunity, I shall provide you with details
upon your response.

Faithfully,
Ms.Ella Golan___
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint