summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore/leap_mailstore.py
diff options
context:
space:
mode:
authorGislene Pereira <gislene01@gmail.com>2015-12-24 19:28:04 -0200
committerGislene Pereira <gislene01@gmail.com>2015-12-24 19:28:04 -0200
commit311d7fb96f6e1d4850d60078b5f9b276e5b8d9bd (patch)
tree384857aa637c200c81171719d2ff79bec81b5fda /service/pixelated/adapter/mailstore/leap_mailstore.py
parent5b32f9f9d10e3de3cd142414e40b75d1672a076e (diff)
Issue #557 - Fixed REGEX to receive attachments from Apple Mail.
Diffstat (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py2
1 files changed, 1 insertions, 1 deletions
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)