188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
let text = mail.body_text(0)
.context("Failed to extract text from message")?
.replace("\r\n", "\n");
// 6:
// - (headers)
// - (mail text)
// - 6: </pre>
if text.len() < 4096 - ( reply.len() + 7 ) {
body = text;
text_num = 1;
}
};
let msg = format!("{}{}</pre>", reply, validate(&body).stack()?);
// and let's collect all other attachment parts
|
|
|
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
let text = mail.body_text(0)
.context("Failed to extract text from message")?
.replace("\r\n", "\n");
// 6:
// - (headers)
// - (mail text)
// - 6: </pre>
if text.len() < 4096 - ( reply.len() + 6 ) {
body = text;
text_num = 1;
}
};
let msg = format!("{}{}</pre>", reply, validate(&body).stack()?);
// and let's collect all other attachment parts
|