aboutsummaryrefslogtreecommitdiff
path: root/src/imap
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-07-08 10:23:07 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-07-08 10:23:07 +0200
commit9675cdb545a139984a2d765397f3a5e26472a49e (patch)
tree5fc4cd78c92e1458e12688a0ee93b3a52c45d289 /src/imap
parentaa6580e0c3fe577283ea1e9d17c092ab8f8a64b0 (diff)
downloadaerogramme-9675cdb545a139984a2d765397f3a5e26472a49e.tar.gz
aerogramme-9675cdb545a139984a2d765397f3a5e26472a49e.zip
Use CRLF as line ending in test files
Diffstat (limited to 'src/imap')
-rw-r--r--src/imap/mailbox_view.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index 29fb98a..bffcd9b 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -851,7 +851,7 @@ mod tests {
for pref in prefixes.iter() {
println!("{}", pref);
let txt = fs::read(format!("{}.eml", pref))?;
- let exp = fs::read(format!("{}.body", pref))?;
+ let exp = fs::read(format!("{}.dovecot.body", pref))?;
let message = Message::parse(&txt).unwrap();
let mut resp = Vec::new();
@@ -864,6 +864,7 @@ mod tests {
let exp_str = String::from_utf8_lossy(exp_no_parenthesis).to_lowercase();
println!("aerogramme: {}\ndovecot: {}", resp_str, exp_str);
+ //println!("\n\n {} \n\n", String::from_utf8_lossy(&resp));
assert_eq!(resp_str, exp_str);
}