mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-26 06:08:38 +01:00
At last, composing messages with attachments is possible!!
It is a really simple implementation but I think it will be enough for a begining. Users can add multiple attachments with a message, each attachment must not be larger than a customizable limit. see #38
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ def save_admin(name, value, app=None):
|
||||
p = Parameter()
|
||||
p.name = fullname
|
||||
if p.value != value:
|
||||
p.value = str(value).encode("string_escape")
|
||||
p.value = str(value).encode("string_escape").strip()
|
||||
p.save()
|
||||
return True
|
||||
|
||||
@@ -105,7 +105,7 @@ def save_user(user, name, value, app=None):
|
||||
p.user = user
|
||||
p.name = fullname
|
||||
if p.value != value:
|
||||
p.value = str(value).encode("string_escape")
|
||||
p.value = str(value).encode("string_escape").strip()
|
||||
p.save()
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user