antispam icon indicating copy to clipboard operation
antispam copied to clipboard

NO Client tried to access nonexistent namespace.

Open ajhalls opened this issue 1 year ago • 1 comments

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.

ajhalls avatar Apr 23 '24 15:04 ajhalls

Hey Alan! It's been a while but I believe in your config.json, you can set "UseSpam" to "false". By default, it checks both a "Junk" folder and a "Spam" folder, but not all hosts have both. Do you have a Spam folder in the account?

parkr avatar Apr 24 '24 01:04 parkr