aboutsummaryrefslogtreecommitdiff
path: root/src/lmtp.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-21 11:26:04 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-21 11:26:04 +0200
commitc04b16a601c180c768cee805363ae0c6985d767a (patch)
tree5d297876e08fefce329ff8b6641bec68fba30174 /src/lmtp.rs
parentca4c2e7505f28acad688705d45cc5c5dca1799c3 (diff)
downloadaerogramme-update-smtp-server.tar.gz
aerogramme-update-smtp-server.zip
Update smtp-server with new LMTP server APIupdate-smtp-server
Diffstat (limited to 'src/lmtp.rs')
-rw-r--r--src/lmtp.rs16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lmtp.rs b/src/lmtp.rs
index 049e119..55da3ee 100644
--- a/src/lmtp.rs
+++ b/src/lmtp.rs
@@ -88,7 +88,7 @@ pub struct Message {
#[async_trait]
impl Config for LmtpServer {
- const PROTOCOL: Protocol = Protocol::Lmtp;
+ type Protocol = smtp_server::protocol::Lmtp;
type ConnectionUserMeta = Conn;
type MailUserMeta = Message;
@@ -155,19 +155,7 @@ impl Config for LmtpServer {
}
}
- async fn handle_mail<'a, 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>(
+ async fn handle_mail<'a, 'slife0, 'slife1, 'stream, R>(
&'slife0 self,
reader: &mut EscapedDataReader<'a, R>,
meta: MailMetadata<Message>,