Registry / networking / teamwork-spamc

teamwork-spamc

JSON →
library0.0.0-20200109085853-a4e0c5c3f7a0gogounverified

Package spamc is a client library for SpamAssassin's spamd daemon.

go get github.com/Teamwork/spamc
INSTALL
IMPORT
SIG · TEAMWORK-SPAMC
T
teamwork-spamc
networkinggov0.0.0-20200109085853-a4e0c5c3f7a0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spamc
github.com/Teamwork/spamc

Check a message against SpamAssassin and print its spam score.

package main import ( "fmt" "strings" "github.com/Teamwork/spamc" ) func main() { client := spamc.New("localhost", 783) msg := strings.NewReader("Subject: test\n\nHello") report, err := client.Report(msg, nil) if err != nil { panic(err) } fmt.Println(report.Score) }
Debug
Known issues
gotchaContent-length header must be lowercase 'l' in 'length'.
fix
Use Header.Set() instead of directly setting the map to ensure correct capitalization.
affects: all
Upgrade
Version history
0.0.0-20200109085853-a4e0c5c3f7a0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
teamwork-spamc — go get teamwork-spamc · libregistry