From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76013 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Automatically processing plain text attachments Date: Wed, 26 Jan 2011 16:53:14 -0800 Organization: Programmerer Ingebrigtsen Message-ID: <8739of9ngl.fsf@gnus.org> References: <877hdvf11u.fsf@berkeley.edu> <87ei82otcm.fsf@gnus.org> <87vd1cew6o.fsf@berkeley.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296089646 28752 80.91.229.12 (27 Jan 2011 00:54:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 00:54:06 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24365@lists.math.uh.edu Thu Jan 27 01:54:02 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiG7d-0002pF-HA for ding-account@gmane.org; Thu, 27 Jan 2011 01:54:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PiG7U-0006RV-U0; Wed, 26 Jan 2011 18:53:52 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PiG7T-0006RJ-8A for ding@lists.math.uh.edu; Wed, 26 Jan 2011 18:53:51 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PiG7P-0006kz-1P for ding@lists.math.uh.edu; Wed, 26 Jan 2011 18:53:50 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PiG7M-0005i9-UF for ding@gnus.org; Thu, 27 Jan 2011 01:53:44 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PiG7L-0002ip-PY for ding@gnus.org; Thu, 27 Jan 2011 01:53:44 +0100 Original-Received: from baybryj.net ([198.144.208.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 01:53:43 +0100 Original-Received: from larsi by baybryj.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 01:53:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: baybryj.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Xxu9YclHfh1Jz/mbikvO1sGfHaE= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76013 Archived-At: Richard Lawrence writes: > In that case, would I be able to do what I want by installing a function > as the second element of my split rule in nnimap-split-rule? Would this > function be called in a buffer containing the entire message body? Yes, I think so. > Another option would be to do this semi-interactively, which may be what > I want anyway. Is it easier to call a hook on a message when it is > *read*, rather than when it is split? Yes, that's a much more controlled situation. There's a bazillion article mode hooks/functions you can use, depending on what's most convenient. > Where would I look to learn how to do these things? Is there a guide to > hacking somewhere? Or should I just dive into the Gnus code? I'd suggest looking at the manual for what hook to use, and then look at the code. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen