Gnus development mailing list
 help / color / mirror / Atom feed
* Deleting an article on IMAP server
@ 2000-09-03  7:56 Arcady Genkin
  2000-09-03 14:13 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Arcady Genkin @ 2000-09-03  7:56 UTC (permalink / raw)


I have to go through this at least once every day.  I open an article
in an nnimap group, then leave it open and switch to doing something
else for a while.  Then when I come back, and try to delete the
article, I get an error (the following backtrace):

Signaling: (error "Process not open for writing" #<network connection "imap" (143 . "soup") state:exit>)
  process-send-string(#<network connection "imap" (143 . "soup") state:exit> "4089 UID STORE 972 +FLAGS (\\Deleted)\r\n")
  imap-send-command-1("4089 UID STORE 972 +FLAGS (\\Deleted)")
  imap-send-command("UID STORE 972 +FLAGS (\\Deleted)" nil)
  imap-send-command-wait("UID STORE 972 +FLAGS (\\Deleted)")
  imap-message-flags-add("972" "\\Deleted")
  nnimap-request-expire-articles((972) "mail/private" "soup" force)
  gnus-request-expire-articles((972) "nnimap+soup:mail/private" force)
  gnus-summary-delete-article(nil)
  call-interactively(gnus-summary-delete-article)

I guess the connection to the IMAP server expires, but that's just a
guess.  I have to tick the message, leave the group, re-enter it, and
delete the message.  This raises two questions:

1. Is this a bug or limitation of IMAP protocol/backend?
2. Is there a way to work around this without doing the
tick-exit-enter-delete sequence?

I'm using Gnus 5.8.7 under Xemacs 21.1.11 and UofW IMAP server.

Thanks!
-- 
Arcady Genkin
Don't read everything you believe.



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

* Re: Deleting an article on IMAP server
  2000-09-03  7:56 Deleting an article on IMAP server Arcady Genkin
@ 2000-09-03 14:13 ` Simon Josefsson
  2000-09-03 19:12   ` Arcady Genkin
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2000-09-03 14:13 UTC (permalink / raw)


Arcady Genkin <antipode@thpoon.com> writes:

> I open an article in an nnimap group, then leave it open and switch
> to doing something else for a while.  Then when I come back, and try
> to delete the article, I get an error (the following backtrace):

Could you try this patch?  Thanks.

	* gnus-sum.el (gnus-summary-delete-article): Check server.

Index: gnus-sum.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sum.el,v
retrieving revision 5.130
diff -w -u -u -w -r5.130 gnus-sum.el
--- gnus-sum.el	2000/08/14 08:11:10	5.130
+++ gnus-sum.el	2000/09/03 14:09:43
@@ -7740,6 +7740,8 @@
   (unless (gnus-check-backend-function 'request-expire-articles
 				       gnus-newsgroup-name)
     (error "The current newsgroup does not support article deletion"))
+  (unless (gnus-check-server (gnus-find-method-for-group gnus-newsgroup-name))
+    (error "Couldn't open server"))
   ;; Compute the list of articles to delete.
   (let ((articles (sort (copy-sequence (gnus-summary-work-articles n)) '<))
 	not-deleted)




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

* Re: Deleting an article on IMAP server
  2000-09-03 14:13 ` Simon Josefsson
@ 2000-09-03 19:12   ` Arcady Genkin
  0 siblings, 0 replies; 3+ messages in thread
From: Arcady Genkin @ 2000-09-03 19:12 UTC (permalink / raw)


Simon Josefsson <simon@josefsson.org> writes:

> > I open an article in an nnimap group, then leave it open and switch
> > to doing something else for a while.  Then when I come back, and try
> > to delete the article, I get an error (the following backtrace):
> 
> Could you try this patch?  Thanks.
> 
> 	* gnus-sum.el (gnus-summary-delete-article): Check server.

Thanks, Simon.  This seems to work now!
-- 
Arcady Genkin
Don't read everything you believe.



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

end of thread, other threads:[~2000-09-03 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-03  7:56 Deleting an article on IMAP server Arcady Genkin
2000-09-03 14:13 ` Simon Josefsson
2000-09-03 19:12   ` Arcady Genkin

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