Add README
This commit is contained in:
parent
18d4e036a3
commit
74f27e1229
2 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
[package]
|
||||
name = "spamassassin-milter"
|
||||
version = "0.0.1"
|
||||
description = "Milter for spam filtering with SpamAssassin"
|
||||
authors = ["David Bürgin <dbuergin@gluet.ch>"]
|
||||
edition = "2018"
|
||||
keywords = ["email", "milter", "spam", "spamassassin"]
|
||||
categories = ["email"]
|
||||
license = "GPL-3.0-or-later"
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4"
|
||||
|
|
|
@ -170,11 +170,11 @@ fn handle_eoh(mut ctx: Context<Connection>) -> milter::Result<Status> {
|
|||
}
|
||||
|
||||
#[on_body(body_callback)]
|
||||
fn handle_body(mut ctx: Context<Connection>, content: &[u8]) -> milter::Result<Status> {
|
||||
fn handle_body(mut ctx: Context<Connection>, bytes: &[u8]) -> milter::Result<Status> {
|
||||
let conn = ctx.data.borrow_mut().unwrap();
|
||||
let client = conn.client.as_mut().unwrap();
|
||||
|
||||
client.send_body_chunk(content)?;
|
||||
client.send_body_chunk(bytes)?;
|
||||
|
||||
let max = config::get().max_message_size();
|
||||
Ok(if client.bytes_written() >= max {
|
||||
|
|
Loading…
Reference in a new issue