Use the correct folder to store inline images.

see #253
This commit is contained in:
Antoine Nguyen
2012-06-05 11:51:04 +02:00
parent 6cfa686e91
commit 86f6130490
+1 -1
View File
@@ -254,7 +254,7 @@ class ImapEmail(Email):
for cid, params in self.bs.inlines.iteritems():
if re.search("\.\.", cid):
continue
fname = "static/tmp/%s_%s" % (self.mailid, cid)
fname = "media/webmail/%s_%s" % (self.mailid, cid)
path = os.path.join(settings.MODOBOA_DIR, fname)
params["fname"] = "/%s" % fname
if os.path.exists(path):