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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d2e1b2
Update mailimap.c
zhanleewo f0f5b4a
Update mailimap.c
zhanleewo ce9989d
Update mailimap_types.h
zhanleewo 09c5ad3
Update mailimap.h
zhanleewo dc4410f
Update mailimap.h
zhanleewo 382bccb
Update mailimap.c
zhanleewo 1ea3f88
Update mailimap.c
zhanleewo 293143a
Update mailimap.c
zhanleewo 00b201e
Update mailimap.h
zhanleewo 12f9dd8
Update mailimap_types.h
zhanleewo 40518e0
Update mailimap.h
zhanleewo 4175a4e
Update mailimap.c
zhanleewo d3770a9
Update mailimap.c
zhanleewo File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2309,7 +2309,7 @@ int mailimap_send_current_tag(mailimap * session) | |
int r; | ||
|
||
session->imap_tag ++; | ||
snprintf(tag_str, 15, "%i", session->imap_tag); | ||
snprintf(tag_str, 15, "C%i", session->imap_tag); | ||
|
||
r = mailimap_tag_send(session->imap_stream, tag_str); | ||
if (r != MAILIMAP_NO_ERROR) | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. missing ";": the build failed. |
||
return f; | ||
|
||
free_stream_buffer: | ||
|
@@ -2590,3 +2590,13 @@ void mailimap_set_logger(mailimap * session, void (* logger)(mailimap * session, | |
session->imap_logger = logger; | ||
session->imap_logger_context = logger_context; | ||
} | ||
|
||
LIBETPAN_EXPORT | ||
void mailimap_set_complex_command_tag_enabled(mailimap * imap, int enabled) { | ||
imap->complex_command_tag_enabled = enabled; | ||
} | ||
|
||
LIBETPAN_EXPORT | ||
int mailimap_is_complex_command_tag_enabled(mailimap * imap) { | ||
return imap->complex_command_tag_enabled; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You should use the value of the flag to decide which version of the tag to use.