Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from IMAP server: invalid tag <tag> #5

Open
david-perez opened this issue Oct 8, 2019 · 0 comments
Open

Error from IMAP server: invalid tag <tag> #5

david-perez opened this issue Oct 8, 2019 · 0 comments

Comments

@david-perez
Copy link

There seems to be some error in the way the (at least the first) IMAP commands are being sent to the server by the proxy. If you analyze the network traffic you'll see that the server always replies with a BAD invalid tag <tag> to the first CAPABILITY command, but everything thereafter seems OK.

I suspect the proxy is sending an extra CRLF. If you substitute the POE::Filter::Line->new( Literal => LINESEP) with POE::Filter::Stream (i.e. a no-op filter), the error goes away, confirming that its cause is indeed within the proxy and not due to the mail synchronizer. But of course the program needs to split the lines by CRLF for the label-extracting regexes to work correctly, so the filters are necessary.

I initially discovered this using mbsync -DN for learning purposes (in fact mbsync alone will complain), but it of course also takes place with offlineimap (offlineimap does not complain, you have to inspect the traffic).

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

No branches or pull requests

1 participant