Our Personal Data Server from scratch! tranquil.farm
pds rust database fun oauth atproto
238
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(tranquil-comms): message construction and mx resolution #7

open opened by oyster.cafe targeting main from feat/inline-emailing
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mkuoecys4x22
+3 -15
Interdiff #0 #1
+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

This file has not been changed.

History

4 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
feat(tranquil-comms): message construction and mx resolution
merge conflicts detected
expand
  • .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
1 commit
expand
feat(tranquil-comms): message construction and mx resolution
expand 0 comments
1 commit
expand
feat(tranquil-comms): message construction and mx resolution
expand 0 comments
1 commit
expand
feat(tranquil-comms): message construction and mx resolution
expand 0 comments