lefcha/imapfilter — Issue #19: Filtering does not work anymore after courier update
Author: jschneider
Created: 2011-11-04 19:53:49+00:00
State: open

Filtering does no longer work. I have no idea, what the problem might be.
Courier tells me that there are a lot of "protocol violations"... But I have no idea which one might be wrong.

IMAPFilter 2.2.3 - same problem with IMAPFilter 2.2
Courier 0.63.0-2.1ubuntu1

(relevatn parts of) my configuration file:
--------------------------------
options.timeout=1240
options.subscribe=true

function mvMailingList( account, mailingAddress, targetFolder )
--now move them!
result=	account.INBOX:contain_from( mailingAddress ) +
account.INBOX:contain_to( mailingAddress ) +
account.INBOX:contain_cc( mailingAddress ) +
account.INBOX:contain_field('Reply-to', mailingAddress ) +
account.INBOX:contain_field('Sender', mailingAddress )
account.INBOX:move_messages( account[ targetFolder ], result )
end

function markPersonal( account, ownAddress )
result=	account.INBOX:contain_from( ownAddress ) +
account.INBOX:contain_to( ownAddress ) +
account.INBOX:contain_cc( ownAddress ) +
account.INBOX:contain_field('Reply-to', ownAddress ) +
account.INBOX:contain_field('Sender', ownAddress )
result:add_flags( { '$label3' } )
end

function markFromAsSeen( account, ownAddress )
result=	account.INBOX:contain_from( ownAddress ) +
account.INBOX:contain_field('Reply-to', ownAddress ) +
account.INBOX:contain_field('Sender', ownAddress )
result:mark_seen()
end

imapfilter -v:
Starting filtering for mailings@cedarsoft.de
S (4): * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
C (4): 1000 NOOP
S (4): 1000 OK NOOP completed
C (4): 1001 CAPABILITY
S (4): 1001 OK CAPABILITY completed
C (4): 1002 LOGIN "mailings@cedarsoft.com" *
S (4): 1002 OK LOGIN Ok.
C (4): 1003 NAMESPACE
S (4): 1003 OK NAMESPACE completed.
C (4): 1004 STATUS "INBOX" (MESSAGES RECENT UNSEEN UIDNEXT)
S (4): 1004 OK STATUS Completed.
4755 messages, 0 recent, 4684 unseen, in mailings@cedarsoft.com@cedarsoft.com/INBOX.
C (4): 1005 SELECT "INBOX"
S (4): 1005 OK [READ-WRITE] Ok
C (4): 1006 UID SEARCH ALL UNSEEN
S (4): 1006 OK SEARCH done.
C (4): 1007 UID SEARCH ALL HEADER X-spam-flag "YES"
S (4): 1007 OK SEARCH done.
C (4): 1008 UID SEARCH ALL FROM "mailings@cedarsoft.com"
S (4): 1008 OK SEARCH done.
C (4): 1009 UID SEARCH ALL HEADER Reply-to "mailings@cedarsoft.com"
S (4): 1009 OK SEARCH done.
C (4): 100A UID SEARCH ALL HEADER Sender "mailings@cedarsoft.com"
S (4): 100A OK SEARCH done.
C (4): 100B UID STORE 227071,244647,323311,350174:350175,515557,544554,669851 +FLAGS.SILENT (\Seen)
S (4): 100B OK STORE completed.
8 messages marked seen in mailings@cedarsoft.com@cedarsoft.com/INBOX.
C (4): 100C UID SEARCH ALL FROM "mailings@cedarsoft.com"
S (4): 100C OK SEARCH done.
C (4): 100D UID SEARCH ALL TO "mailings@cedarsoft.com"
S (4): 100D OK SEARCH done.
C (4): 100E UID SEARCH ALL CC "mailings@cedarsoft.com"
S (4): 100E OK SEARCH done.
C (4): 100F UID SEARCH ALL HEADER Reply-to "mailings@cedarsoft.com"
S (4): 100F OK SEARCH done.
C (4): 1010 UID SEARCH ALL HEADER Sender "mailings@cedarsoft.com"
S (4): 1010 OK SEARCH done.
C (4): 1011 UID STORE 76963,119263,202793,220331,221125,226289,227071,243630,244647,244720,247516,277390,319225:319226,319378,319432,323301,323311,329288,335553:335554,336652,338884,338921:338922,342464:342465,350174:350175,352366,352764:352765,357247,357249,360646,360735,360739,371009,385996,396669,397081,397459,398188,406132,408073,408075,431246,454642,456737,461725,465194,475414,482731,488604,488611,507363 +FLAGS.SILENT ($label3)
S (4): 1011 OK STORE completed.
C (4): 1012 UID STORE 511986,511999,515542,515557:515558,524721,524725,525413,529254,532625,544553:544555,558740,563071,563081,586166,609622,634182,657247,669850:669852,679321,700274,701083,703208,713947,725716,746938 +FLAGS.SILENT ($label3)
S (4): 1012 OK STORE completed.
86 messages flagged in mailings@cedarsoft.com@cedarsoft.com/INBOX.
C (4): 1013 UID SEARCH ALL FROM "android-developers@googlegroups.com"
S (4): 1013 OK SEARCH done.
C (4): 1014 UID SEARCH ALL TO "android-developers@googlegroups.com"
S (4): 1014 OK SEARCH done.
C (4): 1015 UID SEARCH ALL CC "android-developers@googlegroups.com"
S (4): 1015 OK SEARCH done.
C (4): 1016 UID SEARCH ALL HEADER Reply-to "android-developers@googlegroups.com"
S (4): 1016 OK SEARCH done.
C (4): 1017 UID SEARCH ALL HEADER Sender "android-developers@googlegroups.com"
S (4): 1017 OK SEARCH done.
C (4): 1018 UID COPY 745496:745497,745504,745508:745509,745518,745524,745534,745536,745540:745541,745543,745546,745548:745549,745554,745585,745598,745605:745606,745610,745628,745634,745661:745662,745692,745696,745714,745776,745779,745786,745788,745799,745809:745810,745817:745818,745825,745829:745830,745837,745840,745852,745854,745861,745865:745867,745871,745881:745882,745894,745901,745905,745915,745918,745921,745927,745932,745934,745936,745967 "INBOX.Android.dev"

