Revision 4416,
679 bytes
checked in by airton, 13 years ago
(diff) |
Ticket #1887 - Redefinicao do parser de email - Todas as adequacoes feitas no parser.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | * Requieres |
---|
4 | */ |
---|
5 | require_once '../../header.session.inc.php'; |
---|
6 | require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php'; |
---|
7 | //------------------------// |
---|
8 | |
---|
9 | /* |
---|
10 | * Get variables |
---|
11 | */ |
---|
12 | $msgFolder = $_GET['msg_folder']; |
---|
13 | $msgNumber = $_GET['msg_num']; |
---|
14 | $embeddedPart = $_GET['msg_part']; |
---|
15 | //-------------------------------------// |
---|
16 | |
---|
17 | |
---|
18 | /* |
---|
19 | * Main |
---|
20 | */ |
---|
21 | $attachmentObj = new attachment(); |
---|
22 | $attachmentObj->setStructureFromMail($msgFolder, $msgNumber); |
---|
23 | $fileContent = $attachmentObj->getAttachment($embeddedPart); |
---|
24 | |
---|
25 | header("Content-Type: image/jpeg"); |
---|
26 | header("Content-Disposition: inline"); |
---|
27 | |
---|
28 | echo $fileContent; |
---|
29 | //------------------------------------------// |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.