[imapfilter-devel] i18n and difference bitween match_subject() and contain_subject()

Alexander Polyakhov apolyakhov at gmail.com
Tue Nov 17 12:33:08 EET 2009


hi,
Lefteris Chatzimparmpas wrote:
> Can you run imapfilter with the -v option so we can see what was the
> error message when the search query was sent to the mail server?
>
> I suspect that it might be a character set issue with the search
> queries...
>   
here is it:
S (3): * OK Server IMAP4rev1 1.8.18 at imap6:993 ready to talk with 
1.2.3.4:64963 2009-Nov-16 22:47:46
C (3): 1000 CAPABILITY
S (3): 1000 OK CAPABILITY completed
C (3): 1001 LOGIN "username" *
S (3): 1001 OK LOGIN completed
C (3): 1002 SELECT "INBOX"
S (3): 1002 OK [READ-WRITE] SELECT completed
C (3): 1003 UID SEARCH ALL SUBJECT "Ответ на ваш комментарий на welinux.ru"
S (3): 1003 OK SEARCH completed
C (3): 1004 LOGOUT

and after that the 'target' message left in INBOX
> Also, by "fails" you mean that it doesn't match any messages, right?
>   
yes
> The match command downloads the Subject header of all messages and
> matches locally using regular expressions.
Thanks for notice. I`ve suspected that 'match' is wider than 'contain' 
so it was the reason to start our dialog.
Hope my next log can help solve the problem. Now I`ll try start 
imapfilter with flag -v (as I done upper) but using method 'match' in my 
rule.

S (3): * OK Server IMAP4rev1 1.8.18 at imap12:993 ready to talk with 
1.2.3.4:59661 2009-Nov-16 
23:09:40                                               
C (3): 1000 
CAPABILITY                                                        
S (3): 1000 OK CAPABILITY 
completed                                           
C (3): 1001 LOGIN "username" 
*                                                
S (3): 1001 OK LOGIN 
completed                                                
C (3): 1002 SELECT 
"INBOX"                                                    
S (3): 1002 OK [READ-WRITE] SELECT completed
C (3): 1003 UID SEARCH ALL
S (3): 1003 OK SEARCH completed
C (3): 1004 UID FETCH 1 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1004 OK FETCH completed
C (3): 1005 UID FETCH 2 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1005 OK FETCH completed
C (3): 1006 UID FETCH 3 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1006 OK FETCH completed
C (3): 1007 UID FETCH 4 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1007 OK FETCH completed
C (3): 1008 UID FETCH 5 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1008 OK FETCH completed
C (3): 1009 UID FETCH 8 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1009 OK FETCH completed
C (3): 100A UID FETCH 9 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100A OK FETCH completed
C (3): 100B UID FETCH 10 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100B OK FETCH completed
C (3): 100C UID FETCH 11 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100C OK FETCH completed
C (3): 100D UID FETCH 12 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100D OK FETCH completed
C (3): 100E UID FETCH 13 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100E OK FETCH completed
C (3): 100F UID FETCH 14 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 100F OK FETCH completed
C (3): 1010 UID FETCH 15 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1010 OK FETCH completed
C (3): 1011 UID FETCH 20 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1011 OK FETCH completed
C (3): 1012 UID FETCH 21 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1012 OK FETCH completed
C (3): 1013 UID FETCH 23 BODY.PEEK[HEADER.FIELDS (Subject)]
S (3): 1013 OK FETCH completed
C (3): 1014 UID COPY 23 "example"
S (3): 1014 OK COPY completed
C (3): 1015 UID STORE 23 +FLAGS.SILENT (\Deleted)
S (3): 1015 OK STORE completed
C (3): 1016 EXPUNGE
S (3): 1016 OK EXPUNGE complete
1 messages moved from username at imap.server.ru/INBOX to 
username at imap.server.ru/example.
C (3): 1017 LOGOUT





More information about the Imapfilter-devel mailing list