271 |
|
|
272 |
|
void IMAPHandler::putline(const string line) |
273 |
|
{ |
274 |
– |
if (debug) cerr << line << "\n"; |
275 |
– |
|
274 |
|
istringstream lines(line); |
275 |
|
|
276 |
|
while (lines.good()) |
278 |
|
string line; |
279 |
|
|
280 |
|
std::getline(lines, line); |
281 |
+ |
if (debug) cerr << line << "\n"; |
282 |
+ |
|
283 |
|
sprintf(buffer, "%s\r\n", line.c_str()); |
284 |
|
|
285 |
+ |
// for (unsigned index = 0; index < strlen(buffer); index++) |
286 |
+ |
// { |
287 |
+ |
// cout << "\"" << buffer[index] << "\" = " << int(buffer[index]) |
288 |
+ |
// << "\n"; |
289 |
+ |
// } |
290 |
+ |
|
291 |
|
if (tls) |
292 |
|
{ |
293 |
|
if (int code = SSL_write(ssl, buffer, strlen(buffer)) <= 0) |