]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/mail/viewsource.inc
Imported Upstream version 0.1~beta2.2~dfsg
[roundcube.git] / program / steps / mail / viewsource.inc
diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc
new file mode 100644 (file)
index 0000000..76046db
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | program/steps/mail/viewsource.inc                                     |
+ |                                                                       |
+ | This file is part of the RoundCube Webmail client                     |
+ | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
+ | Licensed under the GNU GPL                                            |
+ |                                                                       |
+ | PURPOSE:                                                              |
+ |   Display a mail message similar as a usual mail application does     |
+ |                                                                       |
+ +-----------------------------------------------------------------------+
+ | Author: Thomas Bruederli <roundcube@gmail.com>                        |
+ +-----------------------------------------------------------------------+
+
+ $Id: viewsource.inc 8 2005-09-28 22:28:05Z roundcube $
+
+*/
+
+
+// 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