🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #940

Colouring diff-part of an email

#940
From: Adam Sjøgren
Date: Wed, 06 Mar 2013 09:58
30 lines
3846 bytes
  Hi.

I am on a couple of mailing lists at work that receive an email per
commit in a source code repository.

Each email starts with some information about the commit - author, date,
revision, commit log message, and then the diff follows.

Has anyone written something that will colour an inline diff in an
email?

If I jump to the *Article* buffer and turn on diff-mode, the whole
buffer is coloured - which is a little much, headers become dull grey
etc.

I guess I just need some kind of washing, but I don't know quite where
to start, so I thought I'd ask if anyone already has solved the problem
:-)

I could change the email to be more MIMEish (inlining the diff-part),
but I think those of my colleagues who do not use Gnus would be annoyed
when their mail clients start to show the diff as an attachment.

  Best regards,

    Adam

-- 
 "Set out on a laughless day                                  Adam Sj�gren
  Like a troupe of clowns"                               asjo@koldfront.dk
Technical Details
Message-ID: <mailman.21536.1362563949.855.info-gnus-english@gnu.org>
Path: arc1-ca.pugleaf.net!g1ni60755wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!216.40.29.245.MISMATCH!novia!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 99bd902dcd,8af405563aa5bb78,start
X-Google-Attributes: gid99bd902dcd,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII
X-Received: by 10.180.183.180 with SMTP id en20mr2801711wic.3.1363061086010;
        Mon, 11 Mar 2013 21:04:46 -0700 (PDT)
Path: arc1-ca.pugleaf.net!g1ni60755wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!216.40.29.245.MISMATCH!novia!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!not-for-mail
From: asjo@koldfront.dk (Adam Sjøgren)
Newsgroups: gnu.emacs.gnus
Subject: Colouring diff-part of an email
Date: Wed, 06 Mar 2013 10:58:53 +0100
Organization: koldfront - analysis & revolution, Copenhagen, Denmark
Lines: 32
Approved: info-gnus-english@gnu.org
Message-ID: <mailman.21536.1362563949.855.info-gnus-english@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1362563950 25804 208.118.235.17 (6 Mar 2013 09:59:10 GMT)
X-Complaints-To: action@cs.stanford.edu
To: info-gnus-english@gnu.org
Envelope-to: info-gnus-english@gnu.org
X-Injected-Via-Gmane: http://gmane.org/
X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)
X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,
 Q(^@xk}n4Ou
 rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ
 ^St'=VZBR<gm`!Dj`dIpp?+$"$l_'JKDN\w-jB;fo0Qy}Tbw
OpenPGP: id=21BDE416; url=http://asjo.koldfront.dk/gpg.asc
Cancel-Lock: sha1:Ki3Nn95u8iGoH5YBHxzShnwYZBA=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 80.91.229.3
X-BeenThere: info-gnus-english@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Announcements and discussions for GNUS,
 the GNU Emacs Usenet newsreader \(in English\)"
 <info-gnus-english.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/info-gnus-english>
List-Post: <mailto:info-gnus-english@gnu.org>
List-Help: <mailto:info-gnus-english-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=subscribe>
Bytes: 3403
X-Original-Bytes: 3299
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit