3 +-----------------------------------------------------------------------+
4 | program/steps/mail/headers.inc |
6 | This file is part of the Roundcube Webmail client |
7 | Copyright (C) 2005-2007, Roundcube Dev. - Switzerland |
8 | Licensed under the GNU GPL |
11 | Fetch message headers in raw format for display |
13 +-----------------------------------------------------------------------+
14 | Author: Aleksander Machniak <alec@alec.pl> |
15 +-----------------------------------------------------------------------+
17 $Id: headers.inc 3989 2010-09-25 13:03:53Z alec $
21 if ($uid = get_input_value('_uid', RCUBE_INPUT_POST))
23 $source = $IMAP->get_raw_headers($uid);
25 if ($source !== false) {
26 $source = htmlspecialchars(trim($source));
27 $source = preg_replace(
30 '/^([a-z0-9_:-]+)/im',
34 "\n ",
35 '<font class="bold">\1</font>',
39 $OUTPUT->command('set_headers', $source);
42 $RCMAIL->output->show_message('messageopenerror', 'error');