Hello need some help with the filters plug in for squirrel mail I am
using the the 1.4.3a version of squirrel mail  and BINC IMAP as my
server.  When i set up a filter i get this
*
ERROR : Could not complete request.*
Query: SEARCH CHARSET ISO-8859-1 ALL From {19} [EMAIL PROTECTED]
Reason Given: SEARCH failed: [BADCHARSET ("US-ASCII")]

if i set option 13. Allow server charset search : false as i have read
in many docs as the solution the filter is created but does not work  ie
nothing happens the message that should be moved is not.  When i do a
search for a message if finds messages without problems this puzzles me
do the filters not use the same search mechanism??

I have installed procmail and the procmail plug in to try a different
resolution to this problem as i have read that procmail have performance
advantages over the native squirrel mail plug in.  However I can not get
this configuration to work either and i seems to complicate things further.

I have posted to this and the BINC lists in the past but have not been
able to resolve this problem for some time now.  Have added the
$uid_support to line 83 as suggested but still the filters are a no go.
Here is a bit of  the threads of my original post..


THANKS again everyone I did what you suggested and set the .

4. General Options
12. Allow server charset search : false

Now i do not get any errors, but the message filters do not do anything
at all.  If i run a regular search it does what it should and lists all
the emails i was searching for.   So if search  is working shouldn't
message filters work too ??? Do they not just use the search command ???

Anders la Cour Bentzon wrote:

On 2004-07-14 09:51, Tomas Kuliavas wrote:

squirrelmail files usually don't include CR symbols. Patch is done against modified version of sm or you have extracted SquirrelMail files with utility that converts unix line endings to dos line endings.

That's probably my fault; it might have been converted to CRLF when I
scp'ed it to my Windows box which I use for e-mail. You can also find
the patch at http://www.bentzon.net/uidpatch:

#wget http://www.bentzon.net/uidpatch

That should leave the line endings intact, right?


Have you tried disabling charset search in SquirrelMail config.

conf.pl
4. General Options
 12. Allow server charset search : false

you can put any value in SquirrelMail default charset option. SquirrelMail scripts won't allow misconfiguration and revert to charset used by translation.

The problem is that when SquirrelMail reverts back to another character
set, it doesn't send a UID:

C: A049 UID SEARCH CHARSET ISO-8859-1 ALL SUBJECT {8}
^^^^
S: + ok, send 8 bytes of data.
C: bincimap
S: A049 NO SEARCH failed: [BADCHARSET ("US-ASCII")]
C: A050 SEARCH CHARSET "US-ASCII" ALL SUBJECT {8}
^^^^
S: + ok, send 8 bytes of data
C: bincimap
S: * SEARCH 507 512 515 530 532 533 673 734 736 737 738 739 766 768 830
831 862 863 864 866 867 925 926 957
S: A050 OK SEARCH completed
C: A051 UID FETCH
507,512,515,530,532:533,673,734,736:739,766,768,830:831,862:864,866:867,925:926,957


(FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject
X-Priority Content-Type)])

But it uses a UID FETCH to get the data.

Therefore, the IMAP server (at least Binc) returns a search result
unrelated to the one expected by SquirrelMail.

I got it to work by including $uid_support as the last argument in line
#83 in functions/imap_search.php. As I said earlier, I am almost
clueless when it comes to the SquirrelMail source, so if anyone here can
confirm this, please do so. It seems to work fine for me.

Gotta run again...!

Anders



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
squirrelmail-users mailing list
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to