Overview
| Comment: | change how text size is calculated - calculate after replacements |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
db04f7359b24b432a11091568c2ca0fd |
| User & Date: | arcade on 2026-01-18 09:23:47.089 |
| Other Links: | manifest | tags |
Context
|
2026-01-18
| ||
| 09:25 | bump check-in: d036a09127 user: arcade tags: trunk | |
| 09:23 | change how text size is calculated - calculate after replacements check-in: db04f7359b user: arcade tags: trunk | |
| 09:17 | disable double github action check-in: 8e37b3f028 user: arcade tags: trunk | |
Changes
Modified src/mail.rs
from [d81e2bb00e]
to [420cd8d808].
| ︙ | ︙ | |||
184 185 186 187 188 189 190 191 192 193 194 195 |
}
};
*/
if body.is_empty() && text_parts > 0 {
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 ) {
| > | | | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
}
};
*/
if body.is_empty() && text_parts > 0 {
let text = mail.body_text(0)
.context("Failed to extract text from message")?
.replace("\r\n", "\n");
let text = validate(&text).stack()?;
// 6:
// - (headers)
// - (mail text)
// - 6: </pre>
if text.len() < 4096 - ( reply.len() + 6 ) {
body = text.to_string();
text_num = 1;
}
};
let msg = format!("{}{}</pre>", reply, body);
// and let's collect all other attachment parts
let mut files_to_send = vec![];
/*
* let's just skip html parts for now, they just duplicate text?
while html_num < html_parts {
files_to_send.push(mail.html_part(html_num).stack()?);
|
| ︙ | ︙ |