fix unit tests
This commit is contained in:
parent
6ca7082197
commit
742beeeafb
3 changed files with 8 additions and 9 deletions
|
@ -1347,7 +1347,6 @@ END:VCALENDAR]]></C:calendar-timezone>
|
||||||
name: ComponentProperty("STATUS".into()),
|
name: ComponentProperty("STATUS".into()),
|
||||||
additional_rules: Some(PropFilterRules::Match(
|
additional_rules: Some(PropFilterRules::Match(
|
||||||
PropFilterMatch {
|
PropFilterMatch {
|
||||||
time_range: None,
|
|
||||||
param_filter: vec![],
|
param_filter: vec![],
|
||||||
time_or_text: Some(TimeOrText::Text(TextMatch {
|
time_or_text: Some(TimeOrText::Text(TextMatch {
|
||||||
collation: None,
|
collation: None,
|
||||||
|
|
|
@ -638,13 +638,13 @@ mod tests {
|
||||||
use imap_codec::ResponseCodec;
|
use imap_codec::ResponseCodec;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
use crate::cryptoblob;
|
use aero_user::cryptoblob;
|
||||||
|
use aero_collections::mail::mailbox::MailMeta;
|
||||||
|
use aero_collections::mail::query::QueryResult;
|
||||||
|
use aero_collections::unique_ident;
|
||||||
|
|
||||||
use crate::imap::index::MailIndex;
|
use crate::imap::index::MailIndex;
|
||||||
use crate::imap::mail_view::MailView;
|
|
||||||
use crate::imap::mime_view;
|
use crate::imap::mime_view;
|
||||||
use crate::mail::mailbox::MailMeta;
|
|
||||||
use crate::mail::query::QueryResult;
|
|
||||||
use crate::mail::unique_ident;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn mailview_body_ext() -> Result<()> {
|
fn mailview_body_ext() -> Result<()> {
|
||||||
|
@ -745,8 +745,8 @@ mod tests {
|
||||||
|
|
||||||
for pref in prefixes.iter() {
|
for pref in prefixes.iter() {
|
||||||
println!("{}", pref);
|
println!("{}", pref);
|
||||||
let txt = fs::read(format!("{}.eml", pref))?;
|
let txt = fs::read(format!("../{}.eml", pref))?;
|
||||||
let oracle = fs::read(format!("{}.dovecot.body", pref))?;
|
let oracle = fs::read(format!("../{}.dovecot.body", pref))?;
|
||||||
let message = eml_codec::parse_message(&txt).unwrap().1;
|
let message = eml_codec::parse_message(&txt).unwrap().1;
|
||||||
|
|
||||||
let test_repr = Response::Data(Data::Fetch {
|
let test_repr = Response::Data(Data::Fetch {
|
||||||
|
|
|
@ -33,7 +33,7 @@ pub enum BodySection<'a> {
|
||||||
///
|
///
|
||||||
/// Example of message sections:
|
/// Example of message sections:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```text
|
||||||
/// HEADER ([RFC-2822] header of the message)
|
/// HEADER ([RFC-2822] header of the message)
|
||||||
/// TEXT ([RFC-2822] text body of the message) MULTIPART/MIXED
|
/// TEXT ([RFC-2822] text body of the message) MULTIPART/MIXED
|
||||||
/// 1 TEXT/PLAIN
|
/// 1 TEXT/PLAIN
|
||||||
|
|
Loading…
Reference in a new issue