unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* "no process" gnus bug when moving messages from nnml to imap folder
@ 2011-02-03  9:47 Giorgos Keramidas
  2011-02-03 14:18 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 26+ messages in thread
From: Giorgos Keramidas @ 2011-02-03  9:47 UTC (permalink / raw)
  To: emacs-devel

There's something broken in Gnus with `B m' in nnml->imap in the latest git
snapshot of Emacs I downloaded and rebuilt last night:

  (version)
  => "GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-02-01 on gkeramidas"

I tried this afternoon to copy some messages from my local nnml archive
to imap folders at Gmail.  Every time I type 'g' the imap server of
Gmail is correctly contacted, and new messages appear fine.  But when I
am trying from the summary buffer of an nnml folder to move a message by
typing `B m' and select an imap folder as the target group, I get the
same backtrace:

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Backtrace from toggle-debug-on-error...

    Debugger entered--Lisp error: (error "Buffer *nnimap imap.gmail.com 993  *nntpd**<4> has no process")
      process-send-string(nil "177 EXAMINE \"archive/2001\"^M\n")
      nnimap-send-command("EXAMINE %S" "archive/2001")
      nnimap-find-article-by-message-id("archive/2001" "<200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>^M, <200110022311.f92NBXI04280@mailsrv.otenet.gr>")
      nnimap-request-accept-article("archive/2001" "gmail" t)
      gnus-request-accept-article("nnimap+gmail:archive/2001" nil t t)
      eval((gnus-request-accept-article "nnimap+gmail:archive/2001" (quote nil) t t))
      nnml-request-move-article(2104 "mail.archive-2001" "" (gnus-request-accept-article "nnimap+gmail:archive/2001" (quote nil) t t) t nil)
      gnus-request-move-article(2104 "nnml:mail.archive-2001" "" (gnus-request-accept-article "nnimap+gmail:archive/2001" (quote nil) t t) t nil)
      gnus-summary-move-article(nil)
      call-interactively(gnus-summary-move-article nil nil)

Trying a few things to see what's going on, I could see the following...

    ;; Part 1. Before the attempt that returned the <4> buffer...

    ELISP> (defun gker/buffer-process-alist ()
    	 (do ((buffers (buffer-list) (cdr buffers))
    	      (result nil))
    	     ((null buffers) result)
    	   (let* ((b (car buffers))
    		  (p (or (get-buffer-process b) :no-process)))
    	     (add-to-list 'result (cons b p)))))
    gker/buffer-process-alist
    ELISP> (gker/buffer-process-alist)
    ((#<buffer *nnimap imap.gmail.com 993  *nntpd**<2>> . :no-process)
     (#<buffer  *DOC*> . :no-process)
     (#<buffer  *nnml move*> . :no-process)
     (#<buffer  *copy article*> . :no-process)
     (#<buffer .newsrc-dribble> . :no-process)
     (#<buffer *Article nnml:mail.archive-2001*> . :no-process)
     (#<buffer  *Original Article nnml:mail.archive-2001*> . :no-process)
     (#<buffer *imap log*> . :no-process)
     (#<buffer  *gnus work*> . :no-process)
     (#<buffer *gnus trace*> . :no-process)
     (#<buffer  *Gnus agent overview*> . :no-process)
     (#<buffer  *nntpd*> . :no-process)
     (#<buffer  *Echo Area 1*> . :no-process)
     (#<buffer  *Echo Area 0*> . :no-process)
     (#<buffer  *code-conversion-work*> . :no-process)
     (#<buffer  *Minibuf-0*> . :no-process)
     (#<buffer nnimap.el.gz> . :no-process)
     (#<buffer *nnimap imap.gmail.com 993  *nntpd**> . :no-process)
     (#<buffer *nnimap imap.gmail.com nil  *nntpd**> . :no-process)
     (#<buffer *nnimap imap.gmail.com nil  *nntpd**<2>> . #<process *nnimap*<1>>)
     (#<buffer *Group*> . :no-process)
     (#<buffer *nnimap imap.gmail.com 993  *nntpd**<3>> . :no-process)
     (#<buffer *Ibuffer*> . :no-process)
     (#<buffer *Summary nnml:mail.archive-2001*> . :no-process)
     (#<buffer *Help*> . :no-process)
     (#<buffer *Messages*> . :no-process)
     (#<buffer  *Minibuf-1*> . :no-process)
     (#<buffer *scratch*> . :no-process)
     (#<buffer *ielm*> . #<process ielm>))

    ELISP> (nnimap-buffer)
    #<buffer *nnimap imap.gmail.com 993  *nntpd**<3>>
    ELISP> nnimap-connection-alist
    ((#<buffer  *nntpd*> #<buffer *nnimap imap.gmail.com 993  *nntpd**<3>>))

So at this point `nnimap-connection-alist' is already broken, because it
points to the "*nnimap imap.gmail.com 993  *nntpd**<3>>" buffer, which
has no associated process.  Typing `B m' to move a message throws the
backtrace I showed earlier, and `nnimap-connection-alist' is updated to
point to _another_ buffer, with an increased <4> number.  This new
buffer is also detached from the imap process, so it isn't possible to
do anything with the new `nnimap-connection-alist'.

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Part 2. After trying `B m' to move a message from a local nnml group
    ;; to an imap group at my gmail account, I got the backtrace at the
    ;; start of this message, and...

    ELISP> (nnimap-buffer)
    #<buffer *nnimap imap.gmail.com 993  *nntpd**<4>>

    ELISP> nnimap-connection-alist
    ((#<buffer  *nntpd*> #<buffer *nnimap imap.gmail.com 993  *nntpd**<4>>))

    ;; Now `nnimap-connection-alist' points to the <4> imap buffer, which
    ;; has no associated process/connection.

    ELISP> (gker/buffer-process-alist)
    ((#<buffer *nnimap imap.gmail.com 993  *nntpd**<4>> . :no-process)
     (#<buffer *nnimap imap.gmail.com 993  *nntpd**<2>> . :no-process)
     (#<buffer  *DOC*> . :no-process)
     (#<buffer  *nnml move*> . :no-process)
     (#<buffer  *copy article*> . :no-process)
     (#<buffer .newsrc-dribble> . :no-process)
     (#<buffer *Article nnml:mail.archive-2001*> . :no-process)
     (#<buffer  *Original Article nnml:mail.archive-2001*> . :no-process)
     (#<buffer *imap log*> . :no-process)
     (#<buffer  *gnus work*> . :no-process)
     (#<buffer *gnus trace*> . :no-process)
     (#<buffer  *Gnus agent overview*> . :no-process)
     (#<buffer  *nntpd*> . :no-process)
     (#<buffer  *Echo Area 1*> . :no-process)
     (#<buffer  *Echo Area 0*> . :no-process)
     (#<buffer  *code-conversion-work*> . :no-process)
     (#<buffer  *Minibuf-0*> . :no-process)
     (#<buffer nnimap.el.gz> . :no-process)
     (#<buffer *nnimap imap.gmail.com 993  *nntpd**> . :no-process)
     (#<buffer *nnimap imap.gmail.com nil  *nntpd**> . :no-process)
     (#<buffer *nnimap imap.gmail.com nil  *nntpd**<2>> . #<process *nnimap*<1>>)
     (#<buffer *nnimap imap.gmail.com 993  *nntpd**<3>> . :no-process)
     (#<buffer *Ibuffer*> . :no-process)
     (#<buffer *Help*> . :no-process)
     (#<buffer *Messages*> . :no-process)
     (#<buffer *scratch*> . :no-process)
     (#<buffer *Group*> . :no-process)
     (#<buffer  *Minibuf-1*> . :no-process)
     (#<buffer *Summary nnml:mail.archive-2001*> . :no-process)
     (#<buffer *ielm*> . #<process ielm>))

    ELISP>

For some reason typing `B m' from an nnml group creates new *nnimap ... <N>*
buffers that are *not* associated with the open nnimap connection.




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

end of thread, other threads:[~2011-02-25  4:53 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03  9:47 "no process" gnus bug when moving messages from nnml to imap folder Giorgos Keramidas
2011-02-03 14:18 ` Lars Ingebrigtsen
2011-02-03 20:13   ` Giorgos Keramidas
2011-02-03 20:27     ` Lars Ingebrigtsen
2011-02-03 20:32       ` Giorgos Keramidas
2011-02-03 20:44         ` Lars Ingebrigtsen
2011-02-03 21:00         ` Lars Ingebrigtsen
2011-02-03 21:33           ` Giorgos Keramidas
2011-02-03 21:39             ` Giorgos Keramidas
2011-02-03 21:42               ` Giorgos Keramidas
2011-02-04  8:38             ` Eli Zaretskii
2011-02-04  8:50               ` Giorgos Keramidas
2011-02-04  8:53               ` Lars Ingebrigtsen
2011-02-04 18:02                 ` Ted Zlatanov
2011-02-04 18:08                   ` Lars Ingebrigtsen
2011-02-04 18:28                     ` Ted Zlatanov
2011-02-04 19:14                       ` Lars Ingebrigtsen
2011-02-04 19:26                         ` Ted Zlatanov
2011-02-07 10:49                           ` Lars Ingebrigtsen
2011-02-04  8:58             ` Lars Ingebrigtsen
2011-02-04 18:23               ` Giorgos Keramidas
2011-02-07 11:42                 ` Lars Ingebrigtsen
2011-02-07 18:45                   ` Giorgos Keramidas
2011-02-14  3:09                     ` Lars Ingebrigtsen
2011-02-24 11:59                     ` Giorgos Keramidas
2011-02-25  4:53                       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).