Gnus development mailing list
 help / color / mirror / Atom feed
* recent nnimap LIST change broke Exchange 2003
@ 2010-11-26  9:41 Robert Pluim
  2010-11-26 10:42 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2010-11-26  9:41 UTC (permalink / raw)
  To: ding

This:

commit af87b909b94f902b24687a9f53a74beb3c52ff7f
Author: Lars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Date:   Fri Nov 26 02:00:28 2010 +0100

    (nnimap-get-groups): Reimplement to work with folded lines.

caused this:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p a-group)
  utf7-encode(a-group t)
  nnimap-request-list("mymail")
  gnus-request-list((nnimap "mymail" (nnimap-address "mail.mycompany.com") (nnimap-server-port 993) (nnimap-expunge t) (nnir-search-engine imap) (nnimap-stream ssl)))
  gnus-read-active-file-1((nnimap "mymail" (nnimap-address "mail.mycompany.com") (nnimap-server-port 993) (nnimap-expunge t) (nnir-search-engine imap) (nnimap-stream ssl)) nil)
  gnus-read-active-file(nil nil)
  gnus-setup-news(nil nil nil)
  byte-code("..." [gnus-slave gnus-current-startup-file gnus-startup-file did-connect level dont-connect gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-request-create-group "queue" (nndraft "") "drafts" (nndraft "") gnus-setup-news nil gnus-setup-news-hook gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook gnus-use-dribble-file gnus-agent] 4)
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)
  command-execute(gnus t)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)
  (dispatch-event "[internal]")

This is on XEmacs 21.5  (beta29) "garbanzo" d27c1ee1943b+ [Lucid]
(i686-pc-cygwin, Mule) of Mon Oct 18 2010 on RPluim

It looks like you're expecting `read' to return a string, and it
isn't. I had a look at the output of the LIST command, and it looks ok,
except that the groupnames are not in double quotes, except when they
contain a space.

Regards

Robert

-- 




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

* Re: recent nnimap LIST change broke Exchange 2003
  2010-11-26  9:41 recent nnimap LIST change broke Exchange 2003 Robert Pluim
@ 2010-11-26 10:42 ` Lars Magne Ingebrigtsen
  2010-11-26 11:49   ` Robert Pluim
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-26 10:42 UTC (permalink / raw)
  To: ding

Robert Pluim <rpluim@gmail.com> writes:

> It looks like you're expecting `read' to return a string, and it
> isn't. I had a look at the output of the LIST command, and it looks ok,
> except that the groupnames are not in double quotes, except when they
> contain a space.

Ah.  All my test servers seemed to return "group" names, so I assumed
that was the standard.

I've applied a quick-and-dirty fix to git Gnus.  Does it fix the problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: recent nnimap LIST change broke Exchange 2003
  2010-11-26 10:42 ` Lars Magne Ingebrigtsen
@ 2010-11-26 11:49   ` Robert Pluim
  2010-11-26 11:54     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2010-11-26 11:49 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Robert Pluim <rpluim@gmail.com> writes:
>
>> It looks like you're expecting `read' to return a string, and it
>> isn't. I had a look at the output of the LIST command, and it looks ok,
>> except that the groupnames are not in double quotes, except when they
>> contain a space.
>
> Ah.  All my test servers seemed to return "group" names, so I assumed
> that was the standard.
>
> I've applied a quick-and-dirty fix to git Gnus.  Does it fix the problem?

Yes. My local hack used `symbol-name', but yours is perhaps cleaner :)

Cheers

Robert




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

* Re: recent nnimap LIST change broke Exchange 2003
  2010-11-26 11:49   ` Robert Pluim
@ 2010-11-26 11:54     ` Lars Magne Ingebrigtsen
  2010-11-26 12:18       ` Spaces in gcc group names Robert Pluim
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-26 11:54 UTC (permalink / raw)
  To: ding

Robert Pluim <rpluim@gmail.com> writes:

> Yes. My local hack used `symbol-name', but yours is perhaps cleaner :)

No, but I was wondering whether, for instance, some weird servers out
there used numerical mailbox names.  Like 12.4.  In which case,
`symbol-name' wouldn't work.

I think the real fix is to not use `read' unless the name begins with a
quote char.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Spaces in gcc group names
  2010-11-26 11:54     ` Lars Magne Ingebrigtsen
@ 2010-11-26 12:18       ` Robert Pluim
  2010-11-26 13:18         ` Dave Goldberg
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2010-11-26 12:18 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Robert Pluim <rpluim@gmail.com> writes:
>
>> Yes. My local hack used `symbol-name', but yours is perhaps cleaner :)
>
> No, but I was wondering whether, for instance, some weird servers out
> there used numerical mailbox names.  Like 12.4.  In which case,
> `symbol-name' wouldn't work.

See, I told you yours was cleaner :) I don't have any group names like
that, but there's nothing preventing me from creating them.

> I think the real fix is to not use `read' unless the name begins with a
> quote char.

That reminds me of a related issue: when I gcc to "nnimap+mymail:Sent
Items", the copy ends up in `Sent' on the server. Is this supposed to
work? Or do I have to add in some quotes myself somewhere?

Cheers

Robert

-- 




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

* Re: Spaces in gcc group names
  2010-11-26 12:18       ` Spaces in gcc group names Robert Pluim
@ 2010-11-26 13:18         ` Dave Goldberg
  2010-11-26 13:40           ` Robert Pluim
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Goldberg @ 2010-11-26 13:18 UTC (permalink / raw)
  To: ding

> That reminds me of a related issue: when I gcc to "nnimap+mymail:Sent
> Items", the copy ends up in `Sent' on the server. Is this supposed to
> work? Or do I have to add in some quotes myself somewhere?

I've been putting the quotes on the gcc line for a very long time now and it goes to the right place.



-- 
Dave Goldberg
david.goldberg6@verizon.net



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

* Re: Spaces in gcc group names
  2010-11-26 13:18         ` Dave Goldberg
@ 2010-11-26 13:40           ` Robert Pluim
  2010-11-28 12:17             ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2010-11-26 13:40 UTC (permalink / raw)
  To: ding

Dave Goldberg <david.goldberg6@verizon.net> writes:

>> That reminds me of a related issue: when I gcc to "nnimap+mymail:Sent
>> Items", the copy ends up in `Sent' on the server. Is this supposed to
>> work? Or do I have to add in some quotes myself somewhere?
>
> I've been putting the quotes on the gcc line for a very long time now
> and it goes to the right place.

I just tried 

gcc:"nnimap+mymail:Sent Items"

and it worked as expected. Lars, is this the expected form? Or should it
work without the quotes?

Thanks

Robert




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

* Re: Spaces in gcc group names
  2010-11-26 13:40           ` Robert Pluim
@ 2010-11-28 12:17             ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-28 12:17 UTC (permalink / raw)
  To: ding

Robert Pluim <rpluim@gmail.com> writes:

> gcc:"nnimap+mymail:Sent Items"
>
> and it worked as expected. Lars, is this the expected form? Or should it
> work without the quotes?

It should only work with the quotes, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2010-11-28 12:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26  9:41 recent nnimap LIST change broke Exchange 2003 Robert Pluim
2010-11-26 10:42 ` Lars Magne Ingebrigtsen
2010-11-26 11:49   ` Robert Pluim
2010-11-26 11:54     ` Lars Magne Ingebrigtsen
2010-11-26 12:18       ` Spaces in gcc group names Robert Pluim
2010-11-26 13:18         ` Dave Goldberg
2010-11-26 13:40           ` Robert Pluim
2010-11-28 12:17             ` Lars Magne Ingebrigtsen

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