@@ -15,7 +15,7 @@ if specialuse_exists "dingleberry" {
|
||||
}
|
||||
|
||||
if specialuse_exists "archive" {
|
||||
error "A non-existant special-use exists.";
|
||||
error "A non-existent special-use exists.";
|
||||
}
|
||||
|
||||
# MailboxId tests
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
expect REPLYTO_UNPARSEABLE
|
||||
expect REPLYTO_UNPARSABLE
|
||||
|
||||
Reply-to: hello
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
// John shoud have ReadItems access to Inbox
|
||||
// John should have ReadItems access to Inbox
|
||||
assert_eq!(
|
||||
john_client
|
||||
.set_default_account_id(&jane_id.to_string())
|
||||
|
||||
@@ -498,7 +498,7 @@ impl SmtpConnection {
|
||||
|
||||
pub trait AssertResult: Sized {
|
||||
fn assert_contains(self, text: &str) -> Self;
|
||||
fn assert_count(self, text: &str, occurences: usize) -> Self;
|
||||
fn assert_count(self, text: &str, occurrences: usize) -> Self;
|
||||
fn assert_equals(self, text: &str) -> Self;
|
||||
}
|
||||
|
||||
@@ -512,12 +512,12 @@ impl AssertResult for Vec<String> {
|
||||
panic!("Expected response to contain {:?}, got {:?}", text, self);
|
||||
}
|
||||
|
||||
fn assert_count(self, text: &str, occurences: usize) -> Self {
|
||||
fn assert_count(self, text: &str, occurrences: usize) -> Self {
|
||||
assert_eq!(
|
||||
self.iter().filter(|l| l.contains(text)).count(),
|
||||
occurences,
|
||||
occurrences,
|
||||
"Expected {} occurrences of {:?}, found {}.",
|
||||
occurences,
|
||||
occurrences,
|
||||
text,
|
||||
self.iter().filter(|l| l.contains(text)).count()
|
||||
);
|
||||
|
||||
@@ -290,7 +290,7 @@ async fn dmarc() {
|
||||
.await;
|
||||
qr.assert_no_events();
|
||||
|
||||
// Messagess passing DMARC should be accepted
|
||||
// Messages passing DMARC should be accepted
|
||||
session
|
||||
.send_message(
|
||||
"bill@example.com",
|
||||
|
||||
@@ -303,7 +303,7 @@ async fn mail() {
|
||||
assert_eq!(session.data.future_release, 10);
|
||||
session.rset().await;
|
||||
|
||||
// Test FUTURERELEASE extension with invalud HOLDUNTIL value
|
||||
// Test FUTURERELEASE extension with invalid HOLDUNTIL value
|
||||
session
|
||||
.ingest(format!("MAIL FROM:<jane@foobar.org> HOLDUNTIL={}\r\n", now + 99999).as_bytes())
|
||||
.await
|
||||
|
||||
@@ -220,7 +220,7 @@ async fn lookup_sql() {
|
||||
// External domain
|
||||
session.rcpt_to("user@otherdomain.org", "550 5.1.2").await;
|
||||
|
||||
// Non-existant user
|
||||
// Non-existent user
|
||||
session.rcpt_to("jack@foobar.org", "550 5.1.2").await;
|
||||
|
||||
// Valid users
|
||||
|
||||
Reference in New Issue
Block a user