[imapfilter-devel] filtering :(((

prays at chel.surnet.ru prays at chel.surnet.ru
Fri Jul 4 06:53:11 EEST 2003


Hi Lefteris Chatzibarbas

LC> On Mon, Jun 30, 2003 at 10:34:25AM +0600, Igor Klingen wrote:
>> Hi All!
>> 
>> I have following difficulty.
>> I use Courier Imap v1.7.1 and imapfilter v0.8.9.
>> Post messages get in INBOX some box.
...
>> QUESTIONS:
>> 1) Why the filter does not find the letter?

LC> With the CVS version of imapfilter (it supports the "charset" IMAP4rev1
LC> parameter while searching) and using UTF8 as the charset, I was able to
LC> succesfully filter a message with english, greek polytonic, russian and
LC> german characters (I used a Unicode editor to compose the message and
LC> create imapfilter's config file).  The mail server must also support
LC> other charsets than ASCII in order to do this.  I don't know if trying
LC> the CVS version with UTF8 as charset, will be of any help, though.

The offer on i18n.
The new variable, for example 'locale' (by default equal 'C') is added. Rules of a filtration look so:
...
locale = X.Y
filter f1...
action...

filter f2
action ...

...

locale = C
filter fN...
action...

At analysis rc as soon as meets ' locale = X.Y ' it is caused ' setlocale (LC_ALL, X.Y) ' and regular expressions for 'mask' (if are compiled 
Compilation is necessary). At generation of a code for 'SEARCH', the current value 'locale' is analyzed. If it is not equal 'C' it is generated 
' SEARCH CHARSET Y. '.

In this case compatibility with already working .rc is kept.

LC> I can't really tell why the filter fails (i18n support and workarounds
LC> such as RFC1522 tend to cause headaches), but can you try something
LC> simpler in the filter? Trial and error might prove useful with your
LC> problem...

>> 2) I am confused with the form of record of a name of a folder in UTF-7
>> in imapfilterrc. In file system this folder looks like
>> '.&BB8EPgQ0BD8EOARBBDoEMA-.EMS 1C' (apostrophes mine).
>> How correctly to write down such folder in imapfilterrc?

LC> Use this:

LC> ...
LC> action move "&BB8EPgQ0BD8EOARBBDoEMA-/EMS 1C"
...
I have guessed. :))

--
Best regards
Igor Klingen,




More information about the Imapfilter-devel mailing list