From 86f61304908d535b7c4ddb3a810ae0c01e8853c2 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 5 Jun 2012 11:51:04 +0200 Subject: [PATCH] Use the correct folder to store inline images. see #253 --- extensions/webmail/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/webmail/lib.py b/extensions/webmail/lib.py index 7476f3a77..ce07b19e5 100644 --- a/extensions/webmail/lib.py +++ b/extensions/webmail/lib.py @@ -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):