Overview
Comment: | mess with header/body formatting |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
667b874fdb55a2b1834d0bb9cc95ee9a |
User & Date: | arcade on 2024-05-22 13:39:26.263 |
Other Links: | manifest | tags |
Context
2024-05-22
| ||
15:11 | fix parsing a little... check-in: 03fe0265ac user: arcade tags: trunk | |
13:39 | mess with header/body formatting check-in: 667b874fdb user: arcade tags: trunk | |
13:31 | use LMTP for socket server check-in: 51adce1e7e user: arcade tags: trunk | |
Changes
Modified src/main.rs
from [e0c853214b]
to [1db19902b5].
︙ | |||
87 88 89 90 91 92 93 | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - + - + - + - + | rcpt.insert(core.default); core.debug("No recipient or envelope address.").await.unwrap(); }; // prepating message header let mut reply: Vec<Cow<str>> = vec![]; if let Some(subject) = mail.subject() { |
︙ | |||
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | + + | if body == "" && text_parts > 0 { let text = mail.body_text(0).unwrap(); if text.len() < 4096 - header_size { body = text; text_num = 1; } }; reply.push("```".into()); reply.push(body); reply.push("```".into()); // and let's coillect 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).unwrap()); |
︙ |