Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glpi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
GLPI
glpi
Commits
92bfc79e
Commit
92bfc79e
authored
Nov 13, 2020
by
Cédric Anne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle RFC5987 format in Content-Disposition header (single line)
parent
f13fadcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
tests/emails-tests/20-attachement-rfc5987-singleline.eml
tests/emails-tests/20-attachement-rfc5987-singleline.eml
+74
-0
tests/imap/MailCollector.php
tests/imap/MailCollector.php
+2
-0
No files found.
tests/emails-tests/20-attachement-rfc5987-singleline.eml
0 → 100644
View file @
92bfc79e
Return-Path
:
normal@glpi-project.org
Received
:
from 192.168.1.3 (LHLO mail.glpi-project.org) (192.168.1.3)
by mail.glpi-project.org with LMTP; Thu, 7 Jun 2018 12:05:51 +0200
(CEST)
Received
:
from mail.glpi-project.org (localhost [127.0.0.1])
by mail.glpi-project.org (Postfix) with ESMTP id 6E50A7E807FE
for <unittests@glpi-project.org>; Thu, 7 Jun 2018 12:05:51 +0200 (CEST)
Received
:
from localhost (localhost [127.0.0.1])
by mail.glpi-project.org (Postfix) with ESMTP id 5C15F7E80423
for <unittests@glpi-project.org>; Thu, 7 Jun 2018 12:05:51 +0200 (CEST)
Received
:
from mail.glpi-project.org ([127.0.0.1])
by localhost (mail.glpi-project.org [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id zZ35QyFtsE9R for <unittests@glpi-project.org>;
Thu, 7 Jun 2018 12:05:51 +0200 (CEST)
Received
:
from mail.glpi-project.org (localhost [127.0.0.1])
by mail.glpi-project.org (Postfix) with ESMTP id 214627E807E8
for <unittests@glpi-project.org>; Thu, 7 Jun 2018 12:05:51 +0200 (CEST)
Date
:
Thu, 7 Jun 2018 12:05:51 +0200 (CEST)
From
:
Normal User <normal@glpi-project.org>
To
:
GLPI debug <unittests@glpi-project.org>
Message-ID
:
<1695134010.1757889.1528365951040.JavaMail.zimbra@glpi-project.org>
In-Reply-To
:
<1954034179.1757759.1528365914864.JavaMail.zimbra@glpi-project.org>
Subject
:
Attachement having filename using RFC5987 (single line)
MIME-Version
:
1.0
Content-Type
:
multipart/alternative;
boundary="----=_Part_1757883_1359581901.1528365951028"
------=_Part_1757883_1359581901.1528365951028
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Attached image has special chars in its filename
------=_Part_1757883_1359581901.1528365951028
Content-Type: multipart/related;
boundary="----=_Part_1757884_1267006027.1528365951028"
------=_Part_1757884_1267006027.1528365951028
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html>
<body>
Attached image has special chars in its filename
<img src="cid:6f1f48de7c56cc3412e74008ad9f7c640091f5e3@zimbra">
</body>
</html>
------=_Part_1757884_1267006027.1528365951028
Content-Type: image/gif;
name="=?UTF-8?B?MjAtc3BlYyVDMyVBRmFsJTIwY2hhcnMuZ2lm?="
Content-Disposition: attachment;
filename*=UTF-8''20-spec%C3%AFal%20chars.gif
Content-Transfer-Encoding: base64
Content-ID: <6f1f48de7c56cc3412e74008ad9f7c640091f5e3@zimbra>
R0lGODlhBQAFAIcAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEA
AAAh+QQEAAAAACwAAAAABQAFAAAICwABCBxIsKBBggEBADs=
------=_Part_1757884_1267006027.1528365951028--
------=_Part_1757883_1359581901.1528365951028--
tests/imap/MailCollector.php
View file @
92bfc79e
...
...
@@ -333,6 +333,7 @@ class MailCollector extends DbTestCase {
'This is a mail without subject.'
,
// No subject = name is set using ticket contents
'Image tag splitted on multiple lines'
,
'Attachement having filename using RFC5987 (multiple lines)'
,
'Attachement having filename using RFC5987 (single line)'
,
'Mono-part HTML message'
,
]
],
...
...
@@ -399,6 +400,7 @@ class MailCollector extends DbTestCase {
'15-image001.png'
,
'18-blank.gif'
,
'19-ʂǷèɕɩɐɫ ȼɦâʁȿ.gif'
,
'20-specïal chars.gif'
,
];
$iterator
=
$DB
->
request
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment