When I run spamc without -R option like this:

spamc -u some_user  < some_email

I get the following output:

============================================================================

<HEADERS>

This is a multi-part message in MIME format.

<snip>


Content analysis details:   (5.2 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 0.2 BAYES_999              BODY: Bayes spam probability is 99.9 to 100%
                            [score: 1.0000]
 3.5 BAYES_99               BODY: Bayes spam probability is 99 to 100%
                            [score: 1.0000]
0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/,
                            low trust
                            [69.252.207.38 listed in list.dnswl.org]
-0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                            [69.252.207.38 listed in wl.mailspike.net]
 1.6 DATE_IN_PAST_03_06     Date: is 3 to 6 hours before Received: date
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 HTML_IMAGE_RATIO_02    BODY: HTML has a low ratio of text to image
                            area
 0.0 HTML_MESSAGE           BODY: HTML included in message
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
                            author's domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily

<EMAIL BODY>

===============================================================================



However, when I run this command on the same email with the -R command to get the SA scores only like this:

spamc -R -u some_user  < some_email


I get this output:


===============================================================================

2.6/5.0
Spam detection software, running on the system "email.dondley.com",
has NOT identified this incoming email as spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview: Spam detection software, running on the system "email.dondley.com", has identified this incoming email as possible spam. The original message
   has been attached to this so you can view it or label simi [...]

Content analysis details:   (2.6 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 0.8 BAYES_50               BODY: Bayes spam probability is 40 to 60%
                            [score: 0.5000]
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
                            mail domains are different
 1.6 DATE_IN_PAST_03_06     Date: is 3 to 6 hours before Received: date
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.0 HTML_IMAGE_RATIO_02    BODY: HTML has a low ratio of text to image
                            area


================================================================================


Notice the scores are totally different. According to man page, -R says:

Just output the SpamAssassin report text to stdout, for all messages. See -r for details of the output format used.

So why are the scores different with and without the -R option?

Reply via email to