Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

us-ascii charset not working #40

Closed
fat0 opened this issue Jan 18, 2017 · 5 comments
Closed

us-ascii charset not working #40

fat0 opened this issue Jan 18, 2017 · 5 comments
Labels

Comments

@fat0
Copy link

fat0 commented Jan 18, 2017

The error message is:

2017/01/18 19:15:22 Loading  ./config.json
2017/01/18 19:15:22 MatterMail version: 3.5.0
INFO Mattermail	19:15:22 Checking new emails
INFO Mattermail	19:15:23 Connected with "XXXX.com:993"
EROR Mattermail	19:15:23 UID SEARCH US-ASCII
INFO Mattermail	19:15:23 Error on check new email: imap: unexpected completion status ("GAWVC6 BAD Invalid charset specified")
 Try again in 30s

This is what the mail header says:
Content-Type: text/plain; charset=us-ascii

@fat0 fat0 changed the title allow lower case for charset us-ascii charset not working Jan 19, 2017
@rodcorsi
Copy link
Owner

Please set "Debug": true in config.json and post the full log here, but remember to remove personal data from the log ;)

@fat0
Copy link
Author

fat0 commented Jan 19, 2017

I hope I did not miss any personal data... it showed the password in clear text... yikes:

2017/01/19 16:11:42 Loading  ./config.json
2017/01/19 16:11:42 MatterMail version: 3.5.0
DEBG Mattermail	16:11:42 Debug mode on
INFO Mattermail	16:11:42 Checking new emails
DEBG Mattermail	16:11:42 CheckNewMails
DEBG Mattermail	16:11:42 CheckImapConnection: DialTLS
IMAP Mattermail	16:11:42 Connected to x.x.x.x:993 (Tag=XLHPK)
IMAP Mattermail	16:11:42 S: * OK server ready. Unauthorized Access Prohibited.
IMAP Mattermail	16:11:42 Server greeting: server ready. Unauthorized Access Prohibited.
IMAP Mattermail	16:11:42 C: XLHPK1 CAPABILITY
IMAP Mattermail	16:11:42 S: * CAPABILITY IMAP4REV1 IDLE AUTH=PLAIN
IMAP Mattermail	16:11:42 S: XLHPK1 OK CAPABILITY completed
INFO Mattermail	16:11:42 Connected with "XXX.com:993"
IMAP Mattermail	16:11:42 C: XLHPK2 LOGIN "xxx@XXX.com" "xxxx"
IMAP Mattermail	16:11:42 S: XLHPK2 OK LOGIN completed
IMAP Mattermail	16:11:42 C: XLHPK3 CAPABILITY
IMAP Mattermail	16:11:43 S: * CAPABILITY IMAP4REV1 IDLE AUTH=PLAIN
IMAP Mattermail	16:11:43 S: XLHPK3 OK CAPABILITY completed
IMAP Mattermail	16:11:43 C: XLHPK4 SELECT "INBOX"
IMAP Mattermail	16:11:43 S: * 500 EXISTS
IMAP Mattermail	16:11:43 S: * 0 RECENT
IMAP Mattermail	16:11:43 S: * 1000 EXISTS
IMAP Mattermail	16:11:43 S: * 0 RECENT
IMAP Mattermail	16:11:43 S: * 1500 EXISTS
IMAP Mattermail	16:11:43 S: * 0 RECENT
IMAP Mattermail	16:11:43 S: * 2000 EXISTS
IMAP Mattermail	16:11:43 S: * 0 RECENT
IMAP Mattermail	16:11:43 S: * 2184 EXISTS
IMAP Mattermail	16:11:43 S: * 0 RECENT
IMAP Mattermail	16:11:43 S: * OK [UIDVALIDITY 22994129] UID validity status
IMAP Mattermail	16:11:43 S: * OK [UIDNEXT 16619] Predicted next UID
IMAP Mattermail	16:11:43 S: * FLAGS (\Seen \Deleted \Answered \Forwarded \Redirected \Flagged \Hidden \Draft $MDNSent)
IMAP Mattermail	16:11:43 S: * OK [PERMANENTFLAGS (\Seen \Deleted \Answered \Forwarded \Redirected \Flagged \Hidden \Draft $MDNSent)] Permanent flags
IMAP Mattermail	16:11:43 S: XLHPK4 OK [READ-WRITE] SELECT completed
IMAP Mattermail	16:11:43 C: XLHPK5 UID SEARCH CHARSET UTF-8 UNSEEN
IMAP Mattermail	16:11:43 S: XLHPK5 BAD Invalid charset specified
DEBG Mattermail	16:11:43 Error UIDSearch UTF-8:
DEBG Mattermail	16:11:43 imap: unexpected completion status ("XLHPK5 BAD Invalid charset specified")
DEBG Mattermail	16:11:43 Try with US-ASCII
IMAP Mattermail	16:11:43 C: XLHPK6 UID SEARCH CHARSET US-ASCII UNSEEN
IMAP Mattermail	16:11:43 S: XLHPK6 BAD Invalid charset specified
EROR Mattermail	16:11:43 UID SEARCH US-ASCII
INFO Mattermail	16:11:43 Error on check new email: imap: unexpected completion status ("XLHPK6 BAD Invalid charset specified")
 Try again in 30s

@rodcorsi
Copy link
Owner

rodcorsi commented Jan 27, 2017

I think this could be a bug of go-imap lib.
Do you know which imap server do you use? ex.: Dovecot, Exchange, etc.
I need to know the server to try to reproduce this error

@rodcorsi rodcorsi added the bug label Jan 27, 2017
@fat0
Copy link
Author

fat0 commented Jan 27, 2017 via email

@rodcorsi
Copy link
Owner

On Release 4 I started using a new imap library, feel free to reopen this issue if it does not work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants