4 +-----------------------------------------------------------------------+
5 | program/steps/mail/viewsource.inc |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Display a mail message similar as a usual mail application does |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: viewsource.inc 2237 2009-01-17 01:55:39Z till $
23 // similar code as in program/steps/mail/get.inc
24 if ($uid = get_input_value('_uid', RCUBE_INPUT_GET))
26 $headers = $IMAP->get_headers($uid);
27 $charset = $headers->charset ? $headers->charset : $IMAP->default_charset;
28 header("Content-Type: text/plain; charset={$charset}");
29 $IMAP->print_raw_body($uid);
36 'message' => 'Message UID '.$uid.' not found'),