https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7155

            Bug ID: 7155
           Summary: Oddness with -R and --full
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Windows 7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamc/spamd
          Assignee: [email protected]
          Reporter: [email protected]

On 3/5/2015 1:01 PM, Reindl Harald wrote:
> according to spamc --help "-R" and "--full" is the same
> in fact in case of a ham-message only -R works as expected
> --full behaves identical zu --full-spam
>
> -r, --full-spam     Print full report for messages identified as spam.
> -R, --full          Print full report for all messages.
> ____________________________
>
> BROKEN: /usr/bin/spamc --full --port=10029 < sample.eml
> OK:     /usr/bin/spamc R --port=10029 < sample.eml
>

The spamc code seems to concur -R and --full are the same option:

       { "full", no_argument, 0, 'R' }

Looking in the code, nothing jumps out as a logic issue but testing on my
command line with ham shows problems

spamc -R -d spamd.pccc.com < /tmp/1
<starts with the score/threshold and then the report>

spamc --full -d spamd.pccc.com < /tmp/1
<prints nothing.  I would expect it to do the same as -R>

Testing on my command line spam:

spamc -r -d spamd.pccc.com < /tmp/2
spamc --full -d spamd.pccc.com < /tmp/2
<Identical output of just the report>

The code for R sets flags |= SPAMC_REPORT;



Also, just duplicate the docs as referring to -r for the output format was
easily missed:

       -r, --full-spam
           Just output the SpamAssassin report text to stdout, if the message
is spam.  If the message is ham (non-spam), nothing will be printed.  The first
line of the output is the message score and the
           threshold, in this format:

                   score/threshold

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to