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: mark.inc 1580 2008-06-30 09:36:18Z alec $
21 if ($uid = get_input_value('_uid', RCUBE_INPUT_POST))
23 $source = $IMAP->get_raw_headers($uid);
27 $browser = new rcube_browser;
30 $source = rc_utf8_clean($source);
32 $source = htmlspecialchars(trim($source));
33 $source = preg_replace('/\t/', ' ', $source);
34 $source = preg_replace('/^([a-z0-9_:-]+)/im', '<font class="bold">'.'\1'.'</font>', $source);
35 $source = preg_replace('/\r?\n/', '<br />', $source);
37 $OUTPUT->command('set_headers', $source);