Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2954A200CBF for ; Sat, 8 Jul 2017 21:42:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 27C9C16B32A; Sat, 8 Jul 2017 19:42:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6DA9016B328 for ; Sat, 8 Jul 2017 21:42:58 +0200 (CEST) Received: (qmail 62246 invoked by uid 500); 8 Jul 2017 19:42:54 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 61398 invoked by uid 99); 8 Jul 2017 19:42:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jul 2017 19:42:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9D9EC1806B4 for ; Sat, 8 Jul 2017 19:42:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=jwmhosting.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FrwCn2iZpkvn for ; Sat, 8 Jul 2017 19:42:51 +0000 (UTC) Received: from mx3.jwmhosting.com (mx3.jwmhosting.com [64.34.175.247]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 10FCF5FAE1 for ; Sat, 8 Jul 2017 19:42:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; b=1Tlts2N4BRhqB4Vuwh8m4B68y2n1+SCXvCUD+isnc8wViOIe3rHF2nw0h1JKsh7LP1lRnu/6v9tM+mV6N/0RIvVxUMNsHa8Wq29m9TCTD8RDg4elGtBw/MMZTQMCyAAMC4R59ubb5TfdthhONqb+RNZOlS6C4VKuQylkt1EPc+U=; s=primary; c=relaxed/relaxed; d=jwmhosting.com; v=1; bh=xsSxf0m/fClbxpX/wowIbzp8vuqyxUleJ+dqyBO7Dt4=; h=Message-ID:Date:Subject:From:To:MIME-Version:Content-Type; MIME-Version: 1.0 X-Processor-Root: true X-Processor-Authorized-Outbound: true X_JWMH_OUTBOUND: true X_JWMH_FLAG: $label3 X_JWMH_TGTFOLDER: Apache Forums.SpamAssassin Users X-Processor-Transport: true X-UserIsAuth: true Received: from cpe-66-68-42-68.austin.res.rr.com (EHLO [192.168.0.11]) ([66.68.42.68]) by mx2.jwmhosting.com (JAMES SMTP Server ) with ESMTPA ID 17106687 for ; Sat, 08 Jul 2017 14:42:44 -0500 (CDT) Subject: Re: sa-learn won't read db created via MSTOR To: users@spamassassin.apache.org References: <99109cc8-5155-b1a9-497c-a13ebeb92ada@malcolms.com> <03dc9239-f9c7-9587-ade6-5322e2461b23@malcolms.com> <20170708144558.70385f44@gumby.homeunix.com> From: Jerry Malcolm Message-ID: <244e2ee8-cf51-e347-64eb-e0616fb60333@malcolms.com> Date: Sat, 8 Jul 2017 14:42:44 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US archived-at: Sat, 08 Jul 2017 19:42:59 -0000 Upon further investigation, I don't think sa-learn is even attempting to open the file. I get the exact same message whether I give it a real file or just a string of characters for a file name: [C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn.exe --spam --mbox c:\IMAPUtil\temp\uncaughtSpam.mstor\temp Learned tokens from 0 message(s) (0 message(s) examined) [C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn.exe --spam --mbox xxxxxxxxxxxxxxxx Learned tokens from 0 message(s) (0 message(s) examined) This can't be right. How can I tell if it's really reading the file? On 7/8/2017 2:14 PM, Jerry Malcolm wrote: > Thanks for the info. Unfortunately, I don't have a clue how to > interpret a regex expression. I couldn't find any reference to > mbox_format_from_regex in the 3.1.x Mail::SpamAssassin::Conf that came > up when I googled it. > > The separators in my mbox file are: > > From - Sat Jul 8 01:02:28 2017 > > Can someone who speaks regex tell me if this syntax is my problem, and > if so, point me to where I can find the correct regex that matches > this that I can copy/paste? > > Thanks. > > Jerry > > > On 7/8/2017 8:45 AM, RW wrote: >> On Sat, 8 Jul 2017 01:57:47 -0500 >> Jerry Malcolm wrote: >> >>> Below is a complete log dump from the -D option on sa-learn. >> ... >> >>> _set_default_message_selection_opts After: Scanprob[1], want_date[0], >>> cache[0], from_regex[^From \S+ ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d >>> \d{4}|.\d-\d\d-\d{4}_\d\d:\d\d:\d\d_)] >> Check that this default regex matches your mbox separator, you may need >> to set mbox_format_from_regex. See the Mail::SpamAssassin::Conf >> documentation > > > --- > This email has been checked for viruses by AVG. > http://www.avg.com >