From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47387 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: How do I interrupt attachment downloading over imap? Date: Wed, 23 Oct 2002 23:09:51 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035407526 20996 80.91.224.249 (23 Oct 2002 21:12:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 21:12:06 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184SnJ-0005Rk-00 for ; Wed, 23 Oct 2002 23:12:01 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 184Slo-0001mz-00; Wed, 23 Oct 2002 16:10:29 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 23 Oct 2002 16:11:14 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA24997 for ; Wed, 23 Oct 2002 16:11:01 -0500 (CDT) Original-Received: (qmail 9615 invoked by alias); 23 Oct 2002 21:10:11 -0000 Original-Received: (qmail 9607 invoked from network); 23 Oct 2002 21:10:10 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 23 Oct 2002 21:10:10 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g9NL9tFu007678 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 23 Oct 2002 23:09:56 +0200 Original-To: Niklas Morberg Mail-Copies-To: nobody X-Hashcash: 0:021023:niklas.morberg@axis.com:06adf769cf520e5a X-Hashcash: 0:021023:ding@gnus.org:745b3242a317072b In-Reply-To: (Niklas Morberg's message of "Wed, 23 Oct 2002 11:30:34 +0200") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47387 Niklas Morberg writes: > Prerequisites: nnimap backend, latest gnus from cvs. > > Sometimes people send me large attachments. When I view > their message in gnus it will take a long time to download > the attachment. If, after having selected a message with a > large attachment, I want to abort the viewing of the message > pressing `C-g' only interrupts the download temporarily. > Once I select a different message to view, or exit the > group, the download is resumed. > > On a related note, pressing `R' or `r' in the Summary buffer > to reply to a message with an attachment will also force the > (oh so slow) download of the entire attachment, which seems > a bit unecessary. (This happens if the article is not > currently selected.) C-g only aborts Gnus' wait loop, the IMAP data is always received asynchronously in the background. Unfortunately, this means once started you can't abort it. A quick solution to this would be for nnimap to only retrieve blocks of say 50kb data in turn, which would make C-g abort after the current 50kb block finished downloading. A slower but better solution would be to make Gnus handle partial messages, I think it was Wes that described how this can be done with message/partial but I don't know if it has been implemented. > Is there a way to: > > a) Abort downloading of attachments once started? > b) Don't download attachments when replying to messages? Not without implementing those features.