mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 06:46:35 +03:00
test: Revert Mark receive_imf() as only for tests and "internals" feature
Unfortunately, this made compiling the `receive_emails` benchmark fail because it depends on `receive_imf()`, and I don't think there is a nice way to enable this function for the benchmark.
This commit is contained in:
@@ -73,7 +73,6 @@ pub struct ReceivedMsg {
|
|||||||
///
|
///
|
||||||
/// This method returns errors on a failure to parse the mail or extract Message-ID. It's only used
|
/// This method returns errors on a failure to parse the mail or extract Message-ID. It's only used
|
||||||
/// for tests and REPL tool, not actual message reception pipeline.
|
/// for tests and REPL tool, not actual message reception pipeline.
|
||||||
#[cfg(any(test, feature = "internals"))]
|
|
||||||
pub async fn receive_imf(
|
pub async fn receive_imf(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
imf_raw: &[u8],
|
imf_raw: &[u8],
|
||||||
@@ -106,7 +105,6 @@ pub async fn receive_imf(
|
|||||||
/// Emulates reception of a message from "INBOX".
|
/// Emulates reception of a message from "INBOX".
|
||||||
///
|
///
|
||||||
/// Only used for tests and REPL tool, not actual message reception pipeline.
|
/// Only used for tests and REPL tool, not actual message reception pipeline.
|
||||||
#[cfg(any(test, feature = "internals"))]
|
|
||||||
pub(crate) async fn receive_imf_from_inbox(
|
pub(crate) async fn receive_imf_from_inbox(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
rfc724_mid: &str,
|
rfc724_mid: &str,
|
||||||
|
|||||||
Reference in New Issue
Block a user