Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Salvatore Bonaccorso
Hi 

On Mon, Jan 07, 2008 at 03:29:21PM +0100, Amaya wrote:
 Hamish Moffatt wrote:
  In case it's useful to anyone, here's a quick hack I put together for
  easy BTS spam reporting from mutt.
 
 That is incredibly useful, is tehre any similar tool to report spam
 delivered through the Debian Mailing Lists?
 
 Sorry if this has been answered before, I am just starting to keep up
 with mail backlog.

In Bits of the listmasters in October 2007, there was some idea how
to help against spam on lists.

http://lists.debian.org/debian-devel-announce/2007/10/msg4.html

There Martin Zobel-Helas wrote the following:
---[snip]---
[...]
   * Report spam that gets to you through our filters to
 [EMAIL PROTECTED] Please leave all the headers
 untouched. The best method is to bounce (as in mutt) them. There is a
 plugin for thunder^Wicesomething to do that at
 http://mailredirect.mozdev.org/ . DO NOT do this automagically. If
 you want to help us, you must make personally sure that the things
 you report are REALLY spam.
[...]
---[snap]---

Is this, what you are looking for?

Best regards,
Salvatore


signature.asc
Description: Digital signature


Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Kumar Appaiah
On Mon, Jan 07, 2008 at 03:29:21PM +0100, Amaya wrote:
 That is incredibly useful, is tehre any similar tool to report spam
 delivered through the Debian Mailing Lists?
 
 Sorry if this has been answered before, I am just starting to keep up
 with mail backlog.

Well, the steps are simply:

1. Scroll to the message which is spam.
2. Type `b', write the address as [EMAIL PROTECTED]
3. Say yes.

I think a single keystroke can be scripted for this. I'll try later
tonight, though someone else is welcome to do this ahead of me. :-)

HTH.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


signature.asc
Description: Digital signature


Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Kumar Appaiah
On Tue, Jan 08, 2008 at 04:26:30PM +0530, Kumar Appaiah wrote:
 macro index , bounce-message[EMAIL PROTECTED]
 macro index , bounce-message[EMAIL PROTECTED]

OK, the second index should be `pager'. And I just tested it on a real
spam with report-listspam@, and it works! :-)

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


signature.asc
Description: Digital signature


Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Kumar Appaiah
On Tue, Jan 08, 2008 at 12:41:23PM +0200, Alexander Schmehl wrote:
 Would be cool, if your script would then automatically detect, if the
 mail was received via bts or via a list and bounce it to the correct
 report address.

Er, that's too cool, but here's a simple one to start. Just add this
to your .muttrc:

macro index , bounce-message[EMAIL PROTECTED]
macro index , bounce-message[EMAIL PROTECTED]

