mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Some corrections.
The test virus message is well detected by Amavis but not the spam one. see #187
This commit is contained in:
+1
-1
@@ -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,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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user