Update smtp-server with new LMTP server API #1
2 changed files with 5 additions and 17 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -2106,7 +2106,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smtp-message"
|
name = "smtp-message"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#8c01360230f21c20d4c2da462dcf62e8a801ce0f"
|
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#245cd13212db727d4085768b813a0ee09a137bc3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"auto_enums",
|
"auto_enums",
|
||||||
"futures",
|
"futures",
|
||||||
|
@ -2121,7 +2121,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smtp-server"
|
name = "smtp-server"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#8c01360230f21c20d4c2da462dcf62e8a801ce0f"
|
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#245cd13212db727d4085768b813a0ee09a137bc3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -2135,7 +2135,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smtp-server-types"
|
name = "smtp-server-types"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#8c01360230f21c20d4c2da462dcf62e8a801ce0f"
|
source = "git+http://github.com/Alexis211/kannader?branch=feature/lmtp#245cd13212db727d4085768b813a0ee09a137bc3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"smtp-message",
|
"smtp-message",
|
||||||
|
|
16
src/lmtp.rs
16
src/lmtp.rs
|
@ -88,7 +88,7 @@ pub struct Message {
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl Config for LmtpServer {
|
impl Config for LmtpServer {
|
||||||
const PROTOCOL: Protocol = Protocol::Lmtp;
|
type Protocol = smtp_server::protocol::Lmtp;
|
||||||
|
|
||||||
type ConnectionUserMeta = Conn;
|
type ConnectionUserMeta = Conn;
|
||||||
type MailUserMeta = Message;
|
type MailUserMeta = Message;
|
||||||
|
@ -155,19 +155,7 @@ impl Config for LmtpServer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn handle_mail<'a, R>(
|
async fn handle_mail<'a, 'slife0, 'slife1, 'stream, R>(
|
||||||
&self,
|
|
||||||
reader: &mut EscapedDataReader<'a, R>,
|
|
||||||
_mail: MailMetadata<Message>,
|
|
||||||
_conn_meta: &mut ConnectionMetadata<Conn>,
|
|
||||||
) -> Decision<()>
|
|
||||||
where
|
|
||||||
R: Send + Unpin + AsyncRead,
|
|
||||||
{
|
|
||||||
unreachable!();
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn handle_mail_multi<'a, 'slife0, 'slife1, 'stream, R>(
|
|
||||||
&'slife0 self,
|
&'slife0 self,
|
||||||
reader: &mut EscapedDataReader<'a, R>,
|
reader: &mut EscapedDataReader<'a, R>,
|
||||||
meta: MailMetadata<Message>,
|
meta: MailMetadata<Message>,
|
||||||
|
|
Loading…
Reference in a new issue