mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +03:00
Add smtp table
It replaces SendMsgToSmtp job. Prepared outgoing SMTP payloads are stored in the database now rather than files in blobdir.
This commit is contained in:
@@ -30,7 +30,7 @@ impl Smtp {
|
||||
context: &Context,
|
||||
recipients: Vec<EmailAddress>,
|
||||
message: Vec<u8>,
|
||||
job_id: u32,
|
||||
rowid: i64,
|
||||
) -> Result<()> {
|
||||
let message_len_bytes = message.len();
|
||||
|
||||
@@ -52,7 +52,7 @@ impl Smtp {
|
||||
.map_err(Error::Envelope)?;
|
||||
let mail = SendableEmail::new(
|
||||
envelope,
|
||||
format!("{}", job_id), // only used for internal logging
|
||||
rowid.to_string(), // only used for internal logging
|
||||
&message,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user