Package: reportbug Version: 4.12.2 Severity: minor Tags: sid patch When I run reportbug --configure here it shows a nice gtk frontend, if I follow the following steps:
* Reportbug is a tool .... press continue * select standard ... continue * gtk2 interface ... continue * reportbug direct internet connection ... yes * enter real name ... continue * enter e-mail ... continue * Do you have a MTA prompt ... select NO At this point I have a window with a label and a textbox and the label reads: "Just press ENTER if ou don't have one or don't know" and an empty textbox this is obviously the 'enter your smtp server' prompt. If we look at /usr/bin/reportbug lines 583 till 590: ewrite('Please enter the name of your SMTP host. Usually it\'s called ' 'something like "mail.example.org" or "smtp.example.org". ' 'If you need to use a different port than default, use the ' '<host>:<port> alternative format.\n\n') smtphost = ui.get_string( 'Just press ENTER if you don\'t have one or don\'t know.', options=opts, empty_ok=True, force_prompt=True) if smtphost: The ui.get_string() functions properly but the ewrite never appears. So I just changed this block to: smtphost = ui.get_string( 'Please enter the name of your SMTP host. Usually it\'s called ' 'something like "mail.example.org" or "smtp.example.org". ' 'If you need to use a different port than default, use the ' '<host>:<port> alternative format.\n\n' 'Just press ENTER if you don\'t have one or don\'t know.', options=opts, empty_ok=True, force_prompt=True) if smtphost: which works in gtk mode. -- Package-specific info: ** Environment settings: INTERFACE="gtk2" ** /home/edb/.reportbugrc: reportbug_version "4.12.2" mode standard ui gtk2 email "eliedebrau...@gmail.com" smtphost "smtp.gmail.com:587" smtpuser "eliedebrau...@gmail.com" smtptls -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages reportbug depends on: ii apt 0.7.25.3 Advanced front-end for dpkg ii python 2.5.4-9 An interactive high-level object-o ii python-reportbug 4.12.2 Python modules for interacting wit reportbug recommends no packages. Versions of packages reportbug suggests: pn debconf-utils <none> (no description available) pn debsums <none> (no description available) pn dlocate <none> (no description available) ii emacs23-bin-common 23.2+1-2 The GNU Emacs editor's shared, arc ii exim4-daemon-light [ 4.71-4 lightweight Exim MTA (v4) daemon ii file 5.04-2 Determines file type using "magic" ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep ii python-gtk2 2.17.0-2 Python bindings for the GTK+ widge pn python-gtkspell <none> (no description available) pn python-urwid <none> (no description available) ii python-vte 1:0.24.1-1 Python bindings for the VTE widget ii xdg-utils 1.0.2+cvs20100307-1 desktop integration utilities from -- Configuration Files: /etc/reportbug.conf changed [not included] -- no debconf information
--- /usr/bin/reportbug 2010-05-12 19:22:23.000000000 +0200 +++ /usr/bin/reportbug.fixed 2010-05-26 21:53:01.000000000 +0200 @@ -580,11 +580,11 @@ opts = [] if options.smtphost: opts += [options.smtphost] - ewrite('Please enter the name of your SMTP host. Usually it\'s called ' + smtphost = ui.get_string( + 'Please enter the name of your SMTP host. Usually it\'s called ' 'something like "mail.example.org" or "smtp.example.org". ' 'If you need to use a different port than default, use the ' - '<host>:<port> alternative format.\n\n') - smtphost = ui.get_string( + '<host>:<port> alternative format.\n\n' 'Just press ENTER if you don\'t have one or don\'t know.', options=opts, empty_ok=True, force_prompt=True) if smtphost: