From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59942 Path: main.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: fetch only a portion of an article? (nnimap mainly) Date: 4 Mar 2005 14:52:15 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <4nfyzbi3yo.fsf@lifelogs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109966092 6038 80.91.229.2 (4 Mar 2005 19:54:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2005 19:54:52 +0000 (UTC) Original-X-From: ding-owner+M8483@lists.math.uh.edu Fri Mar 04 20:54:52 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7Iol-0002Ds-5u for ding-account@gmane.org; Fri, 04 Mar 2005 20:50:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1D7Iqn-00016M-00; Fri, 04 Mar 2005 13:52:41 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1D7Iqf-00016E-00 for ding@lists.math.uh.edu; Fri, 04 Mar 2005 13:52:33 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1D7IqY-0001Zo-Rl for ding@lists.math.uh.edu; Fri, 04 Mar 2005 13:52:27 -0600 Original-Received: from clifford.bwh.harvard.edu ([134.174.9.41] helo=mail.bwh.harvard.edu) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1D7IqV-0004b9-00 for ; Fri, 04 Mar 2005 20:52:23 +0100 Original-Received: (qmail 12405 invoked from network); 4 Mar 2005 19:50:10 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) (internal?.8?user:?tzz@[134.174.8.118]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 4 Mar 2005 19:50:10 -0000 Mail-Followup-To: "Ding Mailing List" Original-To: "Ding Mailing List" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:050304:ding@gnus.org::rOB/gBZpovrif0iD:000012Ew User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on sysblade0.bwh.harvard.edu X-Spam-Status: No, score=-1.6 required=5.8 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8483@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: main.gmane.org gmane.emacs.gnus.general:59942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59942 In Gnus, you call gnus-request-article to get an article. What if you know you only need the first N lines (or bytes)? Can nnimap.el support that? I can change the gnus-request-article function to accomodate such an option, and it will be passed to nnimap-request-article. I just don't know enough about the IMAP protocol to implement it. I need this specifically for nnimap interactions, but I'm sure it can be implemented for other backends as well. It's useful, for instance, when summarizing something about the contents of the article, but you don't want to fetch more than N lines of it. I would use it to summarize qmail bounce reports - right now, I have to fetch the whole article just because I need to see what's in the first 10 lines. Ted