Bug#332541: bug: new script: fetch bug mbox from bugs.debian.org and display it in mutt.

2005-10-07 Thread Julian Gilbey
On Fri, Oct 07, 2005 at 03:10:04AM +0200, Christoph Berg wrote:
 Re: Julian Gilbey in [EMAIL PROTECTED]
   The attached patch includes a very simple, yet very useful script that
   fetches a box report mbox and displays it in mutt.
  
  How about:
  
  bts --mbox show 123456
 
 Ah, nice :) I should have read the bts manpage more carefully.
 
 Would it make sense to make a symlink bug - bts that makes bts use
 these arguments per default? (I use the script quite often and would
 probably make an alias otherwise.)

There used to be a program called bug in Debian for reporting bugs, so
best not.

 Alternatively, bts 123456 would be a handy syntax.

Too much possibility of confusion and semantical errors.

 I can write a patch for either solution. What do you think?

If you want it, write a one line script and put it in your personal
~/bin!

   Julian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#332541: bug: new script: fetch bug mbox from bugs.debian.org and display it in mutt.

2005-10-06 Thread Christoph Berg
Package: devscripts
Version: 2.9.7
Severity: wishlist
Tags: patch

Hi.

The attached patch includes a very simple, yet very useful script that
fetches a box report mbox and displays it in mutt.

The patch is against my the devscripts version that already includes
the dget script. I can create another patch without that, if needed.

Please consider adding that script - thanks.

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/
Binärdateien /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/.Makefile.swp and 
/srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/.Makefile.swp sind verschieden.
diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/Makefile 
/srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/Makefile
--- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/Makefile   2005-10-05 
18:46:08.0 +0200
+++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/Makefile   2005-10-07 
02:03:53.0 +0200
@@ -8,7 +8,7 @@
 SH_FILES = cvs-debi.sh cvs-debrelease.sh debclean.sh debrelease.sh \
debrsign.sh debsign.sh dpkg-genbuilddeps.sh mergechanges.sh \
tagpending.sh uscan.sh uupdate.sh wnpp-alert.sh whodepends.sh \
-   annotate-output.sh archpath.sh deb-reversion.sh
+   annotate-output.sh archpath.sh deb-reversion.sh bug.sh
 
 LIBS = libvfork.so.0
 
@@ -20,7 +20,7 @@
 EXAMPLES = conf.default
 
 MAN1S = $(SCRIPTS:=.1) debc.1 cvs-debc.1 devscripts.1
-GEN_MAN1S = bts.1 svnpath.1 debcommit.1 deb-reversion.1 dget.1
+GEN_MAN1S = bts.1 svnpath.1 debcommit.1 deb-reversion.1 dget.1 bug.1
 MAN5S = devscripts.conf.5
 MANS_fr_DIR = po4a/fr
 MAN1S_fr = $(subst $(MANS_fr_DIR)/,,$(wildcard $(MANS_fr_DIR)/*.1))
diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/README 
/srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/README
--- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/README 2005-10-05 18:49:42.0 
+0200
+++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/README 2005-10-07 02:21:00.0 
+0200
@@ -27,6 +27,9 @@
   accessing the BTS, both to send mails to [EMAIL PROTECTED] and
   to access the web pages of the BTS.
 
+- bug [wget, mutt]: fetch bug mbox from bugs.debian.org and display it
+  in mutt
+
 - checkbashisms: checks whether a /bin/sh script uses any common
   bash-specific features
 
diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.pl 
/srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.pl
--- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.pl 1970-01-01 01:00:00.0 
+0100
+++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.pl 2005-10-07 02:17:18.0 
+0200
@@ -0,0 +1,52 @@
+# Display bug mbox from bugs.debian.org in mutt
+# (c) 2005 Christoph Berg [EMAIL PROTECTED]
+# usage: bug number
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+=pod
+
+=head1 NAME
+
+bug -- Display bug mbox from bugs.debian.org in mutt
+
+=head1 SYNOPSIS
+
+=over
+
+=item Bbug Ibug-number
+
+=back
+
+=head1 DESCRIPTION
+
+Bbug takes a bug number and fetches the bug report mbox from bugs.debian.org.
+The mbox is displayed using mutt.
+When formail/procmail is installed, the messages get Reply-To headers pointing
+back to [EMAIL PROTECTED]
+
+=head1 OPTIONS
+
+Bbug does not have options.
+
+=head1 AUTHORS
+
+=over
+
+=item Christoph Berg [EMAIL PROTECTED] (Code)
+
+=item Adeodato Sim� [EMAIL PROTECTED] (Ideas)
+
+=back
+
diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.sh 
/srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.sh
--- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.sh 1970-01-01 01:00:00.0 
+0100
+++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.sh 2005-10-07 02:15:44.0 
+0200
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Display bug mbox from bugs.debian.org in mutt
+# (c) 2005 Christoph Berg [EMAIL PROTECTED]
+# usage: bug number
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# 2005-10-07 cb: initial release
+
+if [ -x /usr/bin/wget ] ; then
+   WGET=wget -q -O -
+elif [ -x 

Bug#332541: bug: new script: fetch bug mbox from bugs.debian.org and display it in mutt.

2005-10-06 Thread Julian Gilbey
On Fri, Oct 07, 2005 at 02:31:59AM +0200, Christoph Berg wrote:
 Package: devscripts
 Version: 2.9.7
 Severity: wishlist
 Tags: patch
 
 Hi.
 
 The attached patch includes a very simple, yet very useful script that
 fetches a box report mbox and displays it in mutt.

P.S. Thanks for the idea!

   Julian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#332541: bug: new script: fetch bug mbox from bugs.debian.org and display it in mutt.

2005-10-06 Thread Christoph Berg
Re: Julian Gilbey in [EMAIL PROTECTED]
  The attached patch includes a very simple, yet very useful script that
  fetches a box report mbox and displays it in mutt.
 
 How about:
 
 bts --mbox show 123456

Ah, nice :) I should have read the bts manpage more carefully.

Would it make sense to make a symlink bug - bts that makes bts use
these arguments per default? (I use the script quite often and would
probably make an alias otherwise.)

Alternatively, bts 123456 would be a handy syntax.

I can write a patch for either solution. What do you think?

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/


signature.asc
Description: Digital signature