<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <div class="moz-cite-prefix">On 3/20/21 7:37 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:dovecot@steve.wattlink.net">dovecot@steve.wattlink.net</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:01ce01d71d18$d9193f10$8b4bbd30$@steve.wattlink.net">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1"><span
          style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">plugin {<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox1_before =
            <a class="moz-txt-link-freetext" href="file:/usr/local/etc/dovecot/sieve/report-spam.sieve">file:/usr/local/etc/dovecot/sieve/report-spam.sieve</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox1_causes = COPY APPEND<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox1_name = Spam<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox2_before =
            <a class="moz-txt-link-freetext" href="file:/usr/local/etc/dovecot/sieve/report-ham.sieve">file:/usr/local/etc/dovecot/sieve/report-ham.sieve</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox2_causes = COPY<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox2_from = Spam<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas"> 
            imapsieve_mailbox2_name = *<o:p></o:p></span></p>
        <span style="font-size:10.0pt;font-family:Consolas">}<o:p></o:p></span><span
          style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">- - - ->8 -
            - - -<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I see that the static rule ought to have
          matched,</p>
      </div>
    </blockquote>
    no!<br>
    <blockquote type="cite"
      cite="mid:01ce01d71d18$d9193f10$8b4bbd30$@steve.wattlink.net">
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> <br>
          </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">- - - - 8<-
            - - -<o:p></o:p></span></p>
        <span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span>
        <p class="MsoNormal"><o:p></o:p><span
            style="font-size:10.0pt;font-family:Consolas">Mar 19
            16:21:48 mhv3 dovecot[47532]:
            imap(steve)<47541><ROnt+uu9idkYgsde>: Debug:
            imapsieve: mailbox INBOX: APPEND event</span></p>
        <span style="font-size:10.0pt;font-family:Consolas">- - - ->8
          - - - -</span></div>
    </blockquote>
    <p>For INBOX (or * in your case) you only have COPY from Spam
      configured, not APPEND.</p>
    <p>APPENDing to Spam should trigger the relevant script though.</p>
    <p>If you want to enable ham training by uploading a message to
      INBOX you could add a third rule mentioning INBOX by name with
      APPEND as cause.</p>
    <p><br>
    </p>
  </body>
</html>