Switch to unified view

a/src/bincimapmime/mime-parseonlyheader.cc b/src/bincimapmime/mime-parseonlyheader.cc
...
...
124
      if (c == '\n') {
124
      if (c == '\n') {
125
    for (int i = name.length() - 1; i >= 0; --i)
125
    for (int i = name.length() - 1; i >= 0; --i)
126
      mimeSource->ungetChar();
126
      mimeSource->ungetChar();
127
127
128
    quit = true;
128
    quit = true;
129
  name = "";
129
  name.clear();
130
    break;
130
    break;
131
      }
131
      }
132
132
133
      name += c;
133
      name += c;
134
134
135
      if (name.length() == 2 && name.substr(0, 2) == "\r\n") {
135
      if (name.length() == 2 && name.substr(0, 2) == "\r\n") {
136
  name = "";
136
  name.clear();
137
    quit = true;
137
    quit = true;
138
    break;
138
    break;
139
      }
139
      }
140
    }
140
    }
141
141
142
    if (name.length() == 1 && name[0] == '\r') {
142
    if (name.length() == 1 && name[0] == '\r') {
143
      name = "";
143
      name.clear();
144
      break;
144
      break;
145
    }
145
    }
146
146
147
    if (quit) break;
147
    if (quit) break;
148
148
...
...
173
173
174
      trim(content);
174
      trim(content);
175
      h.add(name, content);
175
      h.add(name, content);
176
176
177
      name = c;
177
      name = c;
178
    content = "";
178
    content.clear();
179
      break;
179
      break;
180
    }
180
    }
181
      }
181
      }
182
182
183
      content += c;
183
      content += c;