[Reportbug-maint] Bug#526110: Template scripts should be able to add attachements

Joachim Breitner nomeata at debian.org
Wed Apr 29 10:01:39 UTC 2009

Package: reportbug
Version: 4.1
Severity: wishlist

Hash: SHA1


I’m considering to add a /usr/share/bug/$package/script file to one of
my package that would attach (possibly after getting permission from the
user) a configuration file. Currently, I’m only able to include it in
the mail body, which I find unpleasant. In my case, it might even be
problematic, as spaces and tabs are important, and the editor might
break that.

Therefore, I’d like to be able to tell reportbug to attach a specific
file. This would avoid such issues and also make the bug reports much
easier to read.

I’m sure other packages would benefit as well, most notably

As for a possible implementaion, I could imagine either specific
keywords in the output of the script (e.g. [ATTACH filename]), or
outputting a list of filenames on another file descriptor, e.g. fd4. 

A simple, but not as powerful, solution would be to mention the files to
attach in the /usr/share/bug/$package/control file. 


- -- Package-specific info:
** Environment settings:
DEBEMAIL="nomeata at debian.org"
EMAIL="mail at joachim-breitner.de"
DEBFULLNAME="Joachim Breitner"

** /home/jojo/.reportbugrc:
reportbug_version "2.61"
mode expert
ui text
realname "Joachim Breitner"
email "nomeata at debian.org"
sign gpg

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

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                           0.7.21     Advanced front-end for dpkg
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-reportbug              4.1        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  exim4                         4.69-9     metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.69-9     lightweight Exim MTA (v4) daemon
ii  file                          5.00-1     Determines file type using "magic"
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  python-gnome2-extras          2.25.3-2   Extra Python bindings for the GNOM
ii  python-gtk2                   2.14.1-2   Python bindings for the GTK+ widge
pn  python-urwid                  <none>     (no description available)
pn  python-vte                    <none>     (no description available)

- -- no debconf information

Version: GnuPG v1.4.9 (GNU/Linux)


More information about the Reportbug-maint mailing list