Of course, change `,' to whatever key you want, and [EMAIL PROTECTED] to
[EMAIL PROTECTED] If I press `,', it asks me if I'm sure I
wish to bounce it, which is good to stop myself if I pressed `,' by
mistake.

This could be combined with some hook magic to detect the origin of
spam, but I'll think about that later. For now, this seems enough for me.

/me spanks myself for not having done this earlier.

HTH.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


signature.asc
Description: Digital signature


Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Alexander Schmehl

Hi!

Am 8.1.2008 schrieb Kumar Appaiah [EMAIL PROTECTED]:

[  reporting spam to listmasters and bts admins ]

I think a single keystroke can be scripted for this. I'll try later
tonight, though someone else is welcome to do this ahead of me. :-)

Would be cool, if your script would then automatically detect, if the
mail was received via bts or via a list and bounce it to the correct
report address.

BTW:  Where should spam be reported, which was received via lists.d.o
from the bts, e.g. via the bugs-rc or wnpp list?


Yours sincerely,
  Alexander



Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Javier Fernandez-Sanguino
 Am 8.1.2008 schrieb Kumar Appaiah [EMAIL PROTECTED]:
 Would be cool, if your script would then automatically detect, if the
 mail was received via bts or via a list and bounce it to the correct
 report address.

I do not suggest you report automatically, as you will not review
false positives. I actually put spam (as scored by SA) coming from the
BTS or mailing list in different folders (through procmail) and then
bounce those, after manually reviewing them, using a muttrc hook.

Regards

Javier


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



Re: reporting BTS spam easily from Mutt

2008-01-08 Thread Alexander Schmehl

Am 8.1.2008 schrieb Javier Fernandez-Sanguino [EMAIL PROTECTED]:

I do not suggest you report automatically, as you will not review
false positives.

That wasn't my plan; acutally listmasters strongly discourage from doing
so. Problem was, that I sorted spam to one directory, and was to lazy,
to dig out where I got it from, so I didn't reported it, but ...

 I actually put spam (as scored by SA) coming from the
BTS or mailing list in different folders (through procmail) and then
bounce those, after manually reviewing them, using a muttrc hook.

... sorting it into different directories would solve my problem, too. 
Thanks :)


Yours sincerely,
  Alexander, still being holiday lazy



Re: reporting BTS spam easily from Mutt

2008-01-07 Thread Amaya
Hamish Moffatt wrote:
 In case it's useful to anyone, here's a quick hack I put together for
 easy BTS spam reporting from mutt.

That is incredibly useful, is tehre any similar tool to report spam
delivered through the Debian Mailing Lists?

Sorry if this has been answered before, I am just starting to keep up
with mail backlog.

Thanks, Hamish!

-- 
  ยท''`. Cheap beer  cheap chocolate - The real deal
 : :' :   
 `. `'   Proudly running Debian GNU/Linux (unstable)
   `- www.amayita.com  www.malapecora.com  www.chicasduras.com


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



Re: reporting BTS spam easily from Mutt

2007-12-12 Thread David Nusinow
On Tue, Dec 11, 2007 at 09:44:08PM +1100, Hamish Moffatt wrote:
 In case it's useful to anyone, here's a quick hack I put together for
 easy BTS spam reporting from mutt.
 
 Firstly a keybinding for .muttrc:
 
 macro index B enter-commandunset 
 wait_key\npipe-entrybugspam\nenter-commandset wait_key\ndelete-message
 macro pager B enter-commandunset 
 wait_key\npipe-entrybugspam\nenter-commandset wait_key\ndelete-message
 
 Secondly, a script called bugspam which goes somewhere in $PATH:
 
 #!/usr/bin/perl
 
 # Read message on stdin, get Bug#nnn from subject line then call
 # bts reportspam to submit a spam report
 
 $bug = 0;
 
 while() {
 if (m/^Subject: (?:\[.*\])?\s*Bug#(\d+): /) {
 $bug = $1;
 last;
 }
 }
 
 if ($bug) {
 print Reporting spam in bug $bug\n;
 system bts reportspam $bug;
 } else {
 print Bug number not found from subject line\n;
 }
 
 (And install devscripts to get the bts program.)
 
 Now, hit B on bug spam and be merry.
 
 Future enhancements might include reopening of occasional [EMAIL PROTECTED]
 spam incidents.
 
 
 I suppose the trend these days would be to blog this rather than post,
 but I don't have one.

I use mutt but I don't have the library of scripts that I'm sure many DD's
have to deal with debian-specific stuff, although I'd love one. Would
anyone besides me be interested in pooling mutt scripts useful for DD's on
the wiki or something?

 - David Nusinow


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



Re: reporting BTS spam easily from Mutt

2007-12-12 Thread Stephen Gran
This one time, at band camp, David Nusinow said:
 
 I use mutt but I don't have the library of scripts that I'm sure many DD's
 have to deal with debian-specific stuff, although I'd love one. Would
 anyone besides me be interested in pooling mutt scripts useful for DD's on
 the wiki or something?

Please do.
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Re: reporting BTS spam easily from Mutt

2007-12-12 Thread Stefano Zacchiroli
On Wed, Dec 12, 2007 at 07:20:01PM -0500, David Nusinow wrote:
 I use mutt but I don't have the library of scripts that I'm sure many DD's
 have to deal with debian-specific stuff, although I'd love one. Would
 anyone besides me be interested in pooling mutt scripts useful for DD's on
 the wiki or something?

I believe this kind of stuff should go into devscripts (maybe not in
/usr/bin/ if people fear polluting that namespace to much, but still
into devscripts).  Please file wishlist bugreports against it, with
pointers to the relevant code.

Cheers.

-- 
Stefano Zacchiroli -*- PhD in Computer Science ... now what?
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48)  Zack: e la demo dema ?/\All one has to do is hit the
(15:57:15)  Bac: no, la demo scema\/right keys at the right time


signature.asc
Description: Digital signature