Misc. fixes.

This commit is contained in:
tonio
2010-10-25 17:45:44 +02:00
parent dbaaceb622
commit 1bad67de74
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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;
}
+2 -1
View File
@@ -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()