Courier-Log-File (mail.err)
--------------------------------------------
Nov 4 20:12:21 hosting imapd-ssl: mailings@cedarsoft.com: TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
Nov 4 20:13:31 hosting imapd-ssl: last message repeated 38 times
Nov 4 20:19:22 hosting imapd-ssl: mailings@cedarsoft.com: TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
Nov 4 20:20:32 hosting imapd-ssl: last message repeated 49 times
Nov 4 20:24:38 hosting imapd-ssl: mailings@cedarsoft.com: TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
Nov 4 20:26:02 hosting imapd-ssl: last message repeated 4 times
Nov 4 20:27:02 hosting imapd-ssl: last message repeated 39 times
Nov 4 20:41:30 hosting imapd-ssl: mailings@cedarsoft.com: TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
Nov 4 20:42:33 hosting imapd-ssl: last message repeated 3 times
Nov 4 20:43:33 hosting imapd-ssl: last message repeated 39 times

imapfilter debug file
------
getting response (4):

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COP
YING for distribution information.

sending command (4):

1000 NOOP

getting response (4):

1000 OK NOOP completed

sending command (4):

1001 CAPABILITY

getting response (4):

* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
1001 OK CAPABILITY completed

sending command (4):

1002 LOGIN "mailings@cedarsoft.com" *

getting response (4):

1002 OK LOGIN Ok.

sending command (4):

1003 NAMESPACE

getting response (4):

* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
1003 OK NAMESPACE completed.

namespace (4): 'INBOX.' '.'
sending command (4):

1004 STATUS "INBOX" (MESSAGES RECENT UNSEEN UIDNEXT)

getting response (4):

* STATUS "INBOX" (MESSAGES 4756 RECENT 0 UIDNEXT 750138 UNSEEN 4685)
1004 OK STATUS Completed.

sending command (4):

1005 SELECT "INBOX"

getting response (4):

