parkr / antispam Goto Github PK
View Code? Open in Web Editor NEWRemove spam from your IMAP account.
Remove spam from your IMAP account.
We only do From field, but Sender can be just as illuminating.
Dependabot couldn't find a Gopkg.toml for this project.
Dependabot requires a Gopkg.toml to evaluate your project's current Go dependencies. It had expected to find one at the path: /Gopkg.toml
.
If this isn't a Go project, or if it is a library, you may wish to disable updates for it from within Dependabot.
Tried using on 30k messages stored on a dreamhost account and got the following error:
panic: Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).
unable to select folder "Spam"
main.processJunkFolder
C:/Users/Alan/go/pkg/mod/github.com/parkr/[email protected]/junk.go:42
main.main
C:/Users/Alan/go/pkg/mod/github.com/parkr/[email protected]/antispam.go:176
runtime.main
C:/Program Files/Go/src/runtime/proc.go:271
runtime.goexit
C:/Program Files/Go/src/runtime/asm_amd64.s:1695
fatal error occurred
main.main.func1
C:/Users/Alan/go/pkg/mod/github.com/parkr/[email protected]/antispam.go:77
runtime.gopanic
C:/Program Files/Go/src/runtime/panic.go:770
main.processJunkFolder
C:/Users/Alan/go/pkg/mod/github.com/parkr/[email protected]/junk.go:42
main.main
C:/Users/Alan/go/pkg/mod/github.com/parkr/[email protected]/antispam.go:176
runtime.main
C:/Program Files/Go/src/runtime/proc.go:271
runtime.goexit
C:/Program Files/Go/src/runtime/asm_amd64.s:1695
2024/04/23 09:53:32 Reading config...
2024/04/23 09:53:32 Read config &{imap.dreamhost.com 993 [email protected] PasSwORD! [horriblehepsebah.com iwillspamyou.biz] [[email protected] [email protected]] false true false true}
2024/04/23 09:53:32 Reading filter file .\filter.json
2024/04/23 09:53:32 Read filter &{imap.dreamhost.com 993 [email protected] PasSwORD! [horriblehepsebah.com iwillspamyou.biz] [[email protected] [email protected]] false true false true}
2024/04/23 09:53:32 Loading global blocklists...
2024/04/23 09:53:33 Connecting to server...
2024/04/23 09:53:33 Connected
dyMBiQ LOGIN "[email protected]" "PasSwORD!"
dyMBiQ OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE] Logged in
2024/04/23 09:53:33 Logged in
2024/04/23 09:53:33 Mailboxes:
nQlA3A LIST "" "*"
* LIST (\HasChildren) "." INBOX
* LIST (\HasNoChildren) "." INBOX.old-messages
* LIST (\HasNoChildren \Trash) "." INBOX.Trash
* LIST (\HasNoChildren \Junk) "." INBOX.Spam
* LIST (\HasNoChildren \Sent) "." INBOX.Sent
* LIST (\HasNoChildren \Drafts) "." INBOX.Drafts
nQlA3A OK List completed (0.153 + 0.000 + 0.152 secs).
2024/04/23 09:53:33 * INBOX
2024/04/23 09:53:33 * INBOX.old-messages
2024/04/23 09:53:33 * INBOX.Trash
2024/04/23 09:53:33 * INBOX.Spam
2024/04/23 09:53:33 * INBOX.Sent
2024/04/23 09:53:33 * INBOX.Pedro
2024/04/23 09:53:33 * INBOX.Drafts
G8bneg SELECT "Spam"
G8bneg NO Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).
3twq4A LOGOUT
* BYE Logging out
3twq4A OK Logout completed (0.001 + 0.000 secs).
Not sure if there is something I am supposed to configure in the filter.json, or the config.json to specify which folders to filter.
$ ./antispam -config=/home/user/antispam/config.json
produced:
panic: open /tmp/antispam-filter.json: no such file or directory
unable to open file "/tmp/antispam-filter.json"
main.readConfigFile
/home/user/antispam/config.go:22
main.main
/home/user/antispam/antispam.go:104
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1571
fatal error occurred
main.main.func1
/home/user/antispam/antispam.go:68
runtime.gopanic
/usr/local/go/src/runtime/panic.go:838
main.main
/home/user/antispam/antispam.go:105
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1571
2022/07/17 13:12:35 Reading config...
2022/07/17 13:12:35 Reading filter file /tmp/antispam-filter.json
additional information on anti-spam and how to remove spam on GitHub, unmark -
antispam.go:13:2: cannot find package "github.com/emersion/go-imap" in any of:
/usr/lib/go/src/pkg/github.com/emersion/go-imap (from $GOROOT)
($GOPATH not set)
antispam.go:14:2: cannot find package "github.com/emersion/go-imap/client" in any of:
/usr/lib/go/src/pkg/github.com/emersion/go-imap/client (from $GOROOT)
($GOPATH not set)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.