--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id BCD346DE01F7\r
+ for <notmuch@notmuchmail.org>; Mon, 23 May 2016 09:34:35 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.59\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.59 tagged_above=-999 required=5 tests=[AWL=-0.062, \r
+ SPF_NEUTRAL=0.652] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id KPfgDZUpTpYD for <notmuch@notmuchmail.org>;\r
+ Mon, 23 May 2016 09:34:27 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 0A4E86DE00C6\r
+ for <notmuch@notmuchmail.org>; Mon, 23 May 2016 09:34:26 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 81229100090;\r
+ Mon, 23 May 2016 19:34:22 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@gaenseri.ch, notmuch@notmuchmail.org\r
+Subject: Re: Macros for notmuch and bayesian spam learner (dspam)\r
+In-Reply-To: <20160523125809.46tj3fumzrvje763@thinkpad>\r
+References: <20160523125809.46tj3fumzrvje763@thinkpad>\r
+User-Agent: Notmuch/0.22+26~g2adc7d1 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Mon, 23 May 2016 19:34:22 +0300\r
+Message-ID: <m2shx8zqb5.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 23 May 2016 16:34:35 -0000\r
+\r
+On Mon, May 23 2016, notmuch@gaenseri.ch wrote:\r
+\r
+> [ Unknown signature status ]\r
+> Hey,\r
+\r
+> I'm using notmuch with mutt-kz. I'm running dspam (a bayesian spam\r
+> classifier), so I've got an imap folder called "learn_spam" and a folder\r
+> called "learn_ham" (for training dspam). Both folders are periodically\r
+> emptied by dspam. I want to define three macros that are achieving the\r
+> following results:\r
+>\r
+> #mark message as spam -> copy message to "learn_spam" and move it to the real folder "spam"\r
+> macro index,pager \Cs "<copy-message>=learn_spam<enter><enter><save-message>=spam<enter><enter><modify-labels>+spam\n<sync-mailbox>"\r
+>\r
+> #mark falsely classified spam message as ham -> copy message to "learn_ham" and move it to the real folder "inbox"\r
+> macro index,pager \Ch "<copy-message>=learn_ham\n<save-message>=INBOX <modify-labels>-spam +inbox\n<sync-mailbox>"\r
+>\r
+> #archive message - copy message to learn_ham\r
+> macro index,pager \Ca "<copy-message>=learn_ham<enter><enter><modify-labels>-inbox +archive\n<sync-mailbox>"\r
+>\r
+> There is only one big problem: after I've copied the mail to the two\r
+> learn folders and after they are being deleted (after processing) from\r
+> dspam they are kind of non-existing for dspam. So I only want to copy the\r
+> message to the learning folders, but after they are being extenally\r
+> deleted from these folders notmuch thinks that they are away and is\r
+> apparently not able to detect that there is still one copy of these\r
+> messages present.\r
+>\r
+> Do you know how to fix that?\r
+\r
+Put learn_ham/ & learn_spam/ outside of the path notmuch looks for mail\r
+files.\r
+\r
+now notmuch *should* notice renames for your spam/inbox folders\r
+(but please keep sending mails if this is not the case)\r
+\r
+\r
+\r
+Instead of copying you could try hard/symlinking, but then dspam may\r
+modify the files (if that matters).\r
+\r
+\r
+\r
+\r
+> Thanks for your help in advance, Julius\r