mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Misc. fixes.
This commit is contained in:
@@ -598,7 +598,7 @@ def find_images_in_body(body):
|
||||
if src is None:
|
||||
continue
|
||||
o = urlparse(src)
|
||||
dirname = os.path.dirncme(o.path).replace(settings.MEDIA_URL, "")
|
||||
dirname = os.path.dirname(o.path).replace(settings.MEDIA_URL, "")
|
||||
fname = os.path.basename(o.path)
|
||||
cid = "%s@modoboa" % os.path.splitext(fname)[0]
|
||||
tag.set("src", "cid:%s" % cid)
|
||||
|
||||
@@ -197,13 +197,13 @@ textarea:hover {
|
||||
#box {
|
||||
/*border: 1px solid #ccc; */
|
||||
width: 200px;
|
||||
background: url(../pics/progressbar_bg.gif) right center no-repeat;
|
||||
background: url(../../pics/progressbar_bg.gif) right center no-repeat;
|
||||
height: 19px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#perc {
|
||||
background: url(../pics/progressbar.gif) right center no-repeat;
|
||||
background: url(../../pics/progressbar.gif) right center no-repeat;
|
||||
height: 19px;
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,8 @@ class Email(object):
|
||||
text, html, calendar, etc. All those contents can be displayed
|
||||
inside a navigator.
|
||||
"""
|
||||
if msg.get_content_subtype() == "calendar":
|
||||
if msg.get_content_subtype() not in ["plain", "html"]:
|
||||
self.__parse_default(msg, level)
|
||||
target = "plain"
|
||||
else:
|
||||
target = msg.get_content_subtype()
|
||||
|
||||
Reference in New Issue
Block a user