Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: possible imap.el bug
Date: Fri, 15 Oct 2004 18:57:45 +0200	[thread overview]
Message-ID: <iluu0svyl4m.fsf@latte.josefsson.org> (raw)
In-Reply-To: <4nzn2napoz.fsf@lifelogs.com> (Ted Zlatanov's message of "15 Oct 2004 12:53:00 -0400")

"Ted Zlatanov" <tzz@lifelogs.com> writes:

> On Fri, 15 Oct 2004, jas@extundo.com wrote:
>
>> "Ted Zlatanov" <tzz@lifelogs.com> writes:
>
>>> 10845 UID COPY 32361 "soccer".
>>> 10845 OK UID COPY completed.
>> 
>> Could you get the CAPABILITY line from that server too?  First lines
>> when connecting to the server.
>
> * CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE SCAN SORT MAILBOX-REFERRALS LOGIN-REFERRALS AUTH=LOGIN THREAD=ORDEREDSUBJECT
>
>> The imap.el code check for the UIDPLUS capability (RFC 2359) and uses
>> some special code if present, and it is the code that crashes.  If the
>> server really supported UIDPLUS, the UID COPY response should be
>> something like:
>> 
>> A003 OK [COPYUID 4711] Done
>> 
>> If the capability line includes UIDPLUS, then this is a server bug.
>
> So maybe imap.el tried UIDPLUS even though it shouldn't...

Weird.  The code says:

(defun imap-message-copyuid-1 (mailbox)
  (if (imap-capability 'UIDPLUS)
      (list (nth 0 (imap-mailbox-get-1 'copyuid mailbox))
	    (string-to-number (nth 2 (imap-mailbox-get-1 'copyuid mailbox))))
    (let ((old-mailbox imap-current-mailbox)
	  (state imap-state)
	  (imap-message-data (make-vector 2 0)))
      (when (imap-mailbox-examine-1 mailbox)
	(prog1
	    (and (imap-fetch "*" "UID")
		 (list (imap-mailbox-get-1 'uidvalidity mailbox)
		       (apply 'max (imap-message-map
				    (lambda (uid prop) uid) 'UID))))
	  (if old-mailbox
	      (imap-mailbox-select old-mailbox (eq state 'examine))
	    (imap-mailbox-unselect)))))))

Could you (load "imap.el") to get a more detailed backtrace, perhaps?
I thought it was the string-to-number in the UIDPLUS part of the big
if that crashed, but maybe it is some other call, hidden inside the
rest of the function.

Or the UIDPLUS capability has leaked between buffers.



  reply	other threads:[~2004-10-15 16:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 18:48 Ted Zlatanov
2004-10-14 19:03 ` Simon Josefsson
2004-10-15 15:04   ` Ted Zlatanov
2004-10-15 16:39     ` Simon Josefsson
2004-10-15 16:53       ` Ted Zlatanov
2004-10-15 16:57         ` Simon Josefsson [this message]
2004-10-15 17:32           ` Ted Zlatanov
2004-10-15 17:37             ` Simon Josefsson
     [not found]               ` <4nsm8f956n.fsf@lifelogs.com>
     [not found]                 ` <iluacunx0k6.fsf@latte.josefsson.org>
     [not found]                   ` <4nsm8fcr00.fsf@bwh.harvard.edu>
     [not found]                     ` <iluvfdbrsni.fsf@latte.josefsson.org>
     [not found]                       ` <4nvfd7ubzv.fsf@lifelogs.com>
     [not found]                         ` <ilulldvoplv.fsf@latte.josefsson.org>
2004-10-25 19:11                           ` Ted Zlatanov
2004-10-25 19:29                             ` Simon Josefsson
2004-10-26 15:06                               ` Ted Zlatanov
2004-10-26 15:54                                 ` Simon Josefsson
2004-10-26 17:09                                   ` CHENG Gao
2004-10-26 17:59                                     ` Ted Zlatanov
2004-10-26 18:05                                   ` Ted Zlatanov
2004-10-26 20:07                                     ` Simon Josefsson
2004-10-26 15:51                             ` Gerd Flaig
2004-10-26 16:01                               ` Simon Josefsson
2004-10-26 16:30                                 ` Gerd Flaig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluu0svyl4m.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).