[imp] Imp issuing improper "SORT" command at login?

Michael J Rubinsky mrubinsk at horde.org
Sat Mar 2 15:46:23 UTC 2019


Quoting Jan Schneider <jan at horde.org>:

> Zitat von James Noyes <jnoyes-horde at retrogeeks.com>:
>
>> On 2/24/19, 15:56, Michael J Rubinsky wrote:
>>> Yes. RFC 6855 [3], and further clarified in Errata 4029:
>>>
>>>   Once an IMAP client has enabled UTF-8 support with the "ENABLE
>>>   UTF8=ACCEPT" command, it MUST NOT issue a "SEARCH" command that
>>>   contains a charset specification. If an IMAP server receives such a
>>>   "SEARCH" command in that situation, it SHOULD reject the command with
>>>   a "BAD" response (due to the conflicting charset labels). This also
>>>   applies to any IMAP command or extension that includes an optional
>>>   charset label and associated strings in the command arguments,
>>>   including the MULTISEARCH extension. For commands with a mandatory
>>>   charset field, such as SORT and THREAD, servers SHOULD reject charset
>>>   values other than UTF-8 with a “BAD” response (due to the conflicting
>>>   charset labels).
>>>
>> Ok, this clarifies that SEARCH with a charset should be rejected,  
>> but only SEARCH or other commands that "include an optional charset  
>> label".
>> SORT and THREAD do not include an *optional* charset label, they  
>> include a *mandatory* charset label.
>> The final sentence addresses SORT and THREAD specifically.  They  
>> still need have the charset specified (because it is still  
>> mandatory), this just clarifies that it shouldn't be any value  
>> other than UTF-8 and risks rejection/BAD if it is.
>> Yes?
>
> That's how I understand it too.

Yeah, agreed. I was getting confused because this was within the  
_search() method.

Fixed and released.


> -- 
> Jan Schneider
> The Horde Project
> https://www.horde.org/
>
> -- 
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/imp/attachments/20190302/442b6fd7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 821 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/imp/attachments/20190302/442b6fd7/attachment-0001.bin>


More information about the imp mailing list