From 311d7fb96f6e1d4850d60078b5f9b276e5b8d9bd Mon Sep 17 00:00:00 2001 From: Gislene Pereira Date: Thu, 24 Dec 2015 19:28:04 -0200 Subject: Issue #557 - Fixed REGEX to receive attachments from Apple Mail. --- service/pixelated/adapter/mailstore/leap_mailstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py') diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index 5637e763..1fce388d 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -190,7 +190,7 @@ class LeapMail(Mail): def _extract_filename(content_disposition): - match = re.compile('.*name=\"(.*)\".*').search(content_disposition) + match = re.compile('.*name=\"?(.*[^\"\'])').search(content_disposition) filename = '' if match: filename = match.group(1) -- cgit v1.2.3