commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| program/steps/mail/viewsource.inc | |
|
6 |
| | |
|
7 |
| This file is part of the RoundCube Webmail client | |
|
8 |
| Copyright (C) 2005, RoundCube Dev. - Switzerland | |
30233b
|
9 |
| Licensed under the GNU GPL | |
4e17e6
|
10 |
| | |
T |
11 |
| PURPOSE: | |
|
12 |
| Display a mail message similar as a usual mail application does | |
|
13 |
| | |
|
14 |
+-----------------------------------------------------------------------+ |
|
15 |
| Author: Thomas Bruederli <roundcube@gmail.com> | |
|
16 |
+-----------------------------------------------------------------------+ |
|
17 |
|
|
18 |
$Id$ |
|
19 |
|
|
20 |
*/ |
|
21 |
|
|
22 |
|
|
23 |
// similar code as in program/steps/mail/get.inc |
|
24 |
if ($_GET['_uid']) |
|
25 |
{ |
|
26 |
header('Content-Type: text/plain'); |
|
27 |
print rcmail_message_source($_GET['_uid']); |
|
28 |
} |
|
29 |
else |
|
30 |
{ |
|
31 |
raise_error(array('code' => 500, |
|
32 |
'type' => 'php', |
|
33 |
'message' => 'Message UID '.$_GET['_uid'].' not found'), |
|
34 |
TRUE, |
|
35 |
TRUE); |
|
36 |
} |
|
37 |
|
|
38 |
exit; |
|
39 |
?> |