Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

workaround for Exchange issue

  • Loading branch information...
commit 77900c92219a101f23a9a15632855e5e6a46acd6 1 parent 113dd97
Hoà V. DINH dinhviethoa authored

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. +10 1 src/low-level/imap/mailimap_parser.c
11 src/low-level/imap/mailimap_parser.c
@@ -3018,12 +3018,21 @@ mailimap_single_body_fld_param_parse(mailstream * fd, MMAPString * buffer,
3018 3018 }
3019 3019
3020 3020 if (!workaround_used) {
3021   - r = mailimap_string_parse(fd, buffer, &cur_token, &value, NULL,
  3021 + // also parse NIL to workaround Exchange issue
  3022 + r = mailimap_nstring_parse(fd, buffer, &cur_token, &value, NULL,
3022 3023 progr_rate, progr_fun);
3023 3024 if (r != MAILIMAP_NO_ERROR) {
3024 3025 res = r;
3025 3026 goto free_name;
3026 3027 }
  3028 +
  3029 + if (value == NULL) {
  3030 + value = strdup("");
  3031 + if (value == NULL) {
  3032 + res = MAILIMAP_ERROR_MEMORY;
  3033 + goto free_name;
  3034 + }
  3035 + }
3027 3036 }
3028 3037
3029 3038 param = mailimap_single_body_fld_param_new(name, value);

0 comments on commit 77900c9

Please sign in to comment.
Something went wrong with that request. Please try again.