johnsu01 (johnsu01) wrote,
johnsu01
johnsu01

  • Music:

Cutting out the Yahoo Groups banner in Gnus

One of the nice things about Gnus is that you can have it automatically remove junk from the messages you read. Such junk includes banner advertisements at the bottom of messages. One obnoxious example is the block that gets tagged on to the bottom of every message that comes from a Yahoo! Groups mailing list. I read a few such mailing lists, including the one for del.icio.us. It looks like:

Yahoo! Groups Links                                                                                                               
                                                                                                                                                 
<*> To visit your group on the web, go to:                                                                                                       
    http://groups.yahoo.com/group/ydn-delicious/                                                                                                 
                                                                                                                                                 
<*> Your email settings:                                                                                                                         
    Individual Email | Traditional                                                                                                               
                                                                                                                                                 
<*> To change settings online go to:                                                                                                             
    http://groups.yahoo.com/group/ydn-delicious/join                                                                                             
    (Yahoo! ID required)                                                                                                                         
                                                                                                                                                 
<*> To change settings via email:                                                                                                                
    mailto:ydn-delicious-digest@yahoogroups.com                                                                                                  
    mailto:ydn-delicious-fullfeatured@yahoogroups.com                                                                                            
                                                                                                                                                 
<*> To unsubscribe from this group, send an email to:                                                                                            
    ydn-delicious-unsubscribe@yahoogroups.com                                                                                                    
                                                                                                                                                 
<*> Your use of Yahoo! Groups is subject to:                                                                                                     
    http://docs.yahoo.com/info/terms/

Ugh. A lot of times that's longer than the message itself.

So, for the groups that those messages come to, I edited the banner parameter (by typing G c on the group name) to be a regexp:

\(^Yahoo! Groups Links\(.\|                                                                                                                      
\)*http://docs\.yahoo\.com/info/terms/\)

And now I don't have to see the extra noise. This could be made more specific, but I think it's pretty safe.

hober's old post got me started.

Tags: del.icio.us, emacs, gnus, regexps, yahoo
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments