File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5147,9 +5147,11 @@ mod tests {
5147
5147
// Alice has an SMTP-server replacing the `Message-ID:`-header (as done eg. by outlook.com).
5148
5148
let sent_msg = alice. pop_sent_msg ( ) . await ;
5149
5149
let msg = sent_msg. payload ( ) ;
5150
- assert_eq ! ( msg. match_indices( "Gr." ) . count( ) , 2 ) ;
5150
+ assert_eq ! ( msg. match_indices( "Message-ID: <Gr." ) . count( ) , 1 ) ;
5151
+ assert_eq ! ( msg. match_indices( "References: <Gr." ) . count( ) , 1 ) ;
5151
5152
let msg = msg. replace ( "Message-ID: <Gr." , "Message-ID: <XXX" ) ;
5152
- assert_eq ! ( msg. match_indices( "Gr." ) . count( ) , 1 ) ;
5153
+ assert_eq ! ( msg. match_indices( "Message-ID: <Gr." ) . count( ) , 0 ) ;
5154
+ assert_eq ! ( msg. match_indices( "References: <Gr." ) . count( ) , 1 ) ;
5153
5155
5154
5156
// Bob receives this message, he may detect group by `References:`- or `Chat-Group:`-header
5155
5157
receive_imf ( & bob, msg. as_bytes ( ) , false ) . await . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments