summaryrefslogtreecommitdiffstats
path: root/src/lmtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-02-25 19:18:03 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-02-25 19:18:03 +0300
commit5d77f4552b6e39ab1072d2c91b219dac2498ac88 (patch)
tree1b8993e84902ba015d93433306d83904eab175de /src/lmtp.c
parentb9a9496cc4cd6619fc1a7c6a59d39e7147a9f20e (diff)
downloadrspamd-5d77f4552b6e39ab1072d2c91b219dac2498ac88.tar.gz
rspamd-5d77f4552b6e39ab1072d2c91b219dac2498ac88.zip
* Add support of LMTP/SMTP delivery
Diffstat (limited to 'src/lmtp.c')
-rw-r--r--src/lmtp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lmtp.c b/src/lmtp.c
index f7aec0bdf..f2546e55a 100644
--- a/src/lmtp.c
+++ b/src/lmtp.c
@@ -163,8 +163,12 @@ write_socket (void *arg)
switch (lmtp->task->state) {
case WRITE_REPLY:
- write_lmtp_reply (lmtp);
- lmtp->task->state = CLOSING_CONNECTION;
+ if (write_lmtp_reply (lmtp) == 1) {
+ lmtp->task->state = WAIT_FILTER;
+ }
+ else {
+ lmtp->task->state = CLOSING_CONNECTION;
+ }
break;
case WRITE_ERROR:
write_lmtp_reply (lmtp);