johnsu01 ([info]johnsu01) wrote,
@ 2008-06-08 03:19:00
Previous Entry  Add to memories!  Share this!  Next Entry
Entry tags:emacs, gnus, new york times

Stripping ads from NYT e-mails with Gnus

I wrote a couple years ago about stripping Yahoo banners from mailing list messages in Gnus. That bit is still in my configuration, and still working.

For reading the New York Times, I've recently switched away from RSS back to their headlines e-mail service. This is great, except they stick advertisements in the middle of the e-mails, and have a fair amount of boilerplate junk at the end. So I've added this to my ~/.gnus file:

(setq gnus-article-banner-alist
      '((nyt . "\\(^------------ ADVERTISEMENT -------------\\(.\\|
\\)*?----------------------------------------
\\)\\|\\(Get home delivery of The New York Times\\(.\\|
\\)*?----------------------------------------\\)
\\|\\(About This E-Mail\\(.\\|
\\)*\\)")))

The NYT mails get split into different groups. For each of those groups, I add (banner . nyt) to the group's parameters (accessible via G p on the group's name).

The result is a much more readable and ad-free e-mail.



Image by [info]clover71. Join the contest in [info]remixed!
Create an Account
Forgot your login or password?
Log in with OpenID Login with Facebook
English • Español • Deutsch • Русский…