Gnus development mailing list
 help / color / mirror / Atom feed
* How do I interrupt attachment downloading over imap?
@ 2002-10-23  9:30 Niklas Morberg
  2002-10-23 13:57 ` Wes Hardaker
  2002-10-23 21:09 ` Simon Josefsson
  0 siblings, 2 replies; 10+ messages in thread
From: Niklas Morberg @ 2002-10-23  9:30 UTC (permalink / raw)


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.)

Is there a way to:

a) Abort downloading of attachments once started?
b) Don't download attachments when replying to messages?

Niklas




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-23  9:30 How do I interrupt attachment downloading over imap? Niklas Morberg
@ 2002-10-23 13:57 ` Wes Hardaker
  2002-10-23 21:11   ` Simon Josefsson
  2002-10-23 21:09 ` Simon Josefsson
  1 sibling, 1 reply; 10+ messages in thread
From: Wes Hardaker @ 2002-10-23 13:57 UTC (permalink / raw)
  Cc: ding

>>>>> On Wed, 23 Oct 2002 11:30:34 +0200, Niklas Morberg <niklas.morberg@axis.com> said:

Niklas> a) Abort downloading of attachments once started?

Well, personally I use a ssh connection to my imap server so that when
I run into the problem you're seeing I can actually kill the ssh
client on my laptop, which closes the connection.  You're making me
glad I do things this way, as if it was a straight socket connection
from inside gnus itself I couldn't do this.

-- 
"The trouble with having an open mind, of course, is that people will
 insist on coming along and trying to put things in it."   -- Terry Pratchett



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-23  9:30 How do I interrupt attachment downloading over imap? Niklas Morberg
  2002-10-23 13:57 ` Wes Hardaker
@ 2002-10-23 21:09 ` Simon Josefsson
  1 sibling, 0 replies; 10+ messages in thread
From: Simon Josefsson @ 2002-10-23 21:09 UTC (permalink / raw)
  Cc: ding

Niklas Morberg <niklas.morberg@axis.com> 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.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-23 13:57 ` Wes Hardaker
@ 2002-10-23 21:11   ` Simon Josefsson
  2002-10-30  7:34     ` Niklas Morberg
  0 siblings, 1 reply; 10+ messages in thread
From: Simon Josefsson @ 2002-10-23 21:11 UTC (permalink / raw)
  Cc: Niklas Morberg, ding

Wes Hardaker <wes@hardakers.net> writes:

>>>>>> On Wed, 23 Oct 2002 11:30:34 +0200, Niklas Morberg <niklas.morberg@axis.com> said:
>
> Niklas> a) Abort downloading of attachments once started?
>
> Well, personally I use a ssh connection to my imap server so that when
> I run into the problem you're seeing I can actually kill the ssh
> client on my laptop, which closes the connection.  You're making me
> glad I do things this way, as if it was a straight socket connection
> from inside gnus itself I couldn't do this.

Killing the *nnimap* server buffer do this.  `C' in the server buffer
waits for the server to respond to a LOGOUT command that is sent, so
it doesn't work here.  A command C-u C that forced the backend to
disconnect could perhaps be useful.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-23 21:11   ` Simon Josefsson
@ 2002-10-30  7:34     ` Niklas Morberg
  2002-10-30 10:17       ` Kai Großjohann
  0 siblings, 1 reply; 10+ messages in thread
From: Niklas Morberg @ 2002-10-30  7:34 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Killing the *nnimap* server buffer do this. `C' in the
> server buffer waits for the server to respond to a LOGOUT
> command that is sent, so it doesn't work here. A command
> C-u C that forced the backend to disconnect could perhaps
> be useful.

Hm. I don't have an nnimap server buffer. What should I do
to make it appear (so that I later kan kill it and stop the
download). Or did I misunderstand something here?

Niklas




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-30  7:34     ` Niklas Morberg
@ 2002-10-30 10:17       ` Kai Großjohann
  2002-10-30 10:58         ` Niklas Morberg
  0 siblings, 1 reply; 10+ messages in thread
