Skip to content

Commit

Permalink
Fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Mar 5, 2017
1 parent e7e9be4 commit b4e7a7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modoboa_webmail/lib/attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, request=None):
self.total_upload = 0
self.toobig = False
self.maxsize = size2integer(
param_tools.get_globa_parameter("max_attachment_size"))
param_tools.get_global_parameter("max_attachment_size"))

def receive_data_chunk(self, raw_data, start):
self.total_upload += len(raw_data)
Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/lib/sendmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def send_mail(request, form, posturl=None):
msg[hdr.capitalize()] = prepare_addresses(form.cleaned_data[hdr])
rcpts += prepare_addresses(form.cleaned_data[hdr], "envelope")
try:
conf = dict(param_tools.get_globa_parameters("modoboa_webmail"))
conf = dict(param_tools.get_global_parameters("modoboa_webmail"))
if conf["smtp_secured_mode"] == "ssl":
s = smtplib.SMTP_SSL(conf["smtp_server"], conf["smtp_port"])
else:
Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def attachments(request, tplname="modoboa_webmail/attachments.html"):
if csuploader.toobig:
error = (
_("Attachment is too big (limit: %s)") %
param_tools.get_globa_parameter("max_attachment_size"))
param_tools.get_global_parameter("max_attachment_size"))
return render(request, "modoboa_webmail/upload_done.html", {
"status": "ko", "error": error
})
Expand Down

0 comments on commit b4e7a7a

Please sign in to comment.