Lewis: May this revision serve well! lu5a@proton.me
+3
-15
crates/tranquil-comms/src/email/message.rs
+3
-15
crates/tranquil-comms/src/email/message.rs
···
107
107
fn subject_crlf_does_not_inject_headers() {
108
108
let msg = build(
109
109
&from_mailbox(),
110
-
&fixture(
111
-
"user@nel.pet",
112
-
Some("hi\r\nBcc: evil@nel.pet"),
113
-
"body",
114
-
),
110
+
&fixture("user@nel.pet", Some("hi\r\nBcc: evil@nel.pet"), "body"),
115
111
)
116
112
.expect("subject CRLF should be encoded, not rejected");
117
113
let raw = String::from_utf8(msg.formatted()).unwrap();
···
127
123
128
124
#[test]
129
125
fn message_id_uses_from_domain() {
130
-
let msg = build(
131
-
&from_mailbox(),
132
-
&fixture("user@nel.pet", Some("s"), "b"),
133
-
)
134
-
.unwrap();
126
+
let msg = build(&from_mailbox(), &fixture("user@nel.pet", Some("s"), "b")).unwrap();
135
127
let raw = String::from_utf8(msg.formatted()).unwrap();
136
128
let line = raw
137
129
.lines()
···
152
144
153
145
#[test]
154
146
fn recipient_domain_extracted() {
155
-
let msg = build(
156
-
&from_mailbox(),
157
-
&fixture("user@Nel.PET", Some("s"), "b"),
158
-
)
159
-
.unwrap();
147
+
let msg = build(&from_mailbox(), &fixture("user@Nel.PET", Some("s"), "b")).unwrap();
160
148
let d = recipient_domain(&msg).unwrap();
161
149
assert_eq!(d.as_str(), "nel.pet");
162
150
}
crates/tranquil-comms/src/email/mx.rs
crates/tranquil-comms/src/email/mx.rs
This file has not been changed.
History
4 rounds
0 comments
oyster.cafe
submitted
#3
1 commit
expand
collapse
feat(tranquil-comms): message construction and mx resolution
Lewis: May this revision serve well! <lu5a@proton.me>
merge conflicts detected
expand
collapse
expand
collapse
- .config/nextest.toml:68
- Cargo.lock:9
- Cargo.toml:26
- crates/tranquil-comms/Cargo.toml:10
- crates/tranquil-config/src/lib.rs:5
- example.toml:373
expand 0 comments
oyster.cafe
submitted
#2
1 commit
expand
collapse
feat(tranquil-comms): message construction and mx resolution
Lewis: May this revision serve well! <lu5a@proton.me>
expand 0 comments
oyster.cafe
submitted
#1
1 commit
expand
collapse
feat(tranquil-comms): message construction and mx resolution
Lewis: May this revision serve well! <lu5a@proton.me>
expand 0 comments
oyster.cafe
submitted
#0
1 commit
expand
collapse
feat(tranquil-comms): message construction and mx resolution
Lewis: May this revision serve well! <lu5a@proton.me>