diff options
author | Gislene Pereira <gislene01@gmail.com> | 2015-12-24 19:28:04 -0200 |
---|---|---|
committer | Gislene Pereira <gislene01@gmail.com> | 2015-12-24 19:28:04 -0200 |
commit | 311d7fb96f6e1d4850d60078b5f9b276e5b8d9bd (patch) | |
tree | 384857aa637c200c81171719d2ff79bec81b5fda /service/pixelated/adapter/mailstore/leap_mailstore.py | |
parent | 5b32f9f9d10e3de3cd142414e40b75d1672a076e (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.py | 2 |
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) |