Some corrections.

The test virus message is well detected by Amavis but not the spam one.

see #187
This commit is contained in:
Antoine Nguyen
2011-11-09 09:55:53 +01:00
parent 07f6f3e91e
commit beb861e22d
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ def menu(**kwargs):
return []
return [
{"name" : "demo",
"label" : _("Demo"),
"label" : _("Test messages"),
"img" : static_url("pics/demo.png"),
"class" : "topdropdown",
"menu" : [
+1
View File
@@ -1,4 +1,5 @@
# coding: utf-8
import os
from django.conf import settings
from django.contrib.auth.decorators import login_required
from modoboa.admin.lib import is_not_localadmin
-1
View File
@@ -228,7 +228,6 @@ def __sendmail(sender, rcpt, msgstring, server='localhost', port=25):
"""
try:
s = smtplib.SMTP(server, port)
s.connect()
s.sendmail(sender, [rcpt], msgstring)
s.quit()
except smtplib.SMTPException, e: