diff options
Diffstat (limited to 'src/smtp_server.rs')
| -rw-r--r-- | src/smtp_server.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/smtp_server.rs b/src/smtp_server.rs index 2805081..b4f59db 100644 --- a/src/smtp_server.rs +++ b/src/smtp_server.rs @@ -85,6 +85,13 @@ impl SessionHandler { loop { buffer.clear(); + // Technically emails could use any arbitrary encoding, not necessarily ASCII or UTF-8. + // If such encoding is ever encountered it would error on this line. + // + // For now we won't bother to check as it is unlikely, but it should be handled before + // deploying in production. + // + // TODO: Handle non UTF-8 encoding. if reader.read_line(&mut buffer).await? == 0 { break; } |
