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
The imap service provided by 163.com could not be access. #190
Conversation
163 mail server will reject the command which with a number tag.
Could you add a setting in mailimap to tweak that behavior?
|
I think the two function had better defined as: |
@@ -2502,7 +2502,7 @@ mailimap * mailimap_new(size_t imap_progr_rate, | |||
|
|||
f->imap_logger = NULL; | |||
f->imap_logger_context = NULL; | |||
|
|||
f->complex_command_tag_enabled = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ";": the build failed.
I like mailimap_set_163_workaround_enabled() because it's self documenting. If you really like mailimap_set_complex_command_tag_enabled(), add a comment to describe what it's for. Also, I'm not sure that it makes the tag really complex either. |
changed ` int mailimap_is__complex_command_tag_enabled(mailimap * imap); ` ` void mailimap_set_complex_command_tag_enabled(mailimap * imap, int enabled);` to `int mailimap_is_163_workaround_enabled(mailimap * imap);` `void mailimap_set_163_workaround_enabled(mailimap * imap, int enabled);`
changed ` int mailimap_is__complex_command_tag_enabled(mailimap * imap); ` ` void mailimap_set_complex_command_tag_enabled(mailimap * imap, int enabled);` to `int mailimap_is_163_workaround_enabled(mailimap * imap);` `void mailimap_set_163_workaround_enabled(mailimap * imap, int enabled);`
changed mailimap's member `complex_command_tag_enabled` to `is_163_workaround_enabled`.
changed |
changed parameter name from `imap` to `session`.
Thanks! |
Implemented workaround for 163.com servers.
dinhvh#190 parse response
163 mail server will reject the command which with a number tag.
eg.
1 CAPABILITY
2 LOGIN USERNAME PASSWORD
3 CAPABILITY
4 LIST "" ""
5 ID NIL
6 SELECT INBOX
this command sequence above, will be reject at the last line by 163.com mail server, the response is:
6 NO SELECT The login is not safe! Please update your mail client: http://mail.163.com/dashi
if the command tag with some prefix character.this issue will be solved.