[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail to 123456-quiet@bugs.debian.org



Hi.

I've written a Perl[0] script that let me "subscribe" to bugs by
downloading the mbox file (and applying changes when needed).

   [0] http://javierlinares.com/debian/files/bug2mbox

One example could be (look at the sizes):

  01:07 javier@nomada:~/debian/bugs$ l   
  total 52
  -rw-r--r--    1 javier   javier      11237 mar  9 13:13 118787.mbox
  -rw-r--r--    1 javier   javier      10968 mar  8 17:36 151847.mbox
  -rw-r--r--    1 javier   javier      18104 mar  8 17:36 172141.mbox
  -rwxr-xr-x    1 javier   javier      10807 mar 10 01:05 bug2mbox
  01:07 javier@nomada:~/debian/bugs$ ./bug2mbox --update
  bug #118787: Updated (no new messages).
  bug #151847: Updated (3 new messages).
  bug #172141: Updated (2 new messages).
  01:07 javier@nomada:~/debian/bugs$ l
  total 87
  -rw-r--r--    1 javier   javier      11237 mar  9 13:13 118787.mbox
  -rw-r--r--    1 javier   javier      25261 mar 10 01:07 151847.mbox
  -rw-r--r--    1 javier   javier      38221 mar 10 01:07 172141.mbox
  -rwxr-xr-x    1 javier   javier      10807 mar 10 01:05 bug2mbox
  01:07 javier@nomada:~/debian/bugs$ 
 
Actually, the script let me download the mbox files attending to:

         --get <bug1> <bug2> ... <bugN>
         --package <package>, -p <package>
         --maintainer <maintainer>, -m <maintainer>
         --source <package>, -s <package>
         --from <submitter>, -f <submitter>

If you use Mutt you can insert something like:

	mailboxes `echo $HOME/debian/bugs/*.mbox`

to your ~/.muttrc and and Mutt will tell you when you have new messages in
the bugs you are following. The script don't override the messages you
already have, so read messages will go on read messages after updating and,
for example, you can have permanent flagged messages.

I'm not a professional programmer and I'm not a Perl programmer, it can be
improved. And I don't think it's _the_ solution but, at least, that's my
solution :-).

Bye.

-- 
 .''`.      Javier Linares          http://javierlinares.com
: :'  :   javier@javierlinares.com     jlinares@adala.org 
`. `'`
  `-  Debian - When code matters more than commercials
  

Attachment: pgpztbK6yQRri.pgp
Description: PGP signature


Reply to: