Re: SM v1.4.22 - search with german umlauts fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 4, 2011 at 10:02 AM, Tomas Kuliavas
<tokul@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
>
> Paul Lesniewski wrote:
>>
>> On Sat, Jul 30, 2011 at 3:58 AM, Juergen Edner
>> <juergen.edner@xxxxxxxxxxx> wrote:
>>> Hello,
>>> I'm running SM v1.4.22 on one of my servers. Every time I try to search
>>> for word which contains german umlauts the following error is shown:
>>>
>>>  ERROR: Wrong or invalid request.
>>>  Request: FETCH (FLAGS UID RFC822.SIZE INTERNALDATE
>>> BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance
>>> Priority Content-Type)])
>>>  Server answer: Bogus sequence in UID FETCH: Syntax error in sequence
>>>
>>> While trying to find a resolution for the problem I've found several
>>> references in the SM message archive which state that the error should
>>> have been fixed in SM v1.4.20RC1.
>>>
>>> Then I've added a debug output to imap_search.php which shows that the
>>> following command is send to the server:
>>>
>>>  SEARCH CHARSET ISO-8859-1 ALL BODY "für"
>>
>> Do you really have $uid_support in config/config.php turned off?  Why?
>>
>> Why didn't you provide all the information as requested in the mailing
>> list posting guidelines?  Maybe your IMAP server is faulty.  Try
>> running the search command using the info plugin and/or sniff the
>> actual IMAP traffic and tell us what it says.
>>
>> This search works just fine for me.
>>
> He logged $ss variable and $uid_support is enabled internally by
> sqimap_run_command.
>
> Maybe you can explain why code tries to send 8bit text as quoted string
> instead
> of sending it as literal. "Works fine" does not look really good considering
> that IMAP specification is violated.
>
> Try different IMAP server. UW IMAP 2007e for example. Dovecot ignores rfc
> violation.
> ----
> Notice: Undefined variable: messagelist in
> /somepath/squirrelmail-webmail-1.4.22/functions/imap_search.php on line 106
> Call Stack
> #       Time    Memory  Function        Location
> 1       0.0001  54480   {main}( )       ../search.php:0
> 2       0.0700  420356  sqimap_search( )        ../search.php:567
>
> Notice: Undefined variable: id in
> /somepath/squirrelmail-webmail-1.4.22/functions/imap_search.php on line 112
> Call Stack
> #       Time    Memory  Function        Location
> 1       0.0001  54480   {main}( )       ../search.php:0
> 2       0.0700  420356  sqimap_search( )        ../search.php:567
> ERROR:
> ERROR: Bad or malformed request.
> Query: FETCH (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS
> (Date
> To Cc From Subject X-Priority Importance Priority Content-Type)])
> Server responded: Bogus sequence in UID FETCH: Syntax error in sequence
> -----
>
> You must use following command on UW.
> ---
> SEARCH CHARSET ISO-8859-1 ALL BODY {3}
>
> für
> ---

Duh.  Ah, of course, SquirrelMail's spotty literal support.  I have
just applied a fix for this in our repository.  Testers appreciated.
The fix should appear in a daily snapshot release within 24 hours or
you can apply the patch yourself:

http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php?view=patch&r1=14139&r2=14138&pathrev=14139
http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/functions/imap_search.php?view=patch&r1=14139&r2=14138&pathrev=14139
http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/plugins/filters/filters.php?view=patch&r1=14139&r2=14138&pathrev=14139

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux