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 592EC200C00 for ; Wed, 4 Jan 2017 00:33:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57C27160B46; Tue, 3 Jan 2017 23:33:46 +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 A2E9A160B43 for ; Wed, 4 Jan 2017 00:33:45 +0100 (CET) Received: (qmail 66848 invoked by uid 500); 3 Jan 2017 23:33:44 -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 66838 invoked by uid 99); 3 Jan 2017 23:33:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 23:33:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DBD83C0258 for ; Tue, 3 Jan 2017 23:33:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id SnQORzS2MHCk for ; Tue, 3 Jan 2017 23:33:41 +0000 (UTC) Received: from mail-wj0-f196.google.com (mail-wj0-f196.google.com [209.85.210.196]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2E2375F30C for ; Tue, 3 Jan 2017 23:33:41 +0000 (UTC) Received: by mail-wj0-f196.google.com with SMTP id j10so73719333wjb.3 for ; Tue, 03 Jan 2017 15:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=QEHdzey/Th+Jw4oJSp0VrlZNJG5cOMDyCrzKK+p24B0=; b=kX2+1UX9BHpyGkgTshnpOnPAVIK4GJORZBsboIaDzWEgQIyXU86LB5Pwgs9XdjBucJ KCo0QHo91Md6ajEJwmFlkWuO23kDu1lBuTvk7ujM+JsTWxq+mtkBWJE91n6IxiT8D+8R O2imvEd7vMbfFrwl6vZqT7W6mKRqQjk9zNv2sE1/cFT3OSVaDCuzMvl8L4nSRCVxt06t w6x3jvqNRt2XSUz17wx6BbeBP3nMil3X5pRsWRdX5VG0NIDnIYJ3114gXbt/ci/BkLbi WjN8FwPFs+yEeGPvzEaekz1VTwHVgmSK3iHlwyrAt+y6xISisXcF6O5rZ/YCsVNF0FlC 28xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QEHdzey/Th+Jw4oJSp0VrlZNJG5cOMDyCrzKK+p24B0=; b=DHkvdvgdDQB51F70aCcuReoQj9kOt0EfCZKsd4cSmGbrQxslLvR4xWUQH8nPd6gUNT q91yBKDefUVAVKwoFeR8DhB39TdYguVGyHU34OlycOz5WycQpteK9OqQ7wUT1qIlq8Yq vgJLr9V8pmSnysiHr285posrkq9ROLrBfxeQlFSw3v2pMNGGfWeu6fPLiTKoGGhyZqEg UOUvQH+JCX+iyJm0S7Kx5EKcx6JEu5EFky2K+uQM5hXAzyIwTJSNdrUSsCxqdJd/K6tp qxIx4GcBzEHLmx9qtdtlj6RP+5WlhxZBFaqmLoZ9rMktyBmDUNj9jRuIwuil5/p8glKH OV6g== X-Gm-Message-State: AIkVDXLspxgryErEYkFIUBTWLp8cdn0XW0Nt3m34Rqi7CHCS34Rc8fxI5DqFGfHxdiKaPQ== X-Received: by 10.194.86.165 with SMTP id q5mr53815092wjz.178.1483486416762; Tue, 03 Jan 2017 15:33:36 -0800 (PST) Received: from gumby.homeunix.com ([81.17.24.158]) by smtp.gmail.com with ESMTPSA id d85sm92349346wmd.17.2017.01.03.15.33.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jan 2017 15:33:35 -0800 (PST) Date: Tue, 3 Jan 2017 23:33:34 +0000 From: RW To: users@spamassassin.apache.org Subject: Re: Does spamc unwrap spam reports? Message-ID: <20170103233334.347df211@gumby.homeunix.com> In-Reply-To: <2d0d4931-10be-fe14-c0c2-40d5d8d5958a@in.tum.de> References: <858a71d8-2b7b-2b16-ea24-987c4e35ec4f@in.tum.de> <20161228141231.05f56f3a@gumby.homeunix.com> <2d0d4931-10be-fe14-c0c2-40d5d8d5958a@in.tum.de> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit archived-at: Tue, 03 Jan 2017 23:33:46 -0000 On Tue, 3 Jan 2017 10:39:52 +0100 Lukas Erlacher wrote: > On 12/28/2016 03:12 PM, RW wrote: > > > > It's done in spamd. Don't attempt to remove X-Spam-* headers > > yourself or it wont attempt to remove the mime encapsulation. > > > > I'd like to convince myself of that... I ran `sudo -u debian-spamd > spamc -c < spamspam.eml` on a mail that has spamlevel 14.4 and is > encapsulated in a spam report. It gave 2.7/7.0... which I suppose is > ok because it's an assessment of the spamminess of the whole mail. > But that doesn't convince me... > > How do I convince myself that it'll actually use the text of the > original spam mail to update the bayesian db? You could try what I just did. Edit a spam report and put made up words at the beginning of each section, train it as spam and then put the made-up words through spamassassin -D bayes. printf "\n\n Lhjkl Ohjkl Ihjkl \n" | spamassassin -D bayes ... dbg: bayes: token 'ihjkl' => 0.986543689320388 Ihjkl was in the correct mime section at training - in the body of the embedded spam. What I don't get though is why isn't there a case-sensitive token "Ihjkl"?