From: Kai Großjohann @ 2002-10-30 10:17 UTC (permalink / raw)


Niklas Morberg <niklas.morberg@axis.com> writes:

> Hm. I don't have an nnimap server buffer. What should I do
> to make it appear (so that I later kan kill it and stop the
> download). Or did I misunderstand something here?

Maybe the buffer name starts with space.  You have to use C-x b to
switch to it, the other ways will hide buffer names starting with space.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-30 10:17       ` Kai Großjohann
@ 2002-10-30 10:58         ` Niklas Morberg
  2002-10-30 11:20           ` Kai Großjohann
  2002-10-30 12:40           ` dme
  0 siblings, 2 replies; 10+ messages in thread
From: Niklas Morberg @ 2002-10-30 10:58 UTC (permalink / raw)
  Cc: ding

kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> Maybe the buffer name starts with space. You have to use
> C-x b to switch to it, the other ways will hide buffer
> names starting with space.

Nope, the buffer is not here. I use iswitchb, so starting
spaces should not affect finding the buffer with typing only
"imap", right? I only find the *imap-log* buffer when doing
this here...

Niklas




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-30 10:58         ` Niklas Morberg
@ 2002-10-30 11:20           ` Kai Großjohann
  2002-10-30 12:40           ` dme
  1 sibling, 0 replies; 10+ messages in thread
From: Kai Großjohann @ 2002-10-30 11:20 UTC (permalink / raw)
  Cc: ding

Niklas Morberg <niklas.morberg@axis.com> writes:

> Nope, the buffer is not here. I use iswitchb, so starting
> spaces should not affect finding the buffer with typing only
> "imap", right? I only find the *imap-log* buffer when doing
> this here...

Buffers whose name starts with space are hidden.  iswitchb does not
show hidden buffers, I think.

Please try M-x switch-to-buffer RET.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-30 10:58         ` Niklas Morberg
  2002-10-30 11:20           ` Kai Großjohann
@ 2002-10-30 12:40           ` dme
  2002-10-30 14:44             ` Niklas Morberg
  1 sibling, 1 reply; 10+ messages in thread
From: dme @ 2002-10-30 12:40 UTC (permalink / raw)


* niklas.morberg@axis.com [2002-10-30 10:58:10]
> Nope, the buffer is not here. I use iswitchb, so starting
> spaces should not affect finding the buffer with typing only
> "imap", right? I only find the *imap-log* buffer when doing
> this here...

The default configuration of iswitchb is to ignore buffers that begin
with space:

(defcustom iswitchb-buffer-ignore
  '("^ ")
  "*List of regexps or functions matching buffer names to ignore.
For example, traditional behavior is not to list buffers whose names begin
with a space, for which the regexp is `^ '.  See the source file for
example functions that filter buffernames."
  :type '(repeat regexp)
  :group 'iswitchb)





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How do I interrupt attachment downloading over imap?
  2002-10-30 12:40           ` dme
@ 2002-10-30 14:44             ` Niklas Morberg
  0 siblings, 0 replies; 10+ messages in thread
From: Niklas Morberg @ 2002-10-30 14:44 UTC (permalink / raw)
  Cc: ding

dme@dme.org writes:

> The default configuration of iswitchb is to ignore buffers
> that begin with space:

Ah, that explains it -- I did not know this. Buffer found.
Thank you very much. Sorry for the wasted bandwidth, but at
least one person (i.e. me) have learnt something new today.

Niklas




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-10-30 14:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23  9:30 How do I interrupt attachment downloading over imap? Niklas Morberg
2002-10-23 13:57 ` Wes Hardaker
2002-10-23 21:11   ` Simon Josefsson
2002-10-30  7:34     ` Niklas Morberg
2002-10-30 10:17       ` Kai Großjohann
2002-10-30 10:58         ` Niklas Morberg
2002-10-30 11:20           ` Kai Großjohann
2002-10-30 12:40           ` dme
2002-10-30 14:44             ` Niklas Morberg
2002-10-23 21:09 ` Simon Josefsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).