]> git.donarmstrong.com Git - roundcube.git/blob - program/steps/mail/viewsource.inc
Imported Upstream version 0.1~rc1~dfsg
[roundcube.git] / program / steps / mail / viewsource.inc
1 <?php
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                      |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
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: viewsource.inc 320 2006-08-18 12:48:33Z thomasb $
19
20 */
21
22
23 // similar code as in program/steps/mail/get.inc
24 if ($uid = get_input_value('_uid', RCUBE_INPUT_GET))
25   {
26   header('Content-Type: text/plain');
27   //@ob_end_clean();
28   $IMAP->print_raw_body($uid);
29   }
30 else
31   {
32   raise_error(array('code' => 500,
33                     'type' => 'php',
34                     'message' => 'Message UID '.$uid.' not found'),
35               TRUE,
36               TRUE);
37   }
38
39 exit;
40 ?>