From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#39780: [PATCH] Mention 'spam-stat-process-directory-age' in the documentation Date: Tue, 25 Feb 2020 13:58:12 +0100 Message-ID: <20200225125812.1221377-1-stepnem@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="106163"; mail-complaints-to="usenet@ciao.gmane.io" To: 39780@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 25 14:48:52 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6aZw-000RWf-Mi for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 14:48:52 +0100 Original-Received: from localhost ([::1]:56516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6aZv-0007rU-NK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 08:48:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34897) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Zni-0000MI-Up for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6Znh-0000XD-SX for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6Znh-0000Wq-Pc for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6Znh-0000Qv-Pm for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2020 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15826354921590 (code B ref -1); Tue, 25 Feb 2020 12:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2020 12:58:12 +0000 Original-Received: from localhost ([127.0.0.1]:54526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6Zmu-0000Pa-0A for submit@debbugs.gnu.org; Tue, 25 Feb 2020 07:58:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6Zmr-0000PQ-VJ for submit@debbugs.gnu.org; Tue, 25 Feb 2020 07:58:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Zmq-0007BL-MV for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:58:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6Zmp-0006vi-Qg for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:58:08 -0500 Original-Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:36530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6Zmp-0006rA-Ki for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 07:58:07 -0500 Original-Received: by mail-wr1-x443.google.com with SMTP id z3so14632698wru.3 for ; Tue, 25 Feb 2020 04:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pbu8OUnq4aztsJ+sYglzW6COOuYsfKb/CqZ6m/2GK2k=; b=J7eVD9p9qq1JocavZBUnD4ZArq04cgGc3GuCz2ZodeL68wTwW9XGoWTyYrr8lhWO1Y p4gVRCso6fCehkINwYyMkMM6B9vrdzwVidMOjESGUI77TTIB1sUajI1AiC/rXgMVnM3x 1yHNxoiqE9Hui/aIrdA+qlG4SsQ852006CV2GpIuduFdbNkZWFNdszIMcEHr6eCgx2+i FOa8ZPDb5o7vMqjHVOYgnzJsnfqWMF4vLqFkL+SwxskETGjKcWnn9EJK8AoKcJs/hlC1 if4lgAzVABcu6E5zczKRx1NKNU8d9y0aYb3MqJnTd/XbU5Q87mD0t7iKDJ4553nBn8NH TLjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pbu8OUnq4aztsJ+sYglzW6COOuYsfKb/CqZ6m/2GK2k=; b=UTYyS6rnBQBPc3dLVUeiw9/ReZbwpahx8CntZ2P7KgVPS/DMIdvt9NeesQ/wUWXHjj TdSApVNrbm/bUeIZAZThMYod+SkMhAQVxcjSdmk8pcfvJoAzRBsbuh3j+rmVJ7sxWzSa oh64aN/H0zBJcNoWAiG1rdlsYjZRLjkQU7bOMoYEpL9Bx0E8Dcdq6leXKkkyIXOWNmTw GvYHZhzsXDG9QObZ+6+u5LUrEzhokkmTjj5p2HY3+S8DpkD/JQTDgINan55NOtBqVFdD ek551FSoatj5/JHV1XTLuD/wL5gzoL5Ur8HxpVdEzDvlyQ0qy5aTbCcHLtGzXRxHXLk/ HOaQ== X-Gm-Message-State: APjAAAXZ1n9iQI604OYDb9zIFx6xPyqBqyslpiN67A5/11R4ydYoPXdI s7o3jx3EVJOudntD3/XvSTjKAqo/ X-Google-Smtp-Source: APXvYqzQVJwFGiXr/ZK5McxPnQifmgklA+E+AQDDe2lCpDou0QgJABQlC00yx62/ERHdVcqIyjWiwg== X-Received: by 2002:a5d:5745:: with SMTP id q5mr16756545wrw.374.1582635485217; Tue, 25 Feb 2020 04:58:05 -0800 (PST) Original-Received: from localhost ([185.112.167.59]) by smtp.gmail.com with ESMTPSA id v8sm23521558wrw.2.2020.02.25.04.58.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 04:58:04 -0800 (PST) X-Mailer: git-send-email 2.25.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176462 Archived-At: I was at a loss as to why my attempt to set up spam-stat seemed to have no effect, only to find (digging in the code) that it was ignoring most of the sample files due to this undocumented variable. * doc/misc/gnus.texi (Creating a spam-stat dictionary): Document the variable 'spam-stat-process-directory-age'. --- doc/misc/gnus.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 424e15bc6d..718e269fc8 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi @@ -25668,6 +25668,13 @@ Creating a spam-stat dictionary file is treated as one non-spam mail. @end defun +@defvar spam-stat-process-directory-age +Maximum age of files to be processed, in days. Without this filter, +re-training spam-stat with several thousand messages could take a long +time. The default is 90, but you might want to set this to a bigger +value during the initial training. +@end defvar + Usually you would call @code{spam-stat-process-spam-directory} on a directory such as @file{~/Mail/mail/spam} (this usually corresponds to the group @samp{nnml:mail.spam}), and you would call -- 2.25.1