From: Simon Josefsson <simon@josefsson.org>
To: nathanw@MIT.EDU (Nathan J. Williams)
Cc: ding@gnus.org
Subject: Re: patch - nnimap - case handling in STATUS command and response
Date: Tue, 18 Dec 2007 16:42:39 +0100 [thread overview]
Message-ID: <87mys86mc0.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <mtu4pez4pm2.fsf@contents-vnder-pressvre.mit.edu> (Nathan J. Williams's message of "Mon, 03 Dec 2007 13:09:25 -0500")
nathanw@MIT.EDU (Nathan J. Williams) writes:
>> Note that the server is broken here, the RFC is clear
>> that the status-att are upper case.
>
> Ah. Can you let me know where it says that? I was going from the
> formal syntax at the end of RFC3501, where it says:
>
> (1) Except as noted otherwise, all alphabetic characters
> are case-insensitive. The use of upper or lower case
> characters to define token strings is for editorial clarity
> only. Implementations MUST accept these strings in a
> case-insensitive fashion.
>
> and I didn't see anything specially marked about the case of
> status-att (or, in fact, anything other than the issues around INBOX).
You are right! So your patch is indeed the right thing to do.
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> ,----
> | * imap.el (imap-mailbox-status-asynch): Upcase STATUS items.
> | (imap-parse-status): Upcase status-att for broken servers that sends
> | them lower-case (e.g., MS Exchange 2007).
> `----
>
> I think this explanations should be added as a comment(s) in imap.el.
Given that it is incorrect, I modified the ChangeLog entry to read:
2007-12-03 Nathan J. Williams <nathanw@MIT.EDU> (tiny change)
* imap.el (imap-mailbox-status-asynch): Upcase STATUS items.
(imap-parse-status): Upcase status-att for servers that sends them
lower-case (e.g., MS Exchange 2007).
Since this was a real bug in imap.el, a comment shouldn't be needed.
Leo <sdl.web@gmail.com> writes:
>> Thanks, applied. Note that the server is broken here, the RFC is clear
>> that the status-att are upper case.
>
> Should this be added to the comments of the function?
Nope. :)
/Simon
next prev parent reply other threads:[~2007-12-18 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 17:13 Nathan J. Williams
2007-12-03 17:56 ` Simon Josefsson
2007-12-03 18:09 ` Nathan J. Williams
2007-12-18 15:42 ` Simon Josefsson [this message]
2007-12-03 20:43 ` Reiner Steib
2007-12-03 22:14 ` Leo
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=87mys86mc0.fsf@mocca.josefsson.org \
--to=simon@josefsson.org \
--cc=ding@gnus.org \
--cc=nathanw@MIT.EDU \
/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).