From 91d7d2e8e58f5858a49f17e259ef597ccecea2a9 Mon Sep 17 00:00:00 2001 From: roundcube Date: Sun, 25 Sep 2005 14:18:03 +0000 Subject: Initial revision git-svn-id: https://svn.roundcube.net/trunk@3 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/viewsource.inc | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 roundcubemail/program/steps/mail/viewsource.inc (limited to 'roundcubemail/program/steps/mail/viewsource.inc') diff --git a/roundcubemail/program/steps/mail/viewsource.inc b/roundcubemail/program/steps/mail/viewsource.inc new file mode 100644 index 000000000..8b8c90cd1 --- /dev/null +++ b/roundcubemail/program/steps/mail/viewsource.inc @@ -0,0 +1,39 @@ + | + +-----------------------------------------------------------------------+ + + $Id$ + +*/ + + +// similar code as in program/steps/mail/get.inc +if ($_GET['_uid']) + { + header('Content-Type: text/plain'); + print rcmail_message_source($_GET['_uid']); + } +else + { + raise_error(array('code' => 500, + 'type' => 'php', + 'message' => 'Message UID '.$_GET['_uid'].' not found'), + TRUE, + TRUE); + } + +exit; +?> \ No newline at end of file -- cgit v1.2.3