From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75944 Path: news.gmane.org!not-for-mail From: Richard Lawrence Newsgroups: gmane.emacs.gnus.general Subject: Re: Automatically processing plain text attachments Date: Tue, 25 Jan 2011 09:21:19 -0800 Message-ID: <87vd1cew6o.fsf@berkeley.edu> References: <877hdvf11u.fsf@berkeley.edu> <87ei82otcm.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295975866 12706 80.91.229.12 (25 Jan 2011 17:17:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2011 17:17:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24296@lists.math.uh.edu Tue Jan 25 18:17:42 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 1PhmWS-0004Eh-Ca for ding-account@gmane.org; Tue, 25 Jan 2011 18:17:40 +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 1PhmWK-0005Vz-WA; Tue, 25 Jan 2011 11:17:33 -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 1PhmWJ-0005Vr-RZ for ding@lists.math.uh.edu; Tue, 25 Jan 2011 11:17:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PhmWF-0007VZ-Pb for ding@lists.math.uh.edu; Tue, 25 Jan 2011 11:17:31 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PhmWE-0006gy-BY for ding@gnus.org; Tue, 25 Jan 2011 18:17:26 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PhmWC-00042c-Vy for ding@gnus.org; Tue, 25 Jan 2011 18:17:25 +0100 Original-Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jan 2011 18:17:24 +0100 Original-Received: from richard.lawrence by c-67-164-33-170.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jan 2011 18:17:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-164-33-170.hsd1.ca.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:jjwZmLLlQhMs3ED076Y+1tqVTAQ= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75944 Archived-At: Lars Ingebrigtsen writes: > Richard Lawrence writes: > >> Perhaps my question boils down to: what hooks are available in Gnus that >> would allow me batch process the full content of these paper-submission >> emails at the time they are split from my inbox (without having to >> download the full content of *every* mail, e.g., by setting >> nnimap-split-download-body)? > > Hm... I don't think there's any easy way to hook that up. The > -download-body thing is done sort of "top level" before noticing what > groups the articles are supposed to go to. I guess it wouldn't be *too* big a deal to download the body of all messages...I don't get that much mail, thanks to the combination of Gnus and Gmane... 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? 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? > The only this that occurs to me immediately is to look at the > `nnmail-split-trace' variable after the split has finished. If new > messages has shown up in your special group, then do, er, stuff based on > that. For instance, request the new messages one by one, and run some > filtering stuff... 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? > It's just a small matter of programming. :-) Indeed. Thanks for your help, Lars! Richard