>>sa-learn --dump magic
>>if both nham, nspam is over 200 then show me
>>
>>spamassassin 2>&1 -D -t </tmp/msg >/tmp/log
>>and maybe olso
>>spamassassin 2>&1 -D --lint >/tmp/lint
>>
>>post log and lint file somewhere
> 
> 

First: The dump-data:

0.000          0          3          0  non-token data: bayes db version
> 0.000          0        555          0  non-token data: nspam
> 0.000          0       7466          0  non-token data: nham
> 0.000          0     136237          0  non-token data: ntokens
> 0.000          0 1208412003          0  non-token data: oldest atime
> 0.000          0 1213945203          0  non-token data: newest atime
> 0.000          0          0          0  non-token data: last journal sync
> atime
> 0.000          0 1213942542          0  non-token data: last expiry atime
> 0.000          0    5529600          0  non-token data: last expire atime
> delta
> 0.000          0      16661          0  non-token data: last expire
> reduction count

now with the link-parameter:

[1679] dbg: logger: adding facilities: all
> [1679] dbg: logger: logging level is DBG
> [1679] dbg: generic: SpamAssassin version 3.1.7-deb
> [1679] dbg: config: score set 0 chosen.
> [1679] dbg: util: running in taint mode? yes
> [1679] dbg: util: taint mode: deleting unsafe environment variables,
> resetting PATH
> [1679] dbg: util: PATH included '/home/ole/bin', which doesn't exist,
> dropping
> [1679] dbg: util: PATH included '/home/ole/perl5/bin', which doesn't
> exist, dropping
> [1679] dbg: util: PATH included '/usr/local/bin', keeping
> [1679] dbg: util: PATH included '/usr/bin', keeping
> [1679] dbg: util: PATH included '/bin', keeping
> [1679] dbg: util: PATH included '/usr/bin/X11', keeping
> [1679] dbg: util: PATH included '/usr/games', keeping
> [1679] dbg: util: final PATH set to:
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> [1679] dbg: message: ---- MIME PARSER START ----
> [1679] dbg: message: main message type: text/plain
> [1679] dbg: message: parsing normal part
> [1679] dbg: message: added part, type: text/plain
> [1679] dbg: message: ---- MIME PARSER END ----
> [1679] dbg: dns: is Net::DNS::Resolver available? yes
> [1679] dbg: dns: Net::DNS version: 0.59
> [1679] dbg: diag: perl platform: 5.008008 linux
> [1679] dbg: diag: module installed: Digest::SHA1, version 2.11
> [1679] dbg: diag: module installed: Razor2::Client::Agent, version 2.81
> [1679] dbg: diag: module not installed: Net::Ident ('require' failed)
> [1679] dbg: diag: module not installed: IO::Socket::INET6 ('require'
> failed)
> [1679] dbg: diag: module installed: IO::Socket::SSL, version 1.01
> [1679] dbg: diag: module installed: Time::HiRes, version 1.86
> [1679] dbg: diag: module installed: DBI, version 1.53
> [1679] dbg: diag: module installed: Getopt::Long, version 2.35
> [1679] dbg: diag: module installed: LWP::UserAgent, version 2.033
> [1679] dbg: diag: module installed: HTML::Parser, version 3.55
> [1679] dbg: diag: module installed: MIME::Base64, version 3.07
> [1679] dbg: diag: module installed: DB_File, version 1.814
> [1679] dbg: diag: module installed: Net::DNS, version 0.59
> [1679] dbg: diag: module installed: Net::SMTP, version 2.29
> [1679] dbg: diag: module not installed: Mail::SPF::Query ('require'
> failed)
> [1679] dbg: diag: module not installed: IP::Country::Fast ('require'
> failed)
> [1679] dbg: diag: module installed: HTTP::Date, version 1.47
> [1679] dbg: diag: module installed: Archive::Tar, version 1.30
> [1679] dbg: diag: module installed: IO::Zlib, version 1.04
> [1679] dbg: ignore: using a test message to lint rules
> [1679] dbg: config: using "/etc/spamassassin" for site rules pre files
> [1679] dbg: config: read file /etc/spamassassin/init.pre
> [1679] dbg: config: read file /etc/spamassassin/v310.pre
> [1679] dbg: config: read file /etc/spamassassin/v312.pre
> [1679] dbg: config: using "/usr/share/spamassassin" for sys rules pre
> files
> [1679] dbg: config: using "/usr/share/spamassassin" for default rules dir
> [1679] dbg: config: read file /usr/share/spamassassin/10_misc.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
> [1679] dbg: config: read file
> /usr/share/spamassassin/20_fake_helo_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_porn.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
> [1679] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
> [1679] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_replace.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_spf.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
> [1679] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
> [1679] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
> [1679] dbg: config: read file /usr/share/spamassassin/50_scores.cf
> [1679] dbg: config: read file /usr/share/spamassassin/60_awl.cf
> [1679] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
> [1679] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
> [1679] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
> [1679] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
> [1679] dbg: config: read file
> /usr/share/spamassassin/60_whitelist_subject.cf
> [1679] dbg: config: read file /usr/share/spamassassin/65_debian.cf
> [1679] dbg: config: using "/etc/spamassassin" for site rules dir
> [1679] dbg: config: read file /etc/spamassassin/local.cf
> [1679] dbg: config: using "/home/ole/.spamassassin/user_prefs" for user
> prefs file
> [1679] dbg: config: read file /home/ole/.spamassassin/user_prefs
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x834043c)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::Hashcash=HASH(0x944918c)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::SPF=HASH(0x946d2cc)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
> [1679] dbg: pyzor: local tests only, disabling Pyzor
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9483b08)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
> [1679] dbg: razor2: local tests only, skipping Razor
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::Razor2=HASH(0x944fc44)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
> [1679] dbg: reporter: local tests only, disabling SpamCop
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::SpamCop=HASH(0x945250c)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::AWL=HASH(0x94dd294)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold
> from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x94ec418)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject
> from @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x94f7d08)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from
> @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9505908)
> [1679] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from
> @INC
> [1679] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x94fe614)
> [1679] dbg: config: adding redirector regex:
> /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
> [1679] dbg: config: adding redirector regex:
> /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
> [1679] dbg: config: adding redirector regex:
> /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
> [1679] dbg: config: adding redirector regex:
> /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
> [1679] dbg: config: adding redirector regex:
> /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
> [1679] dbg: config: adding redirector regex:
> m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
> [1679] dbg: config: adding redirector regex:
> m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
> [1679] dbg: config: adding redirector regex:
> m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
> [1679] dbg: config: adding redirector regex:
> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
> [1679] dbg: config: adding redirector regex:
> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i
> [1679] dbg: config: adding redirector regex:
> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
> [1679] dbg: config: adding redirector regex:
> m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
> [1679] dbg: config: allowing user rules!
> [1679] warn: config: failed to parse line, skipping: SpamAssassin config
> file for version 3.x
> [1679] warn: config: failed to parse line, skipping: use_dcc 1
> [1679] warn: config: failed to parse, now a plugin, skipping: ok_languages
> all
> [1679] dbg: plugin:
> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x94fe614) implements
> 'finish_parsing_end'
> [1679] dbg: replacetags: replacing tags
> [1679] dbg: replacetags: done replacing tags
> [1679] dbg: bayes: tie-ing to DB file R/O
> /home/ole/.spamassassin/bayes_toks
> [1679] dbg: bayes: tie-ing to DB file R/O
> /home/ole/.spamassassin/bayes_seen
> [1679] dbg: bayes: found bayes db version 3
> [1679] dbg: bayes: DB journal sync: last sync: 0
> [1679] dbg: config: score set 2 chosen.
> [1679] dbg: message: ---- MIME PARSER START ----
> [1679] dbg: message: main message type: text/plain
> [1679] dbg: message: parsing normal part
> [1679] dbg: message: added part, type: text/plain
> [1679] dbg: message: ---- MIME PARSER END ----
> [1679] dbg: dns: is DNS available? 0
> [1679] dbg: metadata: X-Spam-Relays-Trusted: 
> [1679] dbg: metadata: X-Spam-Relays-Untrusted: 
> [1679] dbg: metadata: X-Spam-Relays-Internal: 
> [1679] dbg: metadata: X-Spam-Relays-External: 
> [1679] dbg: message: no encoding detected
> [1679] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x834043c)
> implements 'parsed_metadata'
> [1679] dbg: rules: local tests only, ignoring RBL eval
> [1679] dbg: check: running tests for priority: 0
> [1679] dbg: rules: running header regexp tests; score so far=0
> [1679] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
> [1679] dbg: rules: ran header rule __SANE_MSGID ======> got hit:
> "<[EMAIL PROTECTED]>
> [1679] dbg: rules: "
> [1679] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit:
> "@lint_rules>"
> [1679] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit:
> "1213946108"
> [1679] dbg: eval: all '*From' addrs:
> [EMAIL PROTECTED]
> [1679] dbg: eval: all '*To' addrs: 
> [1679] dbg: rules: ran eval rule NO_RELAYS ======> got hit
> [1679] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
> [1679] dbg: rules: running body-text per-line regexp tests; score so
> far=-0.001
> [1679] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
> [1679] dbg: uri: running uri tests; score so far=-0.001
> [1679] dbg: bayes: DB journal sync: last sync: 0
> [1679] dbg: bayes: corpus size: nspam = 555, nham = 7467
> [1679] dbg: bayes: score = 0.559407629539367
> [1679] dbg: bayes: DB journal sync: last sync: 0
> [1679] dbg: bayes: untie-ing
> [1679] dbg: bayes: untie-ing db_toks
> [1679] dbg: bayes: untie-ing db_seen
> [1679] dbg: rules: ran eval rule BAYES_50 ======> got hit
> [1679] dbg: rules: running raw-body-text per-line regexp tests; score so
> far=0
> [1679] dbg: rules: running full-text regexp tests; score so far=0
> [1679] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x834043c)
> implements 'check_tick'
> [1679] dbg: check: running tests for priority: 500
> [1679] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x834043c)
> implements 'check_post_dnsbl'
> [1679] dbg: rules: running meta tests; score so far=0
> [1679] info: rules: meta test DIGEST_MULTIPLE has undefined dependency
> 'DCC_CHECK'
> [1679] dbg: rules: running header regexp tests; score so far=2.157
> [1679] dbg: rules: running body-text per-line regexp tests; score so
> far=2.157
> [1679] dbg: uri: running uri tests; score so far=2.157
> [1679] dbg: rules: running raw-body-text per-line regexp tests; score so
> far=2.157
> [1679] dbg: rules: running full-text regexp tests; score so far=2.157
> [1679] dbg: check: running tests for priority: 1000
> [1679] dbg: rules: running meta tests; score so far=2.157
> [1679] dbg: rules: running header regexp tests; score so far=2.157
> [1679] dbg: rules: running body-text per-line regexp tests; score so
> far=2.157
> [1679] dbg: uri: running uri tests; score so far=2.157
> [1679] dbg: rules: running raw-body-text per-line regexp tests; score so
> far=2.157
> [1679] dbg: rules: running full-text regexp tests; score so far=2.157
> [1679] dbg: check: is spam? score=2.157 required=4.5
> [1679] dbg: check:
> tests=BAYES_50,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
> [1679] dbg: check:
> subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID
> [1679] warn: lint: 2 issues detected, please rerun with debug enabled for
> more information
> 

the first command did not work. /tmp/msg is non-existing.

Thanks for taking time to help me
-- 
View this message in context: 
http://www.nabble.com/Spamassassin-doesn%27t-learn---debug-outputs-tp18011818p18024863.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to