On Thu, 2014-11-06 at 12:55 -0700, Bob Proulx wrote:
> Benny Pedersen wrote:
> > Chris wrote:
> > >> >When tested with 'spamassassin -d -D -t it's not marked as spam and
> 
> The -D option takes an argument.  If there is an argument following -D
> then it becomes the argument to -D.  In the above the argument to -D
> is -t due to it being positioned after -D.  That is not what you want.
> 
> Instead change the order of arguments to be this and I think it will
> do as you wished.  Any of these three lines are equivalent.
> 
>   spamassassin -d -t -D
> 
>   spamassassin -d -t -D all
> 
>   spamassassin -d -D all -t
> 
> See the possible debug areas here:
> 
>   http://wiki.apache.org/spamassassin/DebugChannels
> 
> > >Maybe I misunderstand the -d command, I thought it was used to remove
> > >the old markup from the saved message and a new markup would be added.
> > 
> > Just that -d and -t cant be used at the same time, -D is debug
> 
> The -d isn't really needed with -t.  But it is a valid combination.
> AIUI the -d removes markup while the -t ignores any existing markup.
> So with -t it doesn't matter but it is a valid combination.  In any
> case my standard scripts have -d -t all of the time with no problems.
> 
> Bob

Sorry for the late reply Bob, have had kind of a crisis with one of our
canine children since Wednesday and haven't had much time to do
anything. I've run your CL commands through an FP (still waiting for an
FN) and here are the results:

chris@localhost:~/Test$ time spamassassin -d -t -D spamfp.mbox
^C

real    2m34.371s
user    0m0.205s
sys     0m0.036s

On the above command nothing seems to happen even though as you can see
I let it run a bit over 2 1/2 minutes.

The same with the next command:

chris@localhost:~/Test$ time spamassassin -d -t -D *.mbox
^C

real    1m12.379s
user    0m0.226s
sys     0m0.016s

Likewise this has the same lack of output:

chris@localhost:~/Test$ time spamassassin -d -D *.mbox -t
^C

real    1m29.443s
user    0m0.211s
sys     0m0.032s

In either case using the 'all' option results in:

chris@localhost:~/Test$ time spamassassin -d -D all -t
Nov  7 19:46:21.943 [29144] dbg: logger: adding facilities: all
Nov  7 19:46:21.943 [29144] dbg: logger: logging level is DBG
Nov  7 19:46:21.943 [29144] dbg: generic: SpamAssassin version 3.4.0
Nov  7 19:46:21.943 [29144] dbg: generic: Perl 5.018002, PREFIX=/usr,
DEF_RULES_DIR=/usr/share/spamassassin,
LOCAL_RULES_DIR=/etc/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Nov  7 19:46:21.943 [29144] dbg: config: timing enabled
Nov  7 19:46:21.943 [29144] dbg: config: score set 0 chosen.
Nov  7 19:46:21.945 [29144] dbg: util: running in taint mode? yes
Nov  7 19:46:21.945 [29144] dbg: util: taint mode: deleting unsafe
environment variables, resetting PATH
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/local/sbin',
keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/local/bin',
keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/sbin',
keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/bin', keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/sbin', keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/bin', keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/games',
keeping
Nov  7 19:46:21.945 [29144] dbg: util: PATH included '/usr/local/games',
keeping
Nov  7 19:46:21.945 [29144] dbg: util: final PATH set
to: 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
^C

real    1m20.099s
user    0m0.214s
sys     0m0.028s

However, running ~/Test$ time spamassassin -D -t spamfp.mbox results in:

Content analysis details:   (3.0 points, 5.0 required)

 2.8 URIBL_RHS_DOB          Contains an URI of a new domain (Day Old
Bread)
                            [URIs: att.com]
-0.0 NO_RELAYS              Informational: message was not relayed via
SMTP
 0.2 URI_TRY_3LD            URI: "Try it" URI, suspicious hostname

DCC Results are 
DCC Brand is 
PYZOR Results are 

Nov  7 19:49:20.191 [29251] dbg: check: tagrun - tag DKIMDOMAIN is still
blocking action 0
Nov  7 19:49:20.192 [29251] dbg: plugin:
Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x3684e70) implements
'finish_tests', priority 0
Nov  7 19:49:20.192 [29251] dbg: plugin:
Mail::SpamAssassin::Plugin::Check=HASH(0x3685428) implements
'finish_tests', priority 0
Nov  7 19:49:20.204 [29251] dbg: bayes: untie-ing

Which differ from the original markup:

Content analysis details:   (5.8 points, 5.0 required)

-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
                            [144.160.112.12 listed in wl.mailspike.net]
 0.2 URI_TRY_3LD            URI: "Try it" URI, suspicious hostname
 0.0 HTML_MESSAGE           BODY: HTML included in message
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                            [score: 0.0000]
 0.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
-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 valid
 2.2 DCC_CHECK              listed in DCC
(http://rhyolite.com/anti-spam/dcc/)
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature
from author's
                            domain
 1.4 PYZOR_CHECK            Listed in Pyzor (http://pyzor.sf.net/)
-0.0 DCC_CHECK_NEGATIVE     Not listed in DCC
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
lines
-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 0.8 RDNS_NONE              Delivered to internal network by a host with
no rDNS
 0.3 DIGEST_MULTIPLE        Message hits more than one network digest
check
 3.6 URI_PHISH              Phishing using web form
-1.4 AWL                    AWL: From: address is in the auto white-list

DCC Results are localhost 104; Body=1 Fuz1=1 Fuz2=many
DCC Brand is x.dcc-servers
PYZOR Results are Reported 5 times.fers from the original markup:

At least though it's no longer over the threshold for spam. 

Or am I just being anal about this?

Chris


-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11°N 97.89°W (Elev. 1092 ft)
18:09:52 up 2 days, 20:34, 2 users, load average: 0.25, 0.11, 0.11
Ubuntu 14.04.1 LTS, kernel 3.13.0-39-generic

Reply via email to