* FLAGS (Junk NonJunk $label3 \Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (Junk NonJunk $label3 \* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 4756 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1220260549] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
1005 OK [READ-WRITE] Ok

sending command (4):

1006 UID SEARCH ALL UNSEEN

getting response (4):

* SEARCH 400164 406132 431246 433094 452937 456737 461725 465194 481904 482731 489774 507363 511999 513036 524725 532625 556238 558740 561182 561834 570767 586133 586166 604113 609622 613889 619105 634081 634
182 657247 660939 662408 665281 669852 679321 700274 701083 703208 704739 713208 736174 741393 745338 745495 745496 745497 745498 745499 745500 745501 745502 745503 745504 745505 745506 745507 745508 745509 7
45510 745511 745512 745513 745514 745515 745516 745517 745518 745519 745520 745521 745522 745523 745524 745525 745526 745527 745528 745529 745530 745531 745532 745533 745534 745535 745536 745537 745538 745539
745540 745541 745542 745543 745544 745545 745546 745547 745548 745549 745550 745551 745552 745553 745554 745555 745556 745557 745558 745559 745560 745561 745562 745563 745564 745565 745566 745567 745568 7455
69 745570 745571 745572 745573 745574 745575 745576 745577 745578 745579 745580 745581 745582 745583 745584 745585 745586 745587 745588 745589 745590 745591 745592 745593 745594 745595 745596 745597 745598 74
5599 745600 745601 745602 745603 745604 745605 745606 745607 745608 745609 745610 745611 745612 745613 745614 745615 745616 745617 745618 745619 745620 745621 745622 745623 745624 745625 745626 745627 745628
745629 745630 745632 745633 745634 745635 745636 745637 745638 745639 745640 745641 745642 745643 745644 745645 745646 745647 745648 745649 745650 745651 745652 745653 745654 745655 745656 745657 745658 74565
9 745660 745661 745662 745663 745664 745665 745666 745667 745668 745669 745670 745671 745672 745673 745674 745675 745676 745677 745678 745679 745680 745681 745682 745683 745684 745685 745686 745687 745688 745
689 745690 745691 745692 745693 745694 745695 745696 745697 745698 745699 745700 745701 745702 745703 745704 745705 745706 745707 745708 745709 745710 745711 745712 745713 745714 745715 745716 745717 745718 7
45719 745720 745721 745722 745723 745724 745725 745726 745727 745728 745729 745730 745731 745732 745733 745734 745735 745736 745737 745738 745739 745740 745741 745742 745743 745744 745745 745746 745747 745748
745749 745750 745751 745752 745753 745754 745755 745756 745757 745758 745759 745760 745761 745762 745763 745764 745765 745766 745767 745768 745769 745770 745771 745772 745773 745774 745775 745776 745777 7457
78 745779 745780 745781 745782 745783 745784 745785 745786 745787 745788 745789 745790 745791 745792 745793 745794 745795 745796 745797 745798 745799 745800 745801 745802 745803 745804 745805 745806 745807 74
5808 745809 745810 745811 745812 745813 745814 745815 745816 745817 745818 745819 745820 745821 745822 745823 745824 745825 745826 745827 745828 745829 745830 745831 745832 745833 745834 745835 745836 745837
745838 745839 745840 745841 745842 745843 745844 745845 745846 745847 745848 745849 745850 745851 745852 745853 745854 745855 745856 745857 745858 745859 745860 745861 745862 745863 745864 745865 745866 74586
7 745868 745869 745870 745871 745872 745873 745874 745875 745876 745877 745878 745879 745880 745881 745882 745883 745884 745885 745886 745887 745888 745889 745890 745891 745892 745893 745894 745895 745896 745
897 745898 745899 745900 745901 745902 745903 745904 745905 745906 745907 745908 745909 745910 745911 745912 745913 745914 745915 745916 745917 745918 745919 745920 745921 745922 745923 745924 745925 745926 7
45927 745928 745929 745930 745931 745932 745933 745934 745935 745936 745937 745938 745939 745940 745941 745942 745943 745944 745945 745946 745947 745948 745949 745950 745951 745952 745953 745954 745955 745956
745957 745958 745959 745960 745961 745962 745963 745964 745965 745966 745967 745968 745969 745970 745971 745972 745973 745974 745975 745976 745977 745978 745979 745980 745981 745982 745983 745984 745985 7459
86 745987 745988 745989 745990 745991 745992 745993 745994 745995 745996 745997 745998 745999 746000 746001 746002 746003 746004 746005 746006 746007 746008 746009 746010 746011 746012 746013 746014 746015 74
6016 746017 746018 746019 746020 746021 746022 746023 746024 746025 746026 746027 746028 746029 746030 746031 746032 746033 746034 746035 746036
getting response (4):

746037 746038 746039 746040 746041 746042 746043 746044 746045 746046 746047 746048 746049 746050 746051 746052 746053 746054 746055 746056 746057 746058 746059 746060 746061 746062 746063 746064 746065 7460
66 746067 746068 746069 746070 746071 746072 746073 746074 746075 746076 746077 746078 746079 746080 746081 746082 746083 746084 746085 746086 746087 746088 746089 746090 746091 746092 746093 746094 746095 74
6096 746097 746098 746099 746100 746101 746102 746103 746104 746105 746106 746107 746108 746109 746110 746111 746112 746113 746114 746115 746116 746117 746118 746119 746120 746121 746122 746123 746124 746125
746126 746127 746128 746129 746130 746131 746132 746133 746134 746135 746136 746137 746138 746139 746140 746141 746142 746143 746144 746145 746146 746147 746148 746149 746150 746151 746152 746153 746154 74615
5 746156 746157 746158 746159 746160 746161 746162 746163 746164 746165 746166 746167 746168 746169 746170 746171 746172 746173 746174 746175 746176 746177 746178 746179 746180 746181 746182 746183 746184 746
185 746186 746187 746188 746189 746190 746191 746192 746193 746194 746195 746196 746197 746198 746199 746200 746201 746202 746203 746204 746205 746206 746207 746208 746209 746210 746211 746212 746213 746214 7
46215 746216 746217 746218 746219 746220 746221 746222 746223 746224 746225 746226 746227 746228 746229 746230 746231 746232 746233 746234 746235 746236 746237 746238 746239 746240 746241 746242 746243 746244
746245 746246 746247 746248 746249 746250 746251 746252 746253 746254 746255 746256 746257 746258 746259 746260 746261 746262 746263 746264 746265 746266 746267 746268 746269 746270 746271 746272 746273 7462
74 746275 746276 746277 746278 746279 746280 746281 746282 746283 746284 746285 746286 746287 746288 746289 746290 746291 746292 746293 746294 746295 746296 746297 746298 746299 746300 746301 746302 746303 74
6304 746305 746306 746307 746308 746309 746310 746311 746312 746313 746314 746315 746316 746317 746318 746319 746320 746321 746322 746323 746324 746325 746326 746327 746328 746329 746330 746331 746332 746333
746334 746335 746336 746337 746338 746339 746340 746341 746342 746343 746344 746345 746346 746347 746348 746349 746350 746351 746352 746353 746354 746355 746356 746357 746358 746359 746360 746361 746362 74636
3 746364 746365 746366 746367 746368 746369 746370 746371 746372 746373 746374 746375 746376 746377 746378 746379 746380 746381 746382 746383 746384 746385 746386 746387 746388 746389 746390 746391 746392 746
393 746394 746395 746396 746397 746398 746399 746400 746401 746402 746403 746404 746405 746406 746407 746408 746409 746410 746411 746412 746413 746414 746415 746416 746417 746418 746419 746420 746421 746422 7
46423 746424 746425 746426 746427 746428 746429 746430 746431 746432 746433 746434 746435 746436 746437 746438 746439 746440 746441 746442 746443 746444 746445 746446 746447 746448 746449 746450 746451 746452
746453 746454 746455 746456 746457 746458 746459 746460 746461 746462 746463 746464 746465 746466 746467 746468 746469 746470 746471 746472 746473 746474 746475 746476 746477 746478 746479 746480 746481 7464
82 746483 746484 746485 746486 746487 746488 746489 746490 746491 746492 746493 746494 746495 746496 746497 746498 746499 746500 746501 746502 746503 746504 746505 746506 746507 746508 746509 746510 746511 74
6512 746513 746514 746515 746516 746517 746518 746519 746520 746521 746522 746523 746524 746525 746526 746527 746528 746529 746530 746531 746532 746533 746534 746535 746536 746537 746538 746539 746540 746541
746542 746543 746544 746545 746546 746547 746548 746549 746550 746551 746552 746553 746554 746555 746556 746557 746558 746559 746560 746561 746562 746563 746564 746565 746566 746567 746568 746569 746570 74657
1 746572 746573 746574 746575 746576 746577 746578 746579 746580 746581 746582 746583 746584 746585 746586 746587 746588 746589 746590 746591 746592 746593 746594 746595 746596 746597 746598 746599 746600 746
601 746602 746603 746604 746605 746606 746607 746608 746609 746610 746611 746612 746613 746614 746615 746616 746617 746618 746619 746620 746621
getting response (4):

746622 746623 746624 746625 746626 746627 746628 746629 746630 746631 746632 746633 746634 746635 746636 746637 746638 746639 746640 746641 746642 746643 746644 746645 746646 746647 746648 746649 746650 74665
1 746652 746653 746654 746655 746656 746657 746658 746659 746660 746661 746662 746663 746664 746665 746666 746667 746668 746669 746670 746671 746672 746673 746674 746675 746676 746677 746678 746679 746680 746
681 746682 746683 746684 746685 746686 746687 746688 746689 746690 746691 746692 746693 746694 746695 746696 746697 746698 746699 746700 746701 746702 746703 746704 746705 746706 746707 746708 746709 746710 7
46711 746712 746713 746714 746715 746716 746717 746718 746719 746720 746721 746722 746723 746724 746725 746726 746727 746728 746729 746730 746731 746732 746733 746734 746735 746736 746737 746738 746739 746740
746741 746742 746743 746744 746745 746746 746747 746748 746749 746750 746751 746752 746753 746754 746755 746756 746757 746758 746759 746760 746761 746762 746763 746764 746765 746766 746767 746768 746769 7467
70 746771 746772 746773 746774 746775 746776 746777 746778 746779 746780 746781 746782 746783 746784 746785 746786 746787 746788 746789 746790 746791 746792 746793 746794 746795 746796 746797 746798 746799 74
6800 746801 746802 746803 746804 746805 746806 746807 746808 746809 746810 746811 746812 746813 746814 746815 746816 746817 746818 746819 746820 746821 746822 746823 746824 746825 746826 746827 746828 746829
746830 746831 746832 746833 746834 746835 746836 746837 746838 746839 746840 746841 746842 746843 746844 746845 746846 746847 746848 746849 746850 746851 746852 746853 746854 746855 746856 746857 746858 74685
9 746860 746861 746862 746863 746864 746865 746866 746867 746868 746869 746870 746871 746872 746873 746874 746875 746876 746877 746878 746879 746880 746881 746882 746883 746884 746885 746886 746887 746888 746
889 746890 746891 746892 746893 746894 746895 746896 746897 746898 746899 746900 746901 746902 746903 746904 746905 746906 746907 746908 746909 746910 746911 746912 746913 746914 746915 746916 746917 746918 7
46919 746920 746921 746922 746923 746924 746925 746926 746927 746928 746929 746930 746931 746932 746933 746934 746935 746936 746937 746938 746939 746940 746941 746942 746943 746944 746945 746946 746947 746948
746949 746950 746951 746952 746953 746954 746955 746956 746957 746958 746959 746960 746961 746962 746963 746964 746965 746966 746967 746968 746969 746970 746971 746972 746973 746974 746975 746976 746977 7469
78 746979 746980 746981 746982 746983 746984 746985 746986 746987 746988 746989 746990 746991 746992 746993 746994 746995 746996 746997 746998 746999 747000 747001 747002 747003 747004 747005 747006 747007 74
7008 747009 747010 747011 747012 747013 747014 747015 747016 747017 747018 747019 747020 747021 747022 747023 747024 747025 747026 747027 747028 747029 747030 747031 747032 747033 747034 747035 747036 747037
747038 747039 747040 747041 747042 747043 747044 747045 747046 747047 747048 747049 747050 747051 747052 747053 747054 747055 747056 747057 747058 747059 747060 747061 747062 747063 747064 747065 747066 74706
7 747068 747069 747070 747071 747072 747073 747074 747075 747076 747077 747078 747079 747080 747081 747082 747083 747084 747085 747086 747087 747088 747089 747090 747091 747092 747093 747094 747095 747096 747
097 747098 747099 747100 747101 747102 747103 747104 747105 747106 747107 747108 747109 747110 747111 747112 747113 747114 747115 747116 747117 747118 747119 747120 747121 747122 747123 747124 747125 747126 7
47127 747128 747129 747130 747131 747132 747133 747134 747135 747136 747137 747138 747139 747140 747141 747142 747143 747144 747145 747146 747147 747148 747149 747150 747151 747152 747153 747154 747155 747156
747157 747158 747159 747160 747161 747162 747163 747164 747165 747166 747167 747168 747169 747170 747171 747172 747173 747174 747175 747176 747177 747178 747179 747180 747181 747182 747183 747184 747185 7471
86 747187 747188 747189 747190 747191 747192 747193 747194 747195 747196 747197 747198 747199 747200 747201 747202 747203 747204 747205 747206 7
getting response (4):