<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hey Christoph,</p>
    <p>das kannst du mit dem doveadm machen:</p>
    <p>doveadm flags add -u <deinBenutzer> '\Seen' mailbox Junk
      all</p>
    <p>Der Befehl im einzelnen</p>
    <p>doveadm flags add = wir wollen ein Flag setzen</p>
    <p>-u <deinBenutzer> = für den Benutzer</p>
    <p>'\Seen' mailbox Junk all = alle E-Mails im Ordner Junk werden mit
      dem \Seen Flag versehen, also als gelesen markiert.</p>
    <p><br>
    </p>
    <p>Falls der genaue Ordnername unklar sein sollte, kannst du dir
      mit:</p>
    <p>doveadm -f table mailbox status -u <deinBenutzer> "all" "*"</p>
    <p><br>
    </p>
    <p>PS. sry fürs Doppelte schreiben, aber ich muss ja an die Liste
      antworten..<br>
    </p>
    alle Ordner des Benutzers anzeigen lassen.
    <div class="moz-cite-prefix">Am 15.11.2019 um 09:37 schrieb
      Christoph Kukulies:<br>
    </div>
    <blockquote type="cite"
      cite="mid:953C5261-A8DB-48EB-9063-7FBDC7E981F6@kukulies.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Ich verschiebe meine spam-mail aus meiner imap inbox z.B. im
      Thunderbird oder Apple-Mailprogram in den Folder Junk
      <div class="">und ein cron-Job auf meinem Server nimmt alle 15
        Min. Mails aus dem Junk-folder und verschiebt sie</div>
      <div class="">nach folgende Script:</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class="">#!/bin/sh</div>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class=""><b
            class="">DJUNK</b>=/var/vmail/<a
            href="http://mydomain.org/me/mail/Junk/cur" class=""
            moz-do-not-send="true">mydomain.org/me/mail/Junk/cur</a></div>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class=""><b
            class="">DSALEARN</b>=/var/spool/salearn</div>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class="">mv
          $DJUNK/*,S* $DSALEARN</div>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class="">/usr/bin/sa-learn
          --spam $DSALEARN</div>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class="">rm
          $DSALEARN/*,S*</div>
        <p style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue"; min-height:
          14px;" class="">         <br class="webkit-block-placeholder">
        </p>
        <div style="margin: 0px; font-stretch: normal; line-height:
          normal; font-family: "Helvetica Neue";" class="">sh
          /root/ham_learn.shIch</div>
      </div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class=""><br
          class="">
      </div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class=""><br
          class="">
      </div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class="">Ich
        weiß im Moment nicht mehr, warum ich nur gelesene Mails in den
        Learnprozeß schicken muß, aber ma angenommen, es müßte so sein,</div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class="">wie
        könnte ich mit einem dovecot -Befehl die Emails gelesen machen.
        Will jetzt kein sed-skript drauf loslassen, das an alle messages
        ein „,S“ anhängt. Ginge natürlich auch.</div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class=""><br
          class="">
      </div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class="">Grüße</div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class="">Christoph</div>
      <div style="margin: 0px; font-stretch: normal; line-height:
        normal; font-family: "Helvetica Neue";" class=""><br
          class="">
      </div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <table style="width: 480px; font-size: 9pt; font-family: Arial,
        sans-serif; line-height:14px; " cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td colspan="2" style="width: 480px; padding-bottom:5px;
              color: #3c3c3b;"><span style="font-size: 11pt;
                font-family: Lucida Console, monospace; font-weight:
                bold; color: #666666;">Pascal Rudolf</span></td>
          </tr>
          <tr>
            <td colspan="2" style="width: 480px; color: #1793d2;
              padding-bottom:5px"> <span style="font-family: Lucida
                Console, monospace; font-size: 11pt; color: #ff8000;">Inhaber</span>
            </td>
          </tr>
          <tr>
            <td colspan="2" style="width: 480px; padding-bottom:2px;
              border-top:1px dotted; border-top-color:#131313;"> </td>
          </tr>
          <tr>
            <td style="width:120px; vertical-align: middle"
              valign="middle"> <a href="https://padaru.de"
                target="_blank"><img alt="PADARU-IT Logo"
                  style="width:100%; height:100%; border:0;"
                  src="https://office.s1.padev.it/corporateDesign/padaruITGrey.svg"
                  width="88" height="88" border="0"></a> </td>
            <td style="width:360px; color: #131313; font-family: Arial,
              sans-serif; vertical-align: middle" valign="middle">
              <table cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                  </tr>
                  <tr>
                    <td style="padding:1px;"><span style="font-family:
                        Lucida Console, monospace; font-size: 9pt;
                        color: #131313;">Mobil: +49 1777 2595 32</span></td>
                  </tr>
                  <tr>
                    <td style="font-family: Lucida Console, monospace;
                      font-size: 9pt; color:#131313; padding:1px;"> <span
                        style="font-family: Lucida Console, monospace;
                        font-size: 9pt; color:black; color: #131313;"><a class="moz-txt-link-abbreviated" href="mailto:rudolf@padaru.de">rudolf@padaru.de</a></span><span>
                        - </span><a href="http://padaru.de"
                        target="_blank" style="font-family: Arial,
                        sans-serif; font-size: 9pt;
                        text-decoration:none;"><span style="font-family:
                          Lucida Console, monospace; font-size: 9pt;
                          color: #131313;">padaru.de</span></a> </td>
                  </tr>
                  <tr>
                    <td style="color: #131313; padding:1px;"><span
                        style="font-family: Lucida Console, monospace;
                        font-size: 9pt; color:#131313;">Bielebohstrasse
                        10, 02736 Beiersdorf</span></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td colspan="2" style="width: 480px; padding-top:2px;
              border-bottom:1px dotted; border-bottom-color:#131313;